Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local switch = false
- game:GetService("UserInputService").InputBegan:Connect(function(k,b)
- local key = k.KeyCode
- if b == true then
- if key == Enum.KeyCode.Q then
- if switch == false then
- switch = true
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[system]: " .. "tp on";
- Font = Enum.Font.Cartoon;
- Color = Color3.new(0,0,0);
- FontSize = Enum.FontSize.Size96;
- })
- elseif switch == true then
- switch = false
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[system]: " .. "tp off";
- Font = Enum.Font.Cartoon;
- Color = Color3.new(0,0,0);
- FontSize = Enum.FontSize.Size96;
- })
- end
- end
- end
- end)
- mouse.Button1Down:Connect(function()
- if switch == true then
- char:MoveTo(mouse.Hit.p)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement