Hasli4

WeaponRemote

Oct 12th, 2025
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --Разместить в ServerScriptService
  2. --Настройка событий для WeaponHandler (client) и WeaponLauncher(server)
  3.  
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5.  
  6. local launchProjectile = Instance.new("RemoteFunction")
  7. launchProjectile.Name = "LaunchProjectile"
  8. launchProjectile.Parent = ReplicatedStorage
  9.  
  10. local pingChecker = Instance.new("RemoteFunction")
  11. pingChecker.Name = "Ping"
  12. pingChecker.Parent = ReplicatedStorage
  13.  
  14. local destroyEnemy = Instance.new("RemoteEvent")
  15. destroyEnemy.Name = "DestroyEnemy"
  16. destroyEnemy.Parent = ReplicatedStorage
  17.  
  18. local destroyProjectile = Instance.new("RemoteEvent")
  19. destroyProjectile.Name = "DestroyProjectile"
  20. destroyProjectile.Parent = ReplicatedStorage
  21.  
Add Comment
Please, Sign In to add comment