Advertisement
AA122294

Spam decal 1

Mar 10th, 2025
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. -- Str0ngkidd DecalSpam
  2. local player = game.Players.LocalPlayer
  3. local char = player.Character
  4. local tool
  5. for i,v in player:GetDescendants() do
  6. if v.Name == "SyncAPI" then
  7. tool = v.Parent
  8. end
  9. end
  10. for i,v in game.ReplicatedStorage:GetDescendants() do
  11. if v.Name == "SyncAPI" then
  12. tool = v.Parent
  13. end
  14. end
  15. --craaa
  16. remote = tool.SyncAPI.ServerEndpoint
  17. function _(args)
  18. remote:InvokeServer(unpack(args))
  19. end
  20. function SetCollision(part,boolean)
  21. local args = {
  22. [1] = "SyncCollision",
  23. [2] = {
  24. [1] = {
  25. ["Part"] = part,
  26. ["CanCollide"] = boolean
  27. }
  28. }
  29. }
  30. _(args)
  31. end
  32. function SetAnchor(boolean,part)
  33. local args = {
  34. [1] = "SyncAnchor",
  35. [2] = {
  36. [1] = {
  37. ["Part"] = part,
  38. ["Anchored"] = boolean
  39. }
  40. }
  41. }
  42. _(args)
  43. end
  44. function CreatePart(cf,parent)
  45. local args = {
  46. [1] = "CreatePart",
  47. [2] = "Normal",
  48. [3] = cf,
  49. [4] = parent
  50. }
  51. _(args)
  52. end
  53. function DestroyPart(part)
  54. local args = {
  55. [1] = "Remove",
  56. [2] = {
  57. [1] = part
  58. }
  59. }
  60. _(args)
  61. end
  62. function MovePart(part,cf)
  63. local args = {
  64. [1] = "SyncMove",
  65. [2] = {
  66. [1] = {
  67. ["Part"] = part,
  68. ["CFrame"] = cf
  69. }
  70. }
  71. }
  72. _(args)
  73. end
  74. function Resize(part,size,cf)
  75. local args = {
  76. [1] = "SyncResize",
  77. [2] = {
  78. [1] = {
  79. ["Part"] = part,
  80. ["CFrame"] = cf,
  81. ["Size"] = size
  82. }
  83. }
  84. }
  85. _(args)
  86. end
  87. function AddMesh(part)
  88. local args = {
  89. [1] = "CreateMeshes",
  90. [2] = {
  91. [1] = {
  92. ["Part"] = part
  93. }
  94. }
  95. }
  96. _(args)
  97. end
  98.  
  99. function SetMesh(part,meshid)
  100. local args = {
  101. [1] = "SyncMesh",
  102. [2] = {
  103. [1] = {
  104. ["Part"] = part,
  105. ["MeshId"] = "rbxassetid://"..meshid
  106. }
  107. }
  108. }
  109. _(args)
  110. end
  111. function SetTexture(part, texid)
  112. local args = {
  113. [1] = "SyncMesh",
  114. [2] = {
  115. [1] = {
  116. ["Part"] = part,
  117. ["TextureId"] = "rbxassetid://"..texid
  118. }
  119. }
  120. }
  121. _(args)
  122. end
  123. function SetName(part, stringg)
  124. local args = {
  125. [1] = "SetName",
  126. [2] = {
  127. [1] = part
  128. },
  129. [3] = stringg
  130. }
  131.  
  132. _(args)
  133. end
  134. function MeshResize(part,size)
  135. local args = {
  136. [1] = "SyncMesh",
  137. [2] = {
  138. [1] = {
  139. ["Part"] = part,
  140. ["Scale"] = size
  141. }
  142. }
  143. }
  144. _(args)
  145. end
  146. function Weld(part1, part2,lead)
  147. local args = {
  148. [1] = "CreateWelds",
  149. [2] = {
  150. [1] = part1,
  151. [2] = part2
  152. },
  153. [3] = lead
  154. }
  155. _(args)
  156.  
  157. end
  158. function SetLocked(part,boolean)
  159. local args = {
  160. [1] = "SetLocked",
  161. [2] = {
  162. [1] = part
  163. },
  164. [3] = boolean
  165. }
  166. _(args)
  167. end
  168. function SetTrans(part,int)
  169. local args = {
  170. [1] = "SyncMaterial",
  171. [2] = {
  172. [1] = {
  173. ["Part"] = part,
  174. ["Transparency"] = int
  175. }
  176. }
  177. }
  178. _(args)
  179. end
  180. function CreateSpotlight(part)
  181. local args = {
  182. [1] = "CreateLights",
  183. [2] = {
  184. [1] = {
  185. ["Part"] = part,
  186. ["LightType"] = "SpotLight"
  187. }
  188. }
  189. }
  190. _(args)
  191. end
  192. function SyncLighting(part,brightness)
  193. local args = {
  194. [1] = "SyncLighting",
  195. [2] = {
  196. [1] = {
  197. ["Part"] = part,
  198. ["LightType"] = "SpotLight",
  199. ["Brightness"] = brightness
  200. }
  201. }
  202. }
  203. _(args)
  204. end
  205. function Color(part,color)
  206. local args = {
  207. [1] = "SyncColor",
  208. [2] = {
  209. [1] = {
  210. ["Part"] = part,
  211. ["Color"] = color --[[Color3]],
  212. ["UnionColoring"] = false
  213. }
  214. }
  215. }
  216. _(args)
  217. end
  218. function SpawnDecal(part,side)
  219. local args = {
  220. [1] = "CreateTextures",
  221. [2] = {
  222. [1] = {
  223. ["Part"] = part,
  224. ["Face"] = side,
  225. ["TextureType"] = "Decal"
  226. }
  227. }
  228. }
  229.  
  230. _(args)
  231. end
  232. function AddDecal(part,asset,side)
  233. local args = {
  234. [1] = "SyncTexture",
  235. [2] = {
  236. [1] = {
  237. ["Part"] = part,
  238. ["Face"] = side,
  239. ["TextureType"] = "Decal",
  240. ["Texture"] = "rbxassetid://".. asset
  241. }
  242. }
  243. }
  244. _(args)
  245. end
  246.  
  247. function spam(id)
  248. for i,v in game.workspace:GetDescendants() do
  249. if v:IsA("BasePart") then
  250. spawn(function()
  251. SetLocked(v,false)
  252. SpawnDecal(v,Enum.NormalId.Front)
  253. AddDecal(v,id,Enum.NormalId.Front)
  254.  
  255. SpawnDecal(v,Enum.NormalId.Back)
  256. AddDecal(v,id,Enum.NormalId.Back)
  257.  
  258. SpawnDecal(v,Enum.NormalId.Right)
  259. AddDecal(v,id,Enum.NormalId.Right)
  260.  
  261. SpawnDecal(v,Enum.NormalId.Left)
  262. AddDecal(v,id,Enum.NormalId.Left)
  263.  
  264. SpawnDecal(v,Enum.NormalId.Bottom)
  265. AddDecal(v,id,Enum.NormalId.Bottom)
  266.  
  267. SpawnDecal(v,Enum.NormalId.Top)
  268. AddDecal(v,id,Enum.NormalId.Top)
  269. end)
  270. end
  271. end
  272. end
  273. spam("109643137125825")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement