Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Credits To Hampter#2656/SokkaTheDumbKid
- --Press T To Toggle
- local player = game:GetService("Players").LocalPlayer
- local mouse = player:GetMouse()
- local tpMode = false
- local uis = game:GetService("UserInputService")
- warn("Click TP Had Loaded (DM Hampter#2656 for help)")
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Click Teleport Done Loading";
- Text = "Created by Hampter#2656/SokkaTheDumbKid";
- })
- local function Teleport()
- if tpMode == true then
- player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z))
- end
- end
- uis.InputBegan:Connect(function(tp,gp)
- if tp.UserInputType == Enum.UserInputType.MouseButton1 then
- Teleport()
- end
- if tp.UserInputType == Enum.UserInputType.Keyboard then
- if tp.KeyCode == Enum.KeyCode.T then -- Change Keybind Here
- if tpMode == true then
- tpMode = false
- mouse.Icon = ""
- elseif tpMode == false then
- tpMode = true
- mouse.Icon = "http://www.roblox.com/asset/?id=4834472848"
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment