AA122294

Untitled

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