chevron_leftchevron_leftchevron_left
    of     2   

smiley599
#139537871Monday, July 07, 2014 4:14 PM GMT

I don't see what my stats with it. And that was a stupid thing to say. You're either 5 years old or PGed because anyone who isn't a noob knows that there's a glitch so place visits only count active places. I have 100 times your place visits and you can easily check that if you have more than 2 brain cells. I did bother to read but you constantly ignored what I said. You don't need any if statements in that script. Oh, and I'm a better scripter than you will ever be.
tarrdo
#139544828Monday, July 07, 2014 5:34 PM GMT

And I already said I had removed the if statements and it did not work. "I did bother to read but you constantly ignored what I said." Incorrect if you read what I said then you would have realized I didn't ignore what you had said I removed my if statements and it made the script do absolutely nothing.
smiley599
#139544950Monday, July 07, 2014 5:35 PM GMT

I never said remove the if statements. You can just do it another way: rn=math.random(1,3) game.Lighting:findFirstChild("Map"..rn):clone().Parent=workspace no need for if statements
tarrdo
#139545467Monday, July 07, 2014 5:40 PM GMT

And as you said you are a better scripter if you tell me there is no need for if statements I will just remove the if statements leaving nothing for my script to read, I would like to try your places when you have active places.
tarrdo
#139545943Monday, July 07, 2014 5:45 PM GMT

Your script literally spawns all 3 maps at once and doesn't stop.
smiley599
#139546148Monday, July 07, 2014 5:47 PM GMT

... that wasnt the full script but you get the idea and im making an FPS if you want to see: https://twitter.com/smiley599roblox/status/472006726460669952/photo/1 that was taken like 2 months ago
smiley599
#139546477Monday, July 07, 2014 5:51 PM GMT

while true do rn=math.random(1,3) game.Lighting:findFirstChild("Map"..rn):clone().Parent=workspace m=Instance.new("Message",workspace) m.Text=game.Lighting:findFirstChild("Map"..rn).MapName.Value--GET A VALUE CALLED MAPNAME wait(4) m:remove() wait(20) end
tarrdo
#139547062Monday, July 07, 2014 5:57 PM GMT

The only issue with your script is it doesn't remove the map at the end of the script, and all my stuff is in ServerStorage not lighting ;) As well I have another script that I wouldnt mind you taking a look at I've been tweeking and tweeking it but I can't get it to work. function OnClicked() Map = {"Map1","Map2","Map3"} S = {"1","2","3","4"} spawn = S[math.random(1,#S)] actual = Map:findFirstChild(spawn) game.Players.LocalPlayer.Character.Torso.CFrame = Workspace[math.random(4)].CFrame end script.Parent.Main.Assault.MouseButton1Up:connect(OnClicked) script.Parent.Main.Commando.MouseButton1Up:connect(OnClicked) script.Parent.Main.Sniper.MouseButton1Up:connect(OnClicked) script.Parent.Main.Scout.MouseButton1Up:connect(OnClicked) script.Parent.Main.Demolition.MouseButton1Up:connect(OnClicked) The only issue is that it calls FindFirstChild a nil value right now I want it to search Map for bricks listed in S so it can send players to S when they click one of the buttons
smiley599
#139547367Monday, July 07, 2014 6:00 PM GMT

function OnClicked() Map = {"Map1","Map2","Map3"} S = {"1","2","3","4"} spawn = S[math.random(1,#S)] actual = workspace:findFirstChild(Map[spawn]) --here game.Players.LocalPlayer.Character.Torso.CFrame = Workspace[math.random(4)].CFrame end script.Parent.Main.Assault.MouseButton1Up:connect(OnClicked) script.Parent.Main.Commando.MouseButton1Up:connect(OnClicked) script.Parent.Main.Sniper.MouseButton1Up:connect(OnClicked) script.Parent.Main.Scout.MouseButton1Up:connect(OnClicked) script.Parent.Main.Demolition.MouseButton1Up:connect(OnClicked) --I don't get how there's 4 numbers in S but only 3 maps? --Also why is it random? because what if theres no map in workspace?
tarrdo
#139549034Monday, July 07, 2014 6:16 PM GMT

S is the number of bricks that are inside the 3 maps so it has to search for S in the maps
tarrdo
#139549272Monday, July 07, 2014 6:18 PM GMT

14:17:45.730 - Argument 1 missing or nil I don't understand how since the bricks are inside of the map
tarrdo
#139552419Monday, July 07, 2014 6:47 PM GMT

Just to make this post relevant bump :P
tarrdo
#139561466Monday, July 07, 2014 8:14 PM GMT

http://prntscr.com/40ctm1
smiley599
#139563279Monday, July 07, 2014 8:30 PM GMT

function OnClicked() Map = {"Map1","Map2","Map3"} S = {"1","2","3","4"} spawn = S[math.random(1,#S)] actual = workspace:findFirstChild(Map[spawn]) --here game.Players.LocalPlayer.Character.Torso.CFrame = Workspace[math.random(4)].CFrame end script.Parent.Main.Assault.MouseButton1Up:connect(OnClicked) script.Parent.Main.Commando.MouseButton1Up:connect(OnClicked) script.Parent.Main.Sniper.MouseButton1Up:connect(OnClicked) script.Parent.Main.Scout.MouseButton1Up:connect(OnClicked) script.Parent.Main.Demolition.MouseButton1Up:connect(OnClicked) My script wouldn't have that error. Mine says spawn, yours says s, which is a nil value.
tarrdo
#139594801Tuesday, July 08, 2014 1:19 AM GMT

I had spawn in same error
tarrdo
#139602016Tuesday, July 08, 2014 2:31 AM GMT

function OnClicked() Map = {"Map1","Map2","Map3"} S = {"1","2","3","4"} spawn = S[math.random(1,#S)] actual = workspace:findFirstChild(Map[spawn]) --here game.Players.LocalPlayer.Character.Torso.CFrame = Workspace[math.random(4)].CFrame end script.Parent.Main.Assault.MouseButton1Up:connect(OnClicked) script.Parent.Main.Commando.MouseButton1Up:connect(OnClicked) script.Parent.Main.Sniper.MouseButton1Up:connect(OnClicked) script.Parent.Main.Scout.MouseButton1Up:connect(OnClicked) script.Parent.Main.Demolition.MouseButton1Up:connect(OnClicked) 22:31:15.544 - Argument 1 missing or nil 22:31:15.546 - Script 'Players.Player1.PlayerGui.Weapon Choose GUI.SpawnScript', Line 10 22:31:15.548 - Stack End
smiley599
#139627530Tuesday, July 08, 2014 8:14 AM GMT

My guess it it chose number 4; there's no Map4 so it broke.
tarrdo
#139647414Tuesday, July 08, 2014 3:29 PM GMT

Alright well I'm still working on making my new class script and when I have that done I won't need the buttons to send into maps. :P

chevron_leftchevron_leftchevron_left
    of     2