Kotyara19k-Official

Thomas xd

Apr 15th, 2025
2,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.18 KB | None | 0 0
  1.  
  2. local player = game.Players.LocalPlayer
  3. local char = player.Character
  4. local tool
  5. for i,v in player:GetDescendants() do
  6. if v.Name == "SyncAPI" then
  7. tool = v.Parent
  8. end
  9. end
  10. for i,v in game.ReplicatedStorage:GetDescendants() do
  11. if v.Name == "SyncAPI" then
  12. tool = v.Parent
  13. end
  14. end
  15. --craaa
  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] = workspace.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. local player = game.Players.LocalPlayer
  206. local char = player.Character
  207. function xd()
  208. spawn(function()
  209. local args = {
  210. [1] = "SyncMaterial",
  211. [2] = {
  212. [1] = {
  213. ["Part"] = game:GetService("Players").LocalPlayer.Character.Torso,
  214. ["Transparency"] = 1
  215. },
  216. [2] = {
  217. ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Left Leg"),
  218. ["Transparency"] = 1
  219. },
  220. [3] = {
  221. ["Part"] = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart,
  222. ["Transparency"] = 1
  223. },
  224. [4] = {
  225. ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Right Leg"),
  226. ["Transparency"] = 1
  227. },
  228. [5] = {
  229. ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Right Arm"),
  230. ["Transparency"] = 1
  231. },
  232. [6] = {
  233. ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Left Arm"),
  234. ["Transparency"] = 1
  235. },
  236. [7] = {
  237. ["Part"] = game:GetService("Players").LocalPlayer.Character.Head,
  238. ["Transparency"] = 1
  239. },
  240. }
  241. }
  242.  
  243. _(args)
  244.  
  245. end)
  246. end
  247. function Thomas(player)
  248. SetAnchor(true,char.HumanoidRootPart)
  249. CreatePart(char.HumanoidRootPart.CFrame,char,"Normal")
  250. SetCollision(char.Part,false)
  251. SetLocked(char.Part,false)
  252. Resize(char.Part,Vector3.new(5,5,10),char.HumanoidRootPart.CFrame)
  253. CreateSpotlight(char.Part)
  254. SyncLighting(char.Part,100)
  255. SetLocked(char.HumanoidRootPart,false)
  256. Weld(char.Part,char.HumanoidRootPart,char.Part)
  257. SetAnchor(false,char.Part)
  258. AddMesh(char.Part)
  259. MeshResize(char.Part,Vector3.new(2,2,1.5))
  260. SetMesh(char.Part,"2231280549")
  261. SetTexture(char.Part,"2231280614")
  262. SetAnchor(false,char.HumanoidRootPart)
  263. char.Humanoid.WalkSpeed = 80
  264. local function SFX(id) local s=Instance.new("Sound",char.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  265. char.Part.Touched:connect(function(p)
  266. if p.Parent then
  267. if p.Parent:IsA("Model") then
  268. if game.Players:FindFirstChild(p.Parent.Name) then
  269. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  270. spawn(function()
  271. DestroyPart(game.Players:FindFirstChild(p.Parent.Name).Character.Head)
  272. end)
  273. local Whistle = SFX(475073913)
  274. Whistle:Play()
  275. end
  276. end
  277. end
  278. end
  279. end)
  280.  
  281. local Music = SFX(0)
  282. Music.Pitch
  283. = 1.15
  284. Music:Play()
  285.  
  286. game:GetService("RunService").RenderStepped:Connect(function()
  287. for i,v in char:GetDescendants() do
  288. if v:IsA("BasePart") then
  289. char.Humanoid.WalkSpeed = 80
  290. v.CanCollide = false
  291. end
  292. end
  293. end)
  294. end
  295. Thomas(player)
  296. xd()
  297.  
  298.  
Advertisement
Add Comment
Please, Sign In to add comment