Coolskidooowhd

serversiderzzz

Jul 23rd, 2026 (edited)
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local player = Players.LocalPlayer
  5. local char = player.Character or player.CharacterAdded:Wait()
  6.  
  7. player.CharacterAdded:Connect(function(c)
  8. char = c
  9. end)
  10.  
  11. local tool
  12.  
  13. for _, v in ipairs(player:GetDescendants()) do
  14. if v.Name == "SyncAPI" then
  15. tool = v.Parent
  16. break
  17. end
  18. end
  19.  
  20. if not tool then
  21. for _, v in ipairs(ReplicatedStorage:GetDescendants()) do
  22. if v.Name == "SyncAPI" then
  23. tool = v.Parent
  24. break
  25. end
  26. end
  27. end
  28.  
  29. if not tool or not tool:FindFirstChild("SyncAPI") or not tool.SyncAPI:FindFirstChild("ServerEndpoint") then
  30. warn("You don't have Building Tools (F3X)")
  31. return
  32. end
  33.  
  34. local remote = tool.SyncAPI.ServerEndpoint
  35.  
  36. local function _(args)
  37. return remote:InvokeServer(unpack(args))
  38. end
  39.  
  40. function SetCollision(part,bool)
  41. local args = { [1] = "SyncCollision", [2] = { [1] = { [ "Part" ] = part, [ "CanCollide" ] = bool } } }
  42. _(args)
  43. end
  44.  
  45. function SetAnchor(bool,part)
  46. local args = { [1] = "SyncAnchor", [2] = { [1] = { [ "Part" ] = part, [ "Anchored" ] = bool } } }
  47. _(args)
  48. end
  49.  
  50. function CreatePart(cf,parent)
  51. local args = { [1] = "CreatePart", [2] = "Normal", [3] = cf, [4] = parent }
  52. _(args)
  53. end
  54.  
  55. function CreatePartSky(cf, parent)
  56. local args = {
  57. [1] = "CreatePart",
  58. [2] = "Normal",
  59. [3] = cf,
  60. [4] = parent
  61. }
  62.  
  63. return _(args)
  64. end
  65.  
  66. function SetName(part,name)
  67. local args = { [1] = "SetName", [2] = {part}, [3] = name }
  68. _(args)
  69. end
  70.  
  71. function MovePart(part,cf)
  72. local args = { [1] = "SyncMove", [2] = { [1] = { [ "Part" ] = part, [ "CFrame" ] = cf } } }
  73. _(args)
  74. end
  75.  
  76. function AddMesh(part)
  77. local args = { [1] = "CreateMeshes", [2] = { [1] = { [ "Part" ] = part } } }
  78. _(args)
  79. end
  80.  
  81. function SetMesh(part,meshid)
  82. local args = { [1] = "SyncMesh", [2] = { [1] = { [ "Part" ] = part, [ "MeshId" ] = "rbxassetid://" ..meshid } } }
  83. _(args)
  84. end
  85.  
  86. function SetTexture(part,texid)
  87. local args = { [1] = "SyncMesh", [2] = { [1] = { [ "Part" ] = part, [ "TextureId" ] = "rbxassetid://" ..texid } } }
  88. _(args)
  89. end
  90.  
  91. function SetVertexColor(part,color)
  92. local args = { [1] = "SyncMesh", [2] = { [1] = { [ "Part" ] = part, [ "VertexColor" ] = color } } }
  93. _(args)
  94. end
  95.  
  96. function MeshResize(part,size)
  97. local args = { [1] = "SyncMesh", [2] = { [1] = { [ "Part" ] = part, [ "Scale" ] = size } } }
  98. _(args)
  99. end
  100.  
  101. function SetLocked(part,bool)
  102. local args = { [1] = "SetLocked", [2] = {part}, [3] = bool }
  103. _(args)
  104. end
  105. local skyPart
  106. function Sky(id)
  107. local root = char:WaitForChild("HumanoidRootPart")
  108. local spawnPos = Vector3.new(0,0, 0)
  109.  
  110. if skyPart then
  111. SetName(skyPart, "HdSkybox")
  112. AddMesh(skyPart)
  113. SetMesh(skyPart, "111891702759441")
  114. SetTexture(skyPart, id)
  115. SetVertexColor(skyPart, Vector3.new(3,3,3))
  116. MeshResize(skyPart, Vector3.new(10000,10000,10000))
  117. SetLocked(skyPart, true)
  118. SetAnchor(true, skyPart)
  119. SetCollision(skyPart, false)
  120. end
  121. end
  122.  
  123. skyPart = CreatePartSky(CFrame.new(0,0,0), workspace)
  124. Sky("108973483377425")
  125.  
  126. --==============================================================================================================--
  127.  
  128. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  129. local hdClient = ReplicatedStorage:WaitForChild("HDAdminHDClient")
  130. local RequestCommandSilent = hdClient:WaitForChild("Signals"):WaitForChild("RequestCommandSilent")
  131. RequestCommandSilent:InvokeServer(";fog 10000 ;fogcolor black")
  132. RequestCommandSilent:InvokeServer(";time 0")
  133.  
  134.  
  135. function SpawnDecal(part,side)
  136. local args = {
  137. [1] = "CreateTextures",
  138. [2] = {
  139. [1] = {
  140. ["Part"] = part,
  141. ["Face"] = side,
  142. ["TextureType"] = "Decal"
  143. }
  144. }
  145. }
  146.  
  147. _(args)
  148. end
  149. function AddDecal(part,asset,side)
  150. local args = {
  151. [1] = "SyncTexture",
  152. [2] = {
  153. [1] = {
  154. ["Part"] = part,
  155. ["Face"] = side,
  156. ["TextureType"] = "Decal",
  157. ["Texture"] = "rbxassetid://".. asset
  158. }
  159. }
  160. }
  161. _(args)
  162. end
  163. function spam(id)
  164. for _, v in ipairs(workspace:GetDescendants()) do
  165. if v:IsA("BasePart") and v ~= skyPart then
  166. task.spawn(function()
  167. SetLocked(v,false)
  168. SpawnDecal(v,Enum.NormalId.Front)
  169. AddDecal(v,id,Enum.NormalId.Front)
  170. SpawnDecal(v,Enum.NormalId.Back)
  171. AddDecal(v,id,Enum.NormalId.Back)
  172. SpawnDecal(v,Enum.NormalId.Right)
  173. AddDecal(v,id,Enum.NormalId.Right)
  174. SpawnDecal(v,Enum.NormalId.Left)
  175. AddDecal(v,id,Enum.NormalId.Left)
  176. SpawnDecal(v,Enum.NormalId.Bottom)
  177. AddDecal(v,id,Enum.NormalId.Bottom)
  178. SpawnDecal(v,Enum.NormalId.Top)
  179. AddDecal(v,id,Enum.NormalId.Top)
  180. end)
  181. end
  182. end
  183. end
  184. spam("108973483377425")
Advertisement
Add Comment
Please, Sign In to add comment