sIendytubble

hook gui (hook players)

May 21st, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.71 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. function truck(player)
  137. player = player
  138. char = player.Character
  139. for i,v in pairs(char:GetChildren()) do
  140. for i,v in pairs(v:GetChildren()) do
  141. if v.Name == "Neck" and v.ClassName == "Motor6D" then
  142. gloo = Instance.new("ManualGlue",v.Parent)
  143. gloo.Part0 = v.Part0
  144. gloo.Part1 = v.Part1
  145. gloo.C0 = v.C0
  146. gloo.C1 = v.C1
  147. v.Part0 = nil
  148. end
  149. end
  150. end
  151. mas = workspace
  152. Model0 = Instance.new("Model")
  153. Part1 = Instance.new("Part")
  154. Part2 = Instance.new("Part")
  155. SpecialMesh3 = Instance.new("SpecialMesh")
  156. Decal4 = Instance.new("Decal")
  157. Camera5 = Instance.new("Camera")
  158. Weld6 = Instance.new("Weld")
  159. CFrameValue7 = Instance.new("CFrameValue")
  160. Part8 = Instance.new("Part")
  161. Weld9 = Instance.new("Weld")
  162. CFrameValue10 = Instance.new("CFrameValue")
  163. Part11 = Instance.new("Part")
  164. Weld12 = Instance.new("Weld")
  165. CFrameValue13 = Instance.new("CFrameValue")
  166. Part14 = Instance.new("Part")
  167. Weld15 = Instance.new("Weld")
  168. CFrameValue16 = Instance.new("CFrameValue")
  169. Part17 = Instance.new("Part")
  170. Weld18 = Instance.new("Weld")
  171. CFrameValue19 = Instance.new("CFrameValue")
  172. Part20 = Instance.new("Part")
  173. Weld21 = Instance.new("Weld")
  174. CFrameValue22 = Instance.new("CFrameValue")
  175. Part23 = Instance.new("Part")
  176. Weld24 = Instance.new("Weld")
  177. CFrameValue25 = Instance.new("CFrameValue")
  178. Part26 = Instance.new("Part")
  179. Weld27 = Instance.new("Weld")
  180. CFrameValue28 = Instance.new("CFrameValue")
  181. Model0.Parent = mas
  182. Part1.Name = "Head"
  183. Part1.CanCollide = false
  184. Part1.Parent = Model0
  185. Part1.CFrame = CFrame.new(-18.5, 4.49999619, -45.7500076, 1, 0, 0, 0, 0.939693213, -0.342018515, 0, 0.342021376, 0.939692497)
  186. Part1.Orientation = Vector3.new(20, 0, 0)
  187. Part1.Position = Vector3.new(-18.5, 4.49999619, -45.7500076)
  188. Part1.Rotation = Vector3.new(20, 0, 0)
  189. Part1.Color = Color3.new(0.898039, 0.894118, 0.87451)
  190. Part1.Transparency = 1
  191. Part1.Size = Vector3.new(2, 1, 1)
  192. Part1.BrickColor = BrickColor.new("Light stone grey")
  193. Part1.TopSurface = Enum.SurfaceType.Smooth
  194. Part1.brickColor = BrickColor.new("Light stone grey")
  195. Part1.FormFactor = Enum.FormFactor.Symmetric
  196. Part1.formFactor = Enum.FormFactor.Symmetric
  197. Part2.Name = "Hook"
  198. Part2.CanCollide = false
  199. Part2.Parent = Model0
  200. Part2.CFrame = CFrame.new(-18.5, 5.24999714, -45.2500076, 0.087154977, -0.99619478, 0, 1.49011612e-06, 1.3038516e-07, -1, 0.996195078, 0.0871549994, -1.49011612e-06)
  201. Part2.Orientation = Vector3.new(90, -85, 0)
  202. Part2.Position = Vector3.new(-18.5, 5.24999714, -45.2500076)
  203. Part2.Rotation = Vector3.new(90, 0, 85)
  204. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  205. Part2.Transparency = 1
  206. Part2.Size = Vector3.new(0.5, 0.5, 0.5)
  207. Part2.BottomSurface = Enum.SurfaceType.Smooth
  208. Part2.BrickColor = BrickColor.new("Dark stone grey")
  209. Part2.Reflectance = 0.40000000596046
  210. Part2.TopSurface = Enum.SurfaceType.Smooth
  211. Part2.brickColor = BrickColor.new("Dark stone grey")
  212. Part2.FormFactor = Enum.FormFactor.Plate
  213. Part2.formFactor = Enum.FormFactor.Plate
  214. SpecialMesh3.Parent = Part2
  215. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=13160225"
  216. SpecialMesh3.Scale = Vector3.new(0.975000024, 1, 1)
  217. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  218. Decal4.Parent = Part2
  219. Decal4.Texture = "http://www.roblox.com/asset/?id=21424775"
  220. Camera5.Name = "ThumbnailCamera"
  221. Camera5.Parent = Part2
  222. Camera5.CFrame = CFrame.new(22.6512184, 1.09977579, 4.28934383, -0.818628252, -0.0531277284, -0.571861148, -3.7252903e-09, 0.995712161, -0.0925048441, 0.574323714, -0.0757270753, -0.815118194)
  223. Camera5.CoordinateFrame = CFrame.new(22.6512184, 1.09977579, 4.28934383, -0.818628252, -0.0531277284, -0.571861148, -3.7252903e-09, 0.995712161, -0.0925048441, 0.574323714, -0.0757270753, -0.815118194)
  224. Camera5.FieldOfView = 35
  225. Camera5.Focus = CFrame.new(23.7949409, 1.28478551, 5.91958046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. Camera5.focus = CFrame.new(23.7949409, 1.28478551, 5.91958046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  227. Weld6.Name = "qCFrameWeldThingy"
  228. Weld6.Parent = Part2
  229. Weld6.C1 = CFrame.new(-0.498096466, -0.0435771942, 0.75, 0.087154977, 0.340718448, 0.936116993, -0.99619478, 0.0298087355, 0.0818988904, 0, -0.939692736, 0.342019886)
  230. Weld6.Part0 = Part1
  231. Weld6.Part1 = Part2
  232. Weld6.part1 = Part2
  233. CFrameValue7.Name = "qRelativeCFrameWeldValue"
  234. CFrameValue7.Parent = Part2
  235. CFrameValue7.Value = CFrame.new(-0.498096466, -0.0435771942, 0.75, 0.087154977, 0.340718448, 0.936116993, -0.99619478, 0.0298087355, 0.0818988904, 0, -0.939692736, 0.342019886)
  236. Part8.Parent = Model0
  237. Part8.CFrame = CFrame.new(-18.5, 7.49999714, -45.2500038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  238. Part8.Position = Vector3.new(-18.5, 7.49999714, -45.2500038)
  239. Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
  240. Part8.Size = Vector3.new(0.5, 3, 0.5)
  241. Part8.BottomSurface = Enum.SurfaceType.Smooth
  242. Part8.BrickColor = BrickColor.new("Dark stone grey")
  243. Part8.Material = Enum.Material.SmoothPlastic
  244. Part8.TopSurface = Enum.SurfaceType.Smooth
  245. Part8.brickColor = BrickColor.new("Dark stone grey")
  246. Weld9.Name = "qCFrameWeldThingy"
  247. Weld9.Parent = Part8
  248. Weld9.C1 = CFrame.new(0, -3, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  249. Weld9.Part0 = Part1
  250. Weld9.Part1 = Part8
  251. Weld9.part1 = Part8
  252. CFrameValue10.Name = "qRelativeCFrameWeldValue"
  253. CFrameValue10.Parent = Part8
  254. CFrameValue10.Value = CFrame.new(0, -3, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  255. Part11.Parent = Model0
  256. Part11.CFrame = CFrame.new(-18.5, 7.00000286, -41.0000038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  257. Part11.Position = Vector3.new(-18.5, 7.00000286, -41.0000038)
  258. Part11.Color = Color3.new(0.768627, 0.156863, 0.109804)
  259. Part11.Size = Vector3.new(2, 4, 1)
  260. Part11.BottomSurface = Enum.SurfaceType.Smooth
  261. Part11.BrickColor = BrickColor.new("Bright red")
  262. Part11.Material = Enum.Material.SmoothPlastic
  263. Part11.TopSurface = Enum.SurfaceType.Smooth
  264. Part11.brickColor = BrickColor.new("Bright red")
  265. Weld12.Name = "qCFrameWeldThingy"
  266. Weld12.Parent = Part11
  267. Weld12.C1 = CFrame.new(0, -2.5, -4.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  268. Weld12.Part0 = Part1
  269. Weld12.Part1 = Part11
  270. Weld12.part1 = Part11
  271. CFrameValue13.Name = "qRelativeCFrameWeldValue"
  272. CFrameValue13.Parent = Part11
  273. CFrameValue13.Value = CFrame.new(0, -2.5, -4.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  274. Part14.Parent = Model0
  275. Part14.CFrame = CFrame.new(-18.5, 5.00000191, -42.0000076, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  276. Part14.Position = Vector3.new(-18.5, 5.00000191, -42.0000076)
  277. Part14.Size = Vector3.new(2, 2, 1)
  278. Part14.BottomSurface = Enum.SurfaceType.Smooth
  279. Part14.Material = Enum.Material.SmoothPlastic
  280. Part14.TopSurface = Enum.SurfaceType.Smooth
  281. Weld15.Name = "qCFrameWeldThingy"
  282. Weld15.Parent = Part14
  283. Weld15.C1 = CFrame.new(0, -0.5, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  284. Weld15.Part0 = Part1
  285. Weld15.Part1 = Part14
  286. Weld15.part1 = Part14
  287. CFrameValue16.Name = "qRelativeCFrameWeldValue"
  288. CFrameValue16.Parent = Part14
  289. CFrameValue16.Value = CFrame.new(0, -0.5, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  290. Part17.Parent = Model0
  291. Part17.CFrame = CFrame.new(-18.5, 2.50000262, -41.5000076, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.4603138e-06, 1.00000024)
  292. Part17.Position = Vector3.new(-18.5, 2.50000262, -41.5000076)
  293. Part17.Size = Vector3.new(2, 5, 2)
  294. Part17.Anchored = true
  295. Part17.BottomSurface = Enum.SurfaceType.Smooth
  296. Part17.Material = Enum.Material.SmoothPlastic
  297. Part17.TopSurface = Enum.SurfaceType.Smooth
  298. Weld18.Name = "qCFrameWeldThingy"
  299. Weld18.Parent = Part17
  300. Weld18.C1 = CFrame.new(0, 1.99999952, -4.25, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  301. Weld18.Part0 = Part1
  302. Weld18.Part1 = Part17
  303. Weld18.part1 = Part17
  304. CFrameValue19.Name = "qRelativeCFrameWeldValue"
  305. CFrameValue19.Parent = Part17
  306. CFrameValue19.Value = CFrame.new(0, 1.99999952, -4.25, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  307. Part20.Parent = Model0
  308. Part20.CFrame = CFrame.new(-18.5, 7.50000191, -42, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  309. Part20.Position = Vector3.new(-18.5, 7.50000191, -42)
  310. Part20.Color = Color3.new(0.768627, 0.156863, 0.109804)
  311. Part20.Size = Vector3.new(2, 3, 1)
  312. Part20.BottomSurface = Enum.SurfaceType.Smooth
  313. Part20.BrickColor = BrickColor.new("Bright red")
  314. Part20.Material = Enum.Material.SmoothPlastic
  315. Part20.TopSurface = Enum.SurfaceType.Smooth
  316. Part20.brickColor = BrickColor.new("Bright red")
  317. Weld21.Name = "qCFrameWeldThingy"
  318. Weld21.Parent = Part20
  319. Weld21.C1 = CFrame.new(0, -3, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  320. Weld21.Part0 = Part1
  321. Weld21.Part1 = Part20
  322. Weld21.part1 = Part20
  323. CFrameValue22.Name = "qRelativeCFrameWeldValue"
  324. CFrameValue22.Parent = Part20
  325. CFrameValue22.Value = CFrame.new(0, -3, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  326. Part23.Parent = Model0
  327. Part23.CFrame = CFrame.new(-18.5, 8.49999809, -44, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  328. Part23.Position = Vector3.new(-18.5, 8.49999809, -44)
  329. Part23.Color = Color3.new(0.768627, 0.156863, 0.109804)
  330. Part23.Size = Vector3.new(2, 1, 5)
  331. Part23.BottomSurface = Enum.SurfaceType.Smooth
  332. Part23.BrickColor = BrickColor.new("Bright red")
  333. Part23.Material = Enum.Material.SmoothPlastic
  334. Part23.TopSurface = Enum.SurfaceType.Smooth
  335. Part23.brickColor = BrickColor.new("Bright red")
  336. Weld24.Name = "qCFrameWeldThingy"
  337. Weld24.Parent = Part23
  338. Weld24.C1 = CFrame.new(0, -4, -1.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  339. Weld24.Part0 = Part1
  340. Weld24.Part1 = Part23
  341. Weld24.part1 = Part23
  342. CFrameValue25.Name = "qRelativeCFrameWeldValue"
  343. CFrameValue25.Parent = Part23
  344. CFrameValue25.Value = CFrame.new(0, -4, -1.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  345. Part26.Parent = Model0
  346. Part26.CFrame = CFrame.new(-18.5, 5.74999714, -45.2500038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
  347. Part26.Position = Vector3.new(-18.5, 5.74999714, -45.2500038)
  348. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  349. Part26.Size = Vector3.new(0.5, 0.5, 0.5)
  350. Part26.BottomSurface = Enum.SurfaceType.Smooth
  351. Part26.BrickColor = BrickColor.new("Dark stone grey")
  352. Part26.Material = Enum.Material.SmoothPlastic
  353. Part26.TopSurface = Enum.SurfaceType.Smooth
  354. Part26.brickColor = BrickColor.new("Dark stone grey")
  355. Weld27.Name = "qCFrameWeldThingy"
  356. Weld27.Parent = Part26
  357. Weld27.C1 = CFrame.new(0, -1.25, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  358. Weld27.Part0 = Part1
  359. Weld27.Part1 = Part26
  360. Weld27.part1 = Part26
  361. CFrameValue28.Name = "qRelativeCFrameWeldValue"
  362. CFrameValue28.Parent = Part26
  363. CFrameValue28.Value = CFrame.new(0, -1.25, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
  364. main = Part17
  365. main.CFrame = char.Head.CFrame
  366. for i,v in pairs(main.Parent:GetChildren()) do
  367. v.Anchored = true
  368. end
  369. weld = Instance.new("Weld",char.Head)
  370. weld.Part0 = Part1
  371. weld.Part1 = char.Head
  372. char.Humanoid.Died:Connect(function()
  373. coroutine.resume(coroutine.create(function()
  374. target = char
  375. --hit.Velocity = Vector3.new(hit.Velocity.X + (head.CFrame.lookVector.X * 18), hit.Velocity.Y + (head.CFrame.lookVector.Y * 18) + 8, hit.Velocity.Z + (head.CFrame.lookVector.Z * 18))
  376. target.Archivable = true
  377. ragdoll = target:Clone()
  378. Humanoid = ragdoll.Humanoid
  379. ragdoll.Parent = workspace
  380. vweld = Instance.new("Weld",target)
  381. vweld.Part0 = ragdoll:WaitForChild("HumanoidRootPart")
  382. vweld.Part1 = target:WaitForChild("HumanoidRootPart")
  383. target.HumanoidRootPart.Transparency = 1
  384. for i,v in pairs(target:GetChildren()) do
  385. if v.ClassName == "Part" then
  386. v:Destroy()
  387. end
  388. end
  389. for i,v in pairs(target:GetChildren()) do
  390. if v.ClassName == "Script" then
  391. v:Destroy()
  392. end
  393. end
  394. target:Destroy()
  395. weld = Instance.new("Weld",ragdoll.Head)
  396. weld.Part0 = Part1
  397. weld.Part1 = ragdoll.Head
  398. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  399. ragdoll.Humanoid.BreakJointsOnDeath=false
  400. ragdoll.Humanoid.Name = "DEADMIDGET"
  401. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  402. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  403. local connection = Instance.new('BallSocketConstraint', limb)
  404. connection.LimitsEnabled = true
  405. connection.Attachment0 = attachementone
  406. connection.Attachment1 = attachmenttwo
  407. connection.TwistLimitsEnabled = true
  408. connection.TwistLowerAngle = twistlower
  409. connection.TwistUpperAngle = twistupper
  410. local limbcollider = Instance.new("Part", limb)
  411. limbcollider.Size = Vector3.new(0.1,1,1)
  412. limbcollider.Shape = "Cylinder"
  413. limbcollider.Transparency = 1
  414. limbcollider:BreakJoints()
  415. local limbcolliderweld = Instance.new("Weld", limbcollider)
  416. limbcolliderweld.Part0 = limb
  417. limbcolliderweld.Part1 = limbcollider
  418. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  419. end
  420. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  421. local connection = Instance.new('HingeConstraint', limb)
  422. connection.LimitsEnabled = true
  423. connection.Attachment0 = attachementone
  424. connection.Attachment1 = attachmenttwo
  425. connection.LimitsEnabled = true
  426. connection.LowerAngle = lower
  427. connection.UpperAngle = upper
  428. local limbcollider = Instance.new("Part", limb)
  429. limbcollider.Size = Vector3.new(0.1,1,1)
  430. limbcollider.Shape = "Cylinder"
  431. limbcollider.Transparency = 1
  432. limbcollider:BreakJoints()
  433. local limbcolliderweld = Instance.new("Weld", limbcollider)
  434. limbcolliderweld.Part0 = limb
  435. limbcolliderweld.Part1 = limbcollider
  436. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  437. end
  438. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  439. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  440. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  441. --makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  442. end
  443. function bleed(frick,OwO)
  444. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  445. local reeee = coroutine.wrap(function()
  446. local thing = Instance.new('Part',workspace)
  447. thing.Size = Vector3.new(0.2,0.2,0.2)
  448. thing.CFrame = frick.CFrame
  449. thing.Transparency = 1
  450. thing.BrickColor = BrickColor.new('Maroon')
  451. thing.Material = Enum.Material.SmoothPlastic
  452. thing.Name = "Blood"
  453. thing.CanCollide =false
  454. thing:BreakJoints()
  455. local rawrxd = Instance.new('BodyForce',thing)
  456. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  457. local coru = coroutine.wrap(function()
  458. wait(0.01)
  459. rawrxd:Destroy()
  460. end)
  461. coru()
  462. local ree = Instance.new('ParticleEmitter',thing)
  463. if OwO ~= true then
  464. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  465. else
  466. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  467. end
  468. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  469. ree.Texture = 'rbxassetid://867743272'
  470. ree.Lifetime = NumberRange.new(0.4)
  471. ree.Rate = 50
  472. ree.LockedToPart = true
  473. ree.Speed = NumberRange.new(0, 2)
  474. thing.Touched:connect(function(tou)
  475. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  476. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  477. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  478. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  479. local Region = Region3.new(Point1,Point2)
  480. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  481. if Part.Name == "BloodPuddle" then
  482. tou = Part
  483. end
  484. end
  485. thing:Destroy()
  486. if tou.Name == "BloodPuddle" then
  487. if tou.Size.X < 1 then
  488. pcall(function()
  489. tou.Sound:Play()
  490. end)
  491. end
  492. local reee = tou.CFrame
  493. if tou.Transparency > -0.2 then
  494. tou.Transparency = tou.Transparency -0.1
  495. end
  496. if tou.Size.X < 3 then
  497. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  498. tou.CFrame = reee
  499. end
  500. elseif tou.CanCollide == true then
  501. local bloodlol = Instance.new('Part',workspace)
  502. local sound = Instance.new('Sound',bloodlol)
  503. sound.SoundId = 'rbxassetid://685857471'
  504. sound.Volume = 0.025
  505. sound:Play()
  506. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  507. bloodlol.Name = "BloodPuddle"
  508. bloodlol.Anchored = true
  509. bloodlol.CanCollide = false
  510. bloodlol.Material = Enum.Material.SmoothPlastic
  511. if OwO ~= true then
  512. bloodlol.Color = Color3.new(117, 0, 0)
  513. else
  514. bloodlol.Color = Color3.new(117, 0, 0)
  515. end
  516. local cyl = Instance.new('CylinderMesh',bloodlol)
  517. cyl.Scale = Vector3.new(1,0.1,1)
  518. bloodlol.CFrame = CFrame.new(pos)
  519. coroutine.resume(coroutine.create(function()
  520. local tou = bloodlol
  521. local reee = tou.CFrame
  522. while wait() do
  523. if tou.Size.X < 5 then
  524. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  525. tou.CFrame = reee
  526. end
  527. end
  528. end))
  529. local coru=coroutine.wrap(function()
  530. while bloodlol.Parent ~= nil do
  531. if bloodlol.Transparency < 1 then
  532. bloodlol.Transparency = bloodlol.Transparency+0.05
  533. else
  534. bloodlol:Destroy()
  535. end
  536. wait(0.1)
  537. end
  538. end)
  539. end
  540. end
  541. end)
  542. local coru = coroutine.wrap(function()
  543. wait(1)
  544. thing:Destroy()
  545. end)
  546. coru()
  547. end)
  548. reeee()
  549. wait()
  550. end
  551. end
  552.  
  553. local aidsificating = Humanoid.Parent
  554. local thang = "Torso"
  555. if aidsificating:FindFirstChild('UpperTorso') then
  556. thang = "UpperTorso"
  557. end
  558. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  559. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  560. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  561. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  562. --
  563. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  564. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  565. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  566. --
  567. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  568. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  569. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  570. --
  571. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  572. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  573. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  574. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  575. if v.ClassName == "Accessory" then
  576. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  577. if attachment1 then
  578. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  579. if w.ClassName == "Part" then
  580. local attachment2 = w:findFirstChild(attachment1.Name)
  581. if attachment2 then
  582. local hinge = Instance.new("HingeConstraint", v.Handle)
  583. hinge.Attachment0 = attachment1
  584. hinge.Attachment1 = attachment2
  585. hinge.LimitsEnabled = true
  586. hinge.LowerAngle = 0
  587. hinge.UpperAngle = 0
  588. end
  589. end
  590. end
  591. end
  592. end
  593. end
  594. for i,v in pairs(ragdoll:GetChildren()) do
  595. for q,w in pairs(v:GetChildren()) do
  596. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  597. w:destroy()
  598. end
  599. end
  600. end
  601. if ragdoll:findFirstChild("HumanoidRootPart") then
  602. ragdoll.HumanoidRootPart:destroy()
  603. end
  604. if ragdoll:findFirstChildOfClass("Humanoid") then
  605. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  606. end
  607. else
  608.  
  609. local c = ragdoll
  610. function bleed(frick,OwO)
  611. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  612. local reeee = coroutine.wrap(function()
  613. local thing = Instance.new('Part',workspace)
  614. thing.Size = Vector3.new(0.2,0.2,0.2)
  615. thing.CFrame = frick.CFrame
  616. thing.Transparency = 1
  617. thing.BrickColor = BrickColor.new('Maroon')
  618. thing.Material = Enum.Material.SmoothPlastic
  619. thing.Name = "Blood"
  620. thing.CanCollide =false
  621. thing:BreakJoints()
  622. local rawrxd = Instance.new('BodyForce',thing)
  623. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  624. local coru = coroutine.wrap(function()
  625. wait(0.01)
  626. rawrxd:Destroy()
  627. end)
  628. coru()
  629. local ree = Instance.new('ParticleEmitter',thing)
  630. if OwO ~= true then
  631. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  632. else
  633. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  634. end
  635. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  636. ree.Texture = 'rbxassetid://867743272'
  637. ree.Lifetime = NumberRange.new(0.4)
  638. ree.Rate = 50
  639. ree.LockedToPart = true
  640. ree.Speed = NumberRange.new(0, 2)
  641. thing.Touched:connect(function(tou)
  642. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  643. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  644. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  645. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  646. local Region = Region3.new(Point1,Point2)
  647. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  648. if Part.Name == "BloodPuddle" then
  649. tou = Part
  650. end
  651. end
  652. thing:Destroy()
  653. if tou.Name == "BloodPuddle" then
  654. if tou.Size.X < 1 then
  655. pcall(function()
  656. tou.Sound:Play()
  657. end)
  658. end
  659. local reee = tou.CFrame
  660. if tou.Transparency > -0.2 then
  661. tou.Transparency = tou.Transparency -0.1
  662. end
  663. if tou.Size.X < 3 then
  664. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  665. tou.CFrame = reee
  666. end
  667. elseif tou.CanCollide == true then
  668. local bloodlol = Instance.new('Part',workspace)
  669. local sound = Instance.new('Sound',bloodlol)
  670. sound.SoundId = 'rbxassetid://685857471'
  671. sound.Volume = 0.025
  672. sound:Play()
  673. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  674. bloodlol.Name = "BloodPuddle"
  675. bloodlol.Anchored = true
  676. bloodlol.CanCollide = false
  677. bloodlol.Material = Enum.Material.SmoothPlastic
  678. if OwO ~= true then
  679. bloodlol.Color = Color3.new(117, 0, 0)
  680. else
  681. bloodlol.Color = Color3.new(117, 0, 0)
  682. end
  683. local cyl = Instance.new('CylinderMesh',bloodlol)
  684. cyl.Scale = Vector3.new(1,0.1,1)
  685. bloodlol.CFrame = CFrame.new(pos)
  686. coroutine.resume(coroutine.create(function()
  687. local tou = bloodlol
  688. local reee = tou.CFrame
  689. while wait() do
  690. if tou.Size.X < 5 then
  691. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  692. tou.CFrame = reee
  693. end
  694. end
  695. end))
  696. local coru=coroutine.wrap(function()
  697. while bloodlol.Parent ~= nil do
  698. if bloodlol.Transparency < 1 then
  699. bloodlol.Transparency = bloodlol.Transparency+0.05
  700. else
  701. bloodlol:Destroy()
  702. end
  703. wait(0.1)
  704. end
  705. end)
  706. end
  707. end
  708. end)
  709. local coru = coroutine.wrap(function()
  710. wait(1)
  711. thing:Destroy()
  712. end)
  713. coru()
  714. end)
  715. reeee()
  716. wait()
  717. end
  718. end
  719.  
  720. local aidsificating = Humanoid.Parent
  721. local thang = "Torso"
  722. if aidsificating:FindFirstChild('UpperTorso') then
  723. thang = "UpperTorso"
  724. end
  725. ragdoll.Humanoid.BreakJointsOnDeath=false
  726. ragdoll.Humanoid.Name = "DEADMIDGET"
  727. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  728. leftleg = Instance.new("Part",c["Left Leg"])
  729. leftleg.Shape = "Cylinder"
  730. leftleg.Transparency = 1
  731. leftleg.Size=Vector3.new(1.4,1,1)
  732. leftlegweld = Instance.new("Weld",leftleg)
  733. leftlegweld.Part0=ragdoll["Left Leg"]
  734. leftlegweld.Part1=leftleg
  735. leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  736. rightleg = Instance.new("Part",ragdoll["Right Leg"])
  737. rightleg.Shape = "Cylinder"
  738. rightleg.Size=Vector3.new(1.4,1,1)
  739. rightleg.Transparency = 1
  740. rightlegweld = Instance.new("Weld",leftleg)
  741. rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  742. rightlegweld.Part0=c["Right Leg"]
  743. rightlegweld.Part1=rightleg
  744. rightarm = Instance.new("Part",c["Right Arm"])
  745. rightarm.Shape = "Cylinder"
  746. rightarm.Size=Vector3.new(1.4,1,1)
  747. rightarm.Transparency = 1
  748. rightarmweld = Instance.new("Weld",rightarm)
  749. rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  750. rightarmweld.Part0=c["Right Arm"]
  751. rightarmweld.Part1=rightarm
  752. leftarm = Instance.new("Part",c["Left Arm"])
  753. leftarm.Shape = "Cylinder"
  754. leftarm.Size=Vector3.new(1.4,1,1)
  755. leftarm.Transparency = 1
  756. leftarmweld = Instance.new("Weld",leftarm)
  757. leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  758. leftarmweld.Part0=c["Left Arm"]
  759. leftarmweld.Part1=leftarm
  760. player = ragdoll
  761. local RealTorso = player.Torso
  762. local RealHead = player.Head
  763. local RealLeftleg = player["Left Leg"]
  764. local RealRightleg = player["Right Leg"]
  765. local RealLeftArm = player["Left Arm"]
  766. local RealRightArm = player["Right Arm"]
  767. local rightarmglue = Instance.new("Glue", RealTorso)
  768. rightarmglue.Part0 = RealTorso
  769. rightarmglue.Part1 = RealRightArm
  770. rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  771. rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  772. local leftarmglue = Instance.new("Glue", RealTorso)
  773. leftarmglue.Part0 = RealTorso
  774. leftarmglue.Part1 = RealLeftArm
  775. leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  776. leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  777. local leftlegglue = Instance.new("Glue", RealTorso)
  778. leftlegglue.Part0 = RealTorso
  779. leftlegglue.Part1 = RealLeftleg
  780. leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  781. leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  782. local rightlegglue = Instance.new("Glue", RealTorso)
  783. rightlegglue.Part0 = RealTorso
  784. rightlegglue.Part1 = RealRightleg
  785. rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  786. rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  787. local headglue = Instance.new("Glue", RealTorso)
  788. headglue.Part0 = RealTorso
  789. headglue.Part1 = RealHead
  790. headglue.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  791. headglue.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  792. RealTorso["Left Hip"]:Destroy()
  793. RealTorso["Right Hip"]:Destroy()
  794. RealTorso["Left Shoulder"]:Destroy()
  795. RealTorso["Right Shoulder"]:Destroy()
  796. RealTorso["Left Hip"]:Destroy()
  797. RealTorso["Right Hip"]:Destroy()
  798. RealTorso["Left Shoulder"]:Destroy()
  799. RealTorso["Right Shoulder"]:Destroy()
  800. RealTorso.Neck:Destroy()
  801. RealTorso["Left Hip"]:Destroy()
  802. RealTorso["Right Hip"]:Destroy()
  803. RealTorso["Left Shoulder"]:Destroy()
  804. RealTorso["Right Shoulder"]:Destroy()
  805. RealTorso.Neck:Destroy()
  806. RealTorso["Left Hip"]:Destroy()
  807. RealTorso["Right Hip"]:Destroy()
  808. RealTorso["Left Shoulder"]:Destroy()
  809. RealTorso["Right Shoulder"]:Destroy()
  810. RealTorso.Neck:Destroy()
  811. RealTorso["Left Hip"]:Destroy()
  812. RealTorso["Right Hip"]:Destroy()
  813. RealTorso["Left Shoulder"]:Destroy()
  814. RealTorso["Right Shoulder"]:Destroy()
  815. RealTorso.Neck:Destroy()
  816. for i = 1,100 do
  817. ga = c:FindFirstChildWhichIsA("Motor6D",true)
  818. if ga then
  819. ga.Part0 = nil
  820. ga.Part1 = nil
  821. ga.Parent = nil
  822. end
  823. end
  824. for i,v in pairs(RealTorso:GetChildren()) do
  825. if v.ClassName == "Motor6D" then
  826. v:remove()
  827. end
  828. end
  829. player.Humanoid.BreakJointsOnDeath = false
  830. RealTorso.CanCollide = false
  831. end
  832. while wait(0.1) do
  833. part = Instance.new("Part",workspace)
  834. part.Size = Vector3.new(0,0,0)
  835. part.CFrame = ragdoll.Head.CFrame
  836. part.Material = "Pebbles"
  837. part.BrickColor = BrickColor.new("Maroon")
  838. end
  839. end))
  840. end)
  841. while wait() do
  842. char.Humanoid.Health = char.Humanoid.Health - 0.1
  843. end
  844. end
  845. remoto = Instance.new("RemoteEvent",owner.Character)
  846. remoto.Name = "TruckEvent"
  847. remoto.OnServerEvent:Connect(function(player,target)
  848. for i,v in pairs(game.Players:GetPlayers()) do
  849. if v.Name:lower():sub(1,#target) == target:lower() then
  850. plr = v
  851. truck(plr)
  852. elseif target == "all" then
  853. for i,v in pairs(game.Players:GetChildren()) do
  854. plr = v
  855. truck(plr)
  856. end
  857. elseif target == "others" then
  858. for i,v in pairs(game.Players:GetChildren()) do
  859. if v ~= owner then
  860. plr = v
  861. truck(plr)
  862. end
  863. end
  864. end
  865. end
  866. end)
  867. NLS([[
  868. mas = owner.PlayerGui
  869. ScreenGui0 = Instance.new("ScreenGui")
  870. Frame1 = Instance.new("Frame")
  871. TextButton2 = Instance.new("TextButton")
  872. TextBox3 = Instance.new("TextBox")
  873. ScreenGui0.Parent = mas
  874. ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  875. Frame1.Parent = ScreenGui0
  876. Frame1.Position = UDim2.new(0.741496623, 0, 0.559198558, 0)
  877. Frame1.Size = UDim2.new(0, 153, 0, 113)
  878. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  879. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  880. TextButton2.Parent = Frame1
  881. TextButton2.Position = UDim2.new(0.0915032625, 0, 0.550207675, 0)
  882. TextButton2.Size = UDim2.new(0, 124, 0, 50)
  883. TextButton2.BackgroundColor = BrickColor.new("Institutional white")
  884. TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
  885. TextButton2.Font = Enum.Font.SourceSans
  886. TextButton2.FontSize = Enum.FontSize.Size14
  887. TextButton2.Text = "van"
  888. TextButton2.TextColor = BrickColor.new("Really black")
  889. TextButton2.TextColor3 = Color3.new(0, 0, 0)
  890. TextButton2.TextSize = 14
  891. TextBox3.Parent = Frame1
  892. TextBox3.Position = UDim2.new(0.09150327, 0, -0.00327301025, 0)
  893. TextBox3.Size = UDim2.new(0, 124, 0, 50)
  894. TextBox3.BackgroundColor = BrickColor.new("Institutional white")
  895. TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
  896. TextBox3.Font = Enum.Font.SourceSans
  897. TextBox3.FontSize = Enum.FontSize.Size14
  898. TextBox3.Text = ""
  899. TextBox3.TextColor = BrickColor.new("Really black")
  900. TextBox3.TextColor3 = Color3.new(0, 0, 0)
  901. TextBox3.TextSize = 14
  902. TextBox3.PlaceholderText = "player"
  903. remoteok = mas.Parent.Character:FindFirstChild("TruckEvent")
  904. TextButton2.MouseButton1Click:Connect(function()
  905. remoteok:FireServer(TextBox3.Text)
  906. end)
  907. ]],owner.Character)
Add Comment
Please, Sign In to add comment