RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"teleport me to a random position on part touch"
-- local script local part = script.Parent local function teleport(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(teleport)