RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make some code that makes the user teleport on collision with the part"
-- script for part local part = script.Parent local teleportLocation = Vector3.new(0, 50, 0) local function teleportPlayer(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local character = player.Character if character then character:SetPrimaryPartCFrame(CFrame.new(teleportLocation)) end end end part.Touched:Connect(teleportPlayer)