Advertisement
HowToRoblox

EquipNVGs

Apr 6th, 2021
2,999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. game.ReplicatedStorage.NVGsToggled.OnServerEvent:Connect(function(plr, equipping)
  2.    
  3.    
  4.     local char = plr.Character
  5.     local humanoid = char:WaitForChild("Humanoid")
  6.    
  7.    
  8.     if equipping then
  9.        
  10.         humanoid:AddAccessory(script.NVGs:Clone())
  11.        
  12.        
  13.     else
  14.        
  15.         char.NVGs:Destroy()
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement