AA122294

Untitled

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