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!