RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"can you make a server script that will teleport me to a random position if i touch a part"
-- server script local part = script.Parent local function onTouch(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local randomX = math.random(-100, 100) local randomZ = math.random(-100, 100) player.Character.HumanoidRootPart.CFrame = CFrame.new(randomX, 50, randomZ) end end part.Touched:Connect(onTouch)