Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Dosent it Teleport The Players?

Asked by
RM0d 305 Moderation Voter
10 years ago

ModuleScript

-- Create a userdata for storing API
self = newproxy(true)
meta = getmetatable(self)
ModuleAPI = {}
function ModuleAPI.TeleportToGame(x)
    wait(1)
    workspace:FindFirstChild(x.Name).Torso.CFrame = CFrame.new (Vector3.new (0,3,0)+workspace.Plates:GetChildren()[math.random(1,1000)].Position)
  return workspace:FindFirstChild(x.Name)

end
-- ENDS HERE
meta.__index = ModuleAPI
return self


Script

SunEngine = require(workspace.ApiSun)
plyrToBeTPED  = game.Players:GetChildren()
for plyrToBeTPEDX= 1,#plyrToBeTPED do
SunEngine:TeleportToGame(plyrToBeTPED[plyrToBeTPEDX])

end

ERROR = 17:32:27.763 - Argument 1 missing or nil

ps: How come Arg1 is missing!

0
Fixed it hat to call it with : not . RM0d 305 — 10y

Answer this question