Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (LOCAL SCRIPT)
- repstorage = game:GetService("ReplicatedStorage")
- RemoteEvent = repstorage:WaitForChild("HakiOn")
- RemoteEvent2 = repstorage:WaitForChild("HakiOff")
- Player = game.Players.LocalPlayer
- -----
- game.Workspace:WaitForChild(Player.Name)
- Debounce = 1
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.H and Debounce == 1 then -- if Player press H and debounce = 1
- Debounce = 3 -- then debounce is 3 (Cannot manipulate with this debounce)
- RemoteEvent:FireServer() -- fire server
- wait(3) -- Wait 3 seconds till Debounce is 2
- Debounce = 2
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement