Teleport Tool

LocalScript for Tool

local tool = script.Parent


local player = game.Players.LocalPlayer


tool.Equipped:Connect(function(mouse)


mouse.Button1Down:Connect(function()


player.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p)


end)


end)

Cool Down

local tool = script.Parent

local player = game.Players.LocalPlayer

local canTeleport = true


tool.Equipped:Connect(function(mouse)

mouse.Button1Down:Connect(function()

if canTeleport then

canTeleport = false

player.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p)

wait(3)

canTeleport = true

end

end)

end)

GUI

local tool = script.Parent

local player = game.Players.LocalPlayer

local canTeleport = true


tool.Equipped:Connect(function(mouse)

mouse.Button1Down:Connect(function()

if canTeleport then

canTeleport = false

player.PlayerGui.ScreenGui.teleportLabel.Text = 'Recharging'

player.PlayerGui.ScreenGui.teleportLabel.BackgroundColor3 = Color3.new(255, 0, 0)

player.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p)

wait(3)

player.PlayerGui.ScreenGui.teleportLabel.Text = 'Teleport Ready'

player.PlayerGui.ScreenGui.teleportLabel.BackgroundColor3 = Color3.new(0, 255, 0)

canTeleport = true

end

end)

end)