Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService");
- local toggled = false;
- uis.InputBegan:Connect(function(i, g)
- if (g) then return end;
- if (i.KeyCode == Enum.KeyCode.T) then
- if (toggled == false) then
- toggled = true;
- print("enabled");
- elseif (toggled == true) then
- toggled = false;
- print("disabled")
- end;
- end;
- end);
- while true do
- task.wait(0.09);
- if (toggled == true) then
- local tungBat = game.Players.LocalPlayer.Backpack:FindFirstChild("Tung Bat");
- if (tungBat) then
- tungBat.Parent = workspace:FindFirstChild(game.Players.LocalPlayer.Name);
- else
- local newTung = workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("Tung Bat")
- if (newTung) then
- newTung.Parent = game.Players.LocalPlayer.Backpack
- end;
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment