Advertisement
coolbeans69

hockey noobs script

Aug 11th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2.  
  3. mouse.KeyDown:connect(function(key)
  4.     if key == "l" then
  5.     local objects = Workspace:GetDescendants()
  6. local puck
  7. for k, v in pairs(objects) do
  8.     if objects[k].Name == "Puck" then
  9.         puck = objects[k]
  10.     end
  11. end
  12. local guy = puck.Parent.Parent
  13. local Event = game:GetService("ReplicatedStorage").RemoteEvent
  14. Event:FireServer(guy.stick.Puck)
  15. --local Event2 = game:GetService("ReplicatedStorage").RemoteEvent3
  16. --Event2:FireServer(guy)
  17.  
  18.     end
  19. end)
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement