Dodo12wScripts

Ghostify Original Gun (LocalScript)

May 12th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local ShootHotdog = ReplicatedStorage:WaitForChild("ShootHotdog")
  4.  
  5. local Tool = script.Parent
  6. local player = game.Players.LocalPlayer
  7. local mouse = player:GetMouse()
  8. local debounce = true
  9.  
  10. Tool.Activated:Connect(function()
  11.     if debounce then
  12.         debounce = false
  13.         ShootHotdog:FireServer(mouse.Hit, Tool)
  14.         wait(1)
  15.         debounce = true
  16.     end
  17. end)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment