|
| 17 Mar 2012 06:53 AM |
This script here, how would I change it so it teleports everyone throughout 1 script, without having to touch it?
function onTouched(part) local h = part.Parent:findFirstChild("Torso") if (h ~=nil) then h.CFrame = CFrame.new(40 + math.random(-100, 100), 48, 40 + math.random(-100,100))--input CFrame here
end end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 17 Mar 2012 07:22 AM |
This is how I would teleport all the players.
for _,plr in pairs(game.Players:GetPlayers()) do if plr.Character then plr.Character:MoveTo(Vector3.new(0,0,0)) end end |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 17 Mar 2012 07:24 AM |
local c=game.Players:GetChildren() for i=1,#c do c[i].Character.Torso.CFrame = CFrame.new(40 + math.random(-100, 100), 48, 40 + math.random(-100,100)) end |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 07:35 AM |
Ok, thanks guys!
Canone of you come here to see if it works?
http://www.roblox.com/Gear-wars-NEW-place?id=19732565 |
|
|
| Report Abuse |
|
|
| |
|