Advertisement
HowToRoblox

FireballActivation

Nov 26th, 2019
2,799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local mouse = game.Players.LocalPlayer:GetMouse()
  3. local debounce = false
  4.  
  5. UIS.InputBegan:Connect(function(key, processed)
  6.     if processed or debounce then return end
  7.        
  8.     if key.KeyCode == Enum.KeyCode.Q then
  9.         debounce = true
  10.         workspace.FireballScript.RemoteEvent:FireServer(mouse.Hit.Position)
  11.     end
  12.  
  13.     wait(1)
  14.     debounce = false
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement