Kotyara19k-Official

John Doe

Mar 31st, 2025 (edited)
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character or player.CharacterAdded:Wait()
  3. local tool
  4.  
  5.  
  6. for i,v in player:GetDescendants() do
  7. if v.Name == "SyncAPI" then
  8. tool = v.Parent
  9. end
  10. end
  11.  
  12.  
  13. remote = tool.SyncAPI.ServerEndpoint
  14. function _(args)
  15. remote:InvokeServer(unpack(args))
  16. end
  17.  
  18. function SetCollision(part,boolean)
  19. local args = {
  20. [1] = "SyncCollision",
  21. [2] = {
  22. [1] = {
  23. ["Part"] = part,
  24. ["CanCollide"] = boolean
  25. }
  26. }
  27. }
  28. _(args)
  29. end
  30.  
  31.  
  32. function AddFireToHands()
  33. local rightHand = char:WaitForChild("Right Arm")
  34. local leftHand = char:WaitForChild("Left Arm")
  35.  
  36.  
  37.  
  38. local args2 = {
  39. [1] = "CreateDecorations",
  40. [2] = {
  41. [1] = {
  42. ["Part"] = rightHand,
  43. ["DecorationType"] = "Fire"
  44. }
  45. }
  46. }
  47. _(args2)
  48. end
  49.  
  50.  
  51. AddFireToHands()
Advertisement
Add Comment
Please, Sign In to add comment