smiley599Join Date: 2010-01-23 Post Count: 21869 |
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. |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
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. |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
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 |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
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. |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
Your script literally spawns all 3 maps at once and doesn't stop. |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
...
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 |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
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 |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
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 |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
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? |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
S is the number of bricks that are inside the 3 maps so it has to search for S in the maps |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
14:17:45.730 - Argument 1 missing or nil
I don't understand how since the bricks are inside of the map |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
Just to make this post relevant bump :P |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
http://prntscr.com/40ctm1 |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
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. |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
I had spawn in same error |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
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 |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
My guess it it chose number 4; there's no Map4 so it broke. |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
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 |
|