AA122294

9+_8_874+_8_77$8$8$8+$8_873+(_+_(84874+_))))) ())))) (((((((((((+-_+(_(_+_-+_++_(_(_++_;_(_((_! _;_!

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