_Goofy

Fire prompt using ID

Sep 6th, 2023 (edited)
1,319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | Gaming | 0 0
  1. local id  = 14631334907 -- Put the id item here
  2.  
  3. -- this script below will fire all remotes in the game with the id as an argument
  4. for i,v in pairs(game:GetDescendants()) do
  5. if v:IsA("RemoteEvent") then
  6. v:FireServer(id)
  7. if v:IsA("BindableEvent") then
  8. v:Fire(id)
  9. if v:IsA("RemoteFunction") then
  10. v:InvokeServer(id)
  11. end
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment