RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Teleport command to spawn"
-- server script local Players = game:GetService("Players") local function onChat(player, message) if message:lower() == "!teleporttospawn" then local spawnLocation = game.Workspace.SpawnLocation player.Character.HumanoidRootPart.CFrame = spawnLocation.CFrame end end Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChat(player, message) end) end)