RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script that teleports my character to every enemy players in the server"
-- server script local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local character = localPlayer.Character for _, player in ipairs(Players:GetPlayers()) do if player.TeamColor ~= localPlayer.TeamColor then local enemyCharacter = player.Character if enemyCharacter then character.HumanoidRootPart.CFrame = enemyCharacter.HumanoidRootPart.CFrame wait(2) -- wait for 2 seconds before teleporting to the next enemy end end end