Forum > Scripts >

Teleport help

Posts: 22

Threads: 9

Joined: Jun, 2018

Reputation: 0

Posted

How do I make a spam teleport? Here's the script but how I spam it and make it end when the teleport has done?

game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-222.339157, 17.9125443, 1575.82336) + Vector3.new(1,0,0)
  • 0

Posts: 212

Threads: 42

Joined: May, 2018

Reputation: 0

Replied

while true do
    wait(0)
    game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-222.339157, 17.9125443, 1575.82336) + Vector3.new(1,0,0)
end

----------My Script-----------

local player = game.Players.LocalPlayer.Character
local victim = game.Workspace.USERNAMEHERE.HumanoidRootPart

while true do
    wait(0) -- Wait (1) recommended
player.HumanoidRootPart.CFrame = CFrame.new(victim.Position.X, victim.Position.Y, victim.Position.Z)
end

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )