I want to make a thing so if a certain player says a command it teleports the specified player to the specified model anybody know how?
local function Run ( ChatService, player ) local function createPart ( speakerName , message , channelName ) if string.sub ( message , 1 , 5 ) == "teleport" then local newPart = Instance.new ( "Part" ) newPart.Parent = game.Workspace player.Character.HumanoidRootPart.CFrame = CFrame.new(newPart.Position.CFrame) end return false end ChatService : RegisterProcessCommandsFunction ( "createPart" , createPart ) end return Run
I'm pretty sure that this will work.