Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//R6 local scripts
- local Player = game.Players.LocalPlayer
- local rp = game:GetService("ReplicatedStorage")
- local Stand = rp:WaitForChild("Stand1Remotes"):WaitForChild("Stand")
- local UIS = game:GetService("UserInputService")
- local debounce = false
- local active = false
- UIS.InputBegan:Connect(function(input,isTyping)
- if isTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.E then
- if debounce == false and active == false then
- debounce = true
- Stand:FireServer(active)
- end
- end
- end)
- UIS.InputBegan:Connect(function(input,isTyping)
- if isTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.E then
- if debounce == true and active == false then
- active = true
- Stand:FireServer(active)
- end
- end
- end)
- Stand.OnClientEvent:Connect(function()
- wait(1)
- debounce = false
- active = false
- end)
- local Player = game:GetService("Players").LocalPlayer
- local rp = game:GetService("ReplicatedStorage")
- local Punch = rp:WaitForChild("Stand1Remotes"):WaitForChild("Punch")
- local UIS = game:GetService("UserInputService")
- local debounce = false
- local cooldown = .75
- UIS.InputBegan:Connect(function(input,IsTyping)
- if IsTyping then
- return
- elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
- if workspace:FindFirstChild(Player.Name.." Stand") then
- if debounce == false then
- debounce = true
- Punch:FireServer()
- wait(cooldown)
- debounce = false
- end
- end
- end
- end)
- local Player = game:GetService("Players").LocalPlayer
- local rp = game:GetService("ReplicatedStorage")
- local Barrage = rp:WaitForChild("Stand1Remotes"):WaitForChild("BarrageHold")
- local UIS = game:GetService("UserInputService")
- local debounce = false
- local active = false
- local cooldown = 3
- UIS.InputBegan:Connect(function(input,IsTyping)
- if IsTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.F then
- if workspace:FindFirstChild(Player.Name.." Stand") then
- if debounce == false and active == false then
- debounce = true
- Barrage:FireServer(active)
- end
- end
- end
- end)
- UIS.InputEnded:Connect(function(input,IsTyping)
- if IsTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.F then
- if workspace:FindFirstChild(Player.Name.." Stand") then
- if debounce == true and active == false then
- active = true
- Barrage:FireServer(active)
- end
- end
- end
- end)
- Barrage.OnClientEvent:Connect(function()
- wait(cooldown)
- active = false
- debounce = false
- end)
- local Player = game:GetService("Players").LocalPlayer
- local rp = game:GetService("ReplicatedStorage")
- local World = rp:WaitForChild("Stand1Remotes"):WaitForChild("World")
- local UIS = game:GetService("UserInputService")
- local debounce = false
- local cooldown = 10
- UIS.InputBegan:Connect(function(input,IsTyping)
- if IsTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.C then
- if workspace:FindFirstChild(Player.Name.." Stand") then
- if debounce == false then
- debounce = true
- World:FireServer()
- end
- end
- end
- end)
- World.OnClientEvent:Connect(function()
- wait(cooldown)
- debounce = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment