Kotyara19k-Official

c00lkidd decal spam works on any game

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