brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 02:53 PM |
Eveything is good but the 6th line how do I write it?
plr=script.Parent.Parent.Parent.Parent char=plr.Character function tele() if char:FindFirstChild("Torso")~=nil then torso=char:FindFirstChild("Torso") spawn=game.Workspace.math.random(1, #"RedSpawn1,RedSpawn2") torso.CFrame=CFrame.new(spawn.Position.x, spawn.Position.y+10, spawn.Position.z) game.Lighting.Gun:Clone().Parent = plr.Backpack script.Parent:Remove() end end script.Parent.button.MouseButton1Click:connect(tele) |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:02 PM |
| Output, then I don't have to read it and I can just figure it out. :) |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:02 PM |
| SOrry, I didn't read your post properly, I'll check the 6th line (I hate these moments...). |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 03:04 PM |
| Thats okay lol but do you know whats wrong? |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:05 PM |
spawn = {"Redspawn1","Redspawn2"} torso.Parent:MoveTo(workspace[spawn[math.random(1,#spawn)]],Position + Vector3.new(0,10,0))
Just a guess, I haven't tested it. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:06 PM |
| Correct the simple errors if tehere is any... like if there's a "," that looks liek it should be a ".", change it to a ".". I am tired... I am useless... at times. And I'm very weird :D |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:06 PM |
(I might be wrong, I am new to scripting) Try:
plr=script.Parent.Parent.Parent.Parent char=plr.Character function tele() if char:FindFirstChild("Torso")~=nil then torso=char:FindFirstChild("Torso") spawn=game.Workspace[math.Random(1, #"RedSpawn1,RedSpawn2")] torso.CFrame=CFrame.new(spawn.Position.x, spawn.Position.y+10, spawn.Position.z) game.Lighting.Gun:Clone().Parent = plr.Backpack script.Parent:Remove() end end script.Parent.button.MouseButton1Click:connect(tele) |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 03:08 PM |
| Both of you guys were wrong xD |
|
|
| Report Abuse |
|
|