AA122294

Untitled

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