Kotyara19k-Official

Goobys sky

Apr 10th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. local char = player.Character
  4.  
  5. local tool
  6.  
  7. for i,v in player:GetDescendants() do
  8.  
  9. if v.Name == "SyncAPI" then
  10.  
  11. tool = v.Parent
  12.  
  13. end
  14.  
  15. end
  16.  
  17. for i,v in game.ReplicatedStorage:GetDescendants() do
  18.  
  19. if v.Name == "SyncAPI" then
  20.  
  21. tool = v.Parent
  22.  
  23. end
  24.  
  25. end
  26.  
  27. --craaa
  28.  
  29. remote = tool.SyncAPI.ServerEndpoint
  30.  
  31. function _(args)
  32.  
  33. remote:InvokeServer(unpack(args))
  34.  
  35. end
  36.  
  37. function SetCollision(part,boolean)
  38.  
  39. local args = {
  40.  
  41. [1] = "SyncCollision",
  42.  
  43. [2] = {
  44.  
  45. [1] = {
  46.  
  47. ["Part"] = part,
  48.  
  49. ["CanCollide"] = boolean
  50.  
  51. }
  52.  
  53. }
  54.  
  55. }
  56.  
  57. _(args)
  58.  
  59. end
  60.  
  61. function SetAnchor(boolean,part)
  62.  
  63. local args = {
  64.  
  65. [1] = "SyncAnchor",
  66.  
  67. [2] = {
  68.  
  69. [1] = {
  70.  
  71. ["Part"] = part,
  72.  
  73. ["Anchored"] = boolean
  74.  
  75. }
  76.  
  77. }
  78.  
  79. }
  80.  
  81. _(args)
  82.  
  83. end
  84.  
  85. function CreatePart(cf,parent)
  86.  
  87. local args = {
  88.  
  89. [1] = "CreatePart",
  90.  
  91. [2] = "Normal",
  92.  
  93. [3] = cf,
  94.  
  95. [4] = parent
  96.  
  97. }
  98.  
  99. _(args)
  100.  
  101. end
  102.  
  103. function DestroyPart(part)
  104.  
  105. local args = {
  106.  
  107. [1] = "Remove",
  108.  
  109. [2] = {
  110.  
  111. [1] = part
  112.  
  113. }
  114.  
  115. }
  116.  
  117. _(args)
  118.  
  119. end
  120.  
  121. function MovePart(part,cf)
  122.  
  123. local args = {
  124.  
  125. [1] = "SyncMove",
  126.  
  127. [2] = {
  128.  
  129. [1] = {
  130.  
  131. ["Part"] = part,
  132.  
  133. ["CFrame"] = cf
  134.  
  135. }
  136.  
  137. }
  138.  
  139. }
  140.  
  141. _(args)
  142.  
  143. end
  144.  
  145. function Resize(part,size,cf)
  146.  
  147. local args = {
  148.  
  149. [1] = "SyncResize",
  150.  
  151. [2] = {
  152.  
  153. [1] = {
  154.  
  155. ["Part"] = part,
  156.  
  157. ["CFrame"] = cf,
  158.  
  159. ["Size"] = size
  160.  
  161. }
  162.  
  163. }
  164.  
  165. }
  166.  
  167. _(args)
  168.  
  169. end
  170.  
  171. function AddMesh(part)
  172.  
  173. local args = {
  174.  
  175. [1] = "CreateMeshes",
  176.  
  177. [2] = {
  178.  
  179. [1] = {
  180.  
  181. ["Part"] = part
  182.  
  183. }
  184.  
  185. }
  186.  
  187. }
  188.  
  189. _(args)
  190.  
  191. end
  192.  
  193. function SetMesh(part,meshid)
  194.  
  195. local args = {
  196.  
  197. [1] = "SyncMesh",
  198.  
  199. [2] = {
  200.  
  201. [1] = {
  202.  
  203. ["Part"] = part,
  204.  
  205. ["MeshId"] = "rbxassetid://"..meshid
  206.  
  207. }
  208.  
  209. }
  210.  
  211. }
  212.  
  213. _(args)
  214.  
  215. end
  216.  
  217. function SetTexture(part, texid)
  218.  
  219. local args = {
  220.  
  221. [1] = "SyncMesh",
  222.  
  223. [2] = {
  224.  
  225. [1] = {
  226.  
  227. ["Part"] = part,
  228.  
  229. ["TextureId"] = "rbxassetid://"..texid
  230.  
  231. }
  232.  
  233. }
  234.  
  235. }
  236.  
  237. _(args)
  238.  
  239. end
  240.  
  241. function SetName(part, stringg)
  242.  
  243. local args = {
  244.  
  245. [1] = "SetName",
  246.  
  247. [2] = {
  248.  
  249. [1] = part
  250.  
  251. },
  252.  
  253. [3] = stringg
  254.  
  255. }
  256.  
  257. _(args)
  258.  
  259. end
  260.  
  261. function MeshResize(part,size)
  262.  
  263. local args = {
  264.  
  265. [1] = "SyncMesh",
  266.  
  267. [2] = {
  268.  
  269. [1] = {
  270.  
  271. ["Part"] = part,
  272.  
  273. ["Scale"] = size
  274.  
  275. }
  276.  
  277. }
  278.  
  279. }
  280.  
  281. _(args)
  282.  
  283. end
  284.  
  285. function Weld(part1, part2,lead)
  286.  
  287. local args = {
  288.  
  289. [1] = "CreateWelds",
  290.  
  291. [2] = {
  292.  
  293. [1] = part1,
  294.  
  295. [2] = part2
  296.  
  297. },
  298.  
  299. [3] = lead
  300.  
  301. }
  302.  
  303. _(args)
  304.  
  305. end
  306.  
  307. function SetLocked(part,boolean)
  308.  
  309. local args = {
  310.  
  311. [1] = "SetLocked",
  312.  
  313. [2] = {
  314.  
  315. [1] = part
  316.  
  317. },
  318.  
  319. [3] = boolean
  320.  
  321. }
  322.  
  323. _(args)
  324.  
  325. end
  326.  
  327. function SetTrans(part,int)
  328.  
  329. local args = {
  330.  
  331. [1] = "SyncMaterial",
  332.  
  333. [2] = {
  334.  
  335. [1] = {
  336.  
  337. ["Part"] = part,
  338.  
  339. ["Transparency"] = int
  340.  
  341. }
  342.  
  343. }
  344.  
  345. }
  346.  
  347. _(args)
  348.  
  349. end
  350.  
  351. function CreateSpotlight(part)
  352.  
  353. local args = {
  354.  
  355. [1] = "CreateLights",
  356.  
  357. [2] = {
  358.  
  359. [1] = {
  360.  
  361. ["Part"] = part,
  362.  
  363. ["LightType"] = "SpotLight"
  364.  
  365. }
  366.  
  367. }
  368.  
  369. }
  370.  
  371. _(args)
  372.  
  373. end
  374.  
  375. function SyncLighting(part,brightness)
  376.  
  377. local args = {
  378.  
  379. [1] = "SyncLighting",
  380.  
  381. [2] = {
  382.  
  383. [1] = {
  384.  
  385. ["Part"] = part,
  386.  
  387. ["LightType"] = "SpotLight",
  388.  
  389. ["Brightness"] = brightness
  390.  
  391. }
  392.  
  393. }
  394.  
  395. }
  396.  
  397. _(args)
  398.  
  399. end
  400.  
  401. function Color(part,color)
  402.  
  403. local args = {
  404.  
  405. [1] = "SyncColor",
  406.  
  407. [2] = {
  408.  
  409. [1] = {
  410.  
  411. ["Part"] = part,
  412.  
  413. ["Color"] = color --[[Color3]],
  414.  
  415. ["UnionColoring"] = false
  416.  
  417. }
  418.  
  419. }
  420.  
  421. }
  422.  
  423. _(args)
  424.  
  425. end
  426.  
  427. function SpawnDecal(part,side)
  428.  
  429. local args = {
  430.  
  431. [1] = "CreateTextures",
  432.  
  433. [2] = {
  434.  
  435. [1] = {
  436.  
  437. ["Part"] = part,
  438.  
  439. ["Face"] = side,
  440.  
  441. ["TextureType"] = "Decal"
  442.  
  443. }
  444.  
  445. }
  446.  
  447. }
  448.  
  449. _(args)
  450.  
  451. end
  452.  
  453. function AddDecal(part,asset,side)
  454.  
  455. local args = {
  456.  
  457. [1] = "SyncTexture",
  458.  
  459. [2] = {
  460.  
  461. [1] = {
  462.  
  463. ["Part"] = part,
  464.  
  465. ["Face"] = side,
  466.  
  467. ["TextureType"] = "Decal",
  468.  
  469. ["Texture"] = "rbxassetid://".. asset
  470.  
  471. }
  472.  
  473. }
  474.  
  475. }
  476.  
  477. _(args)
  478.  
  479. end
  480.  
  481. function Sky(id)
  482.  
  483. e = char.HumanoidRootPart.CFrame.x
  484.  
  485. f = char.HumanoidRootPart.CFrame.y
  486.  
  487. g = char.HumanoidRootPart.CFrame.z
  488.  
  489. CreatePart(CFrame.new(math.floor(e),math.floor(f),math.floor(g)) + Vector3.new(0,6,0),workspace)
  490.  
  491. for i,v in game.Workspace:GetDescendants() do
  492.  
  493. if v:IsA("BasePart") and v.CFrame.x == math.floor(e) and v.CFrame.z == math.floor(g) then
  494.  
  495. --spawn(function()
  496.  
  497. SetName(v,"Sky")
  498.  
  499. AddMesh(v)
  500.  
  501. --end)
  502.  
  503. --spawn(function()
  504.  
  505. SetMesh(v,"111891702759441")
  506.  
  507. SetTexture(v,id)
  508.  
  509. --end)
  510.  
  511. MeshResize(v,Vector3.new(6000,6000,6000))
  512.  
  513. SetLocked(v,true)
  514.  
  515. end
  516.  
  517. end
  518.  
  519. end
  520.  
  521. Sky("16858909104")
Advertisement
Add Comment
Please, Sign In to add comment