Second topic today! Anyways, I need help with another script. This time, it works. The only malfunction is that it teleports everyone instead of just the person who said it. Anyone have any ideas why?
if (msg == "spectator mode") then
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
local cf = c[i].Character:findFirstChild("Torso").CFrame
c[i].Character.Torso.CFrame = CFrame.new(Vector3.new(19, 3, -207), Vector3.new(0, 3, 0))
end
end
end
Thats the basic component. WaffleBoy out! |