Advertisement
TheYoutuber_Pro

qeqqq

Dec 30th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.73 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()}
  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. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) 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 self[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. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. --By Ruffles14
  145. if game.Players.lolboigghh.Character then
  146. game.Players.lolboigghh.Character.Humanoid.WalkSpeed = 50
  147. end
  148. function chatfunc(text)
  149. local chat = coroutine.wrap(function()
  150. local naeeym2 = Instance.new("BillboardGui",Character)
  151. naeeym2.Size = UDim2.new(0,100,0,40)
  152. naeeym2.StudsOffset = Vector3.new(0,3,0)
  153. naeeym2.Adornee = game.Players.lolboigghh.Character.Head
  154. naeeym2.Name = "TalkingBillBoard"
  155. local tecks2 = Instance.new("TextLabel",naeeym2)
  156. tecks2.BackgroundTransparency = 1
  157. tecks2.BorderSizePixel = 0
  158. tecks2.Text = ""
  159. tecks2.Font = "Bodoni"
  160. tecks2.TextSize = 30
  161. tecks2.TextStrokeTransparency = 0
  162. tecks2.TextColor3 = Color3.new(255,255,0)
  163. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  164. tecks2.Size = UDim2.new(1,0,0.5,0)
  165. local tecks3 = Instance.new("TextLabel",naeeym2)
  166. tecks3.BackgroundTransparency = 1
  167. tecks3.BorderSizePixel = 0
  168. tecks3.Text = "e"
  169. tecks3.Font = "Bodoni"
  170. tecks3.TextSize = 30
  171. tecks3.TextStrokeTransparency = 0
  172. tecks3.TextColor3 = Color3.new(255,152,220)
  173. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  174. tecks3.Size = UDim2.new(1,0,0.5,0)
  175. coroutine.resume(coroutine.create(function()
  176. while tecks3 ~= nil do
  177. wait(0.3)
  178. tecks3.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  179. tecks3.Rotation = math.random(-3,3)
  180. tecks3.TextColor3 = Color3.new(math.random(0, 255)/255,0,0)
  181. tecks3.TextStrokeColor3 = Color3.new(math.random(0, 255)/255,0,0)
  182. end
  183. end))
  184. for i = 1,string.len(text),1 do
  185. tecks2.Text = string.sub(text,1,i)
  186. tecks3.Text = string.sub(text,1,i)
  187. wait(0.01)
  188. end
  189. wait(2)
  190. for i = 1, 50 do
  191. wait(0.3)
  192. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  193. tecks2.Rotation = tecks2.Rotation - .8
  194. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  195. tecks2.TextTransparency = tecks2.TextTransparency + .04
  196. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  197. tecks3.Rotation = tecks2.Rotation + .8
  198. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  199. tecks3.TextTransparency = tecks2.TextTransparency + .04
  200. end
  201. naeeym2:Destroy()
  202. end)
  203. chat()
  204. end
  205. function onChatted(msg)
  206. chatfunc(msg)
  207. end
  208. --plr.Chatted:connect(onChatted)
  209.  
  210. mouse = game.Players.LocalPlayer:GetMouse()
  211. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  212. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  213. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  214. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  215. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  216. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  217. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  218. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  219. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  220. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  221. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  222. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  223. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  224. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  225. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  226. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  227. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  228. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  229. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  230. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  231. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  232. using = false
  233. --Converted with ttyyuu12345's model to script plugin v4
  234. function sandbox(var,func)
  235. local env = getfenv(func)
  236. local newenv = setmetatable({},{
  237. __index = function(self,k)
  238. if k=="script" then
  239. return var
  240. else
  241. return env[k]
  242. end
  243. end,
  244. })
  245. setfenv(func,newenv)
  246. return func
  247. end
  248. cors = {}
  249. mas = Instance.new("Model",game:GetService("Lighting"))
  250. Part0 = Instance.new("Part")
  251. SpecialMesh1 = Instance.new("SpecialMesh")
  252. Part0.Parent = mas
  253. Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
  254. Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
  255. Part0.CFrame = CFrame.new(1.99671245, 4.08856773, -0.616976917, 0.0861581191, 0.29545939, 0.95146209, -0.99592489, 0, 0.090184398, 0.0266458243, -0.955355108, 0.294255406)
  256. Part0.BottomSurface = Enum.SurfaceType.Smooth
  257. Part0.TopSurface = Enum.SurfaceType.Smooth
  258. Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
  259. Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
  260. Part0.CanCollide = false
  261. SpecialMesh1.Parent = Part0
  262. SpecialMesh1.MeshId = "rbxassetid://5443506711"
  263. SpecialMesh1.Scale = Vector3.new(4,4,4)
  264. SpecialMesh1.TextureId = "rbxassetid://5443506839"
  265. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  266. SpecialMesh1.Scale = Vector3.new(4,4,4)
  267. for i,v in pairs(mas:GetChildren()) do
  268. v.Parent = game:GetService("Players").LocalPlayer.Character
  269. pcall(function() v:MakeJoints() end)
  270. end
  271. mas:Destroy()
  272. for i,v in pairs(cors) do
  273. spawn(function()
  274. pcall(v)
  275. end)
  276. end
  277. Part0:BreakJoints()
  278. cananimate = true
  279. canhit = false
  280. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  281. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  282. weld.Part1 = Part0
  283. weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
  284. for i = 0,1 , 0.03 do
  285. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  286. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  287. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  288. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  289. game:GetService("RunService").RenderStepped:wait()
  290. end
  291. function swing()
  292. if not using then
  293. using = true
  294. cananimate = false
  295. for i = 0,1 , 0.045 do
  296. weld.C0 = weld.C0:lerp(CFrame.new(0.958130836, -0.815908253, -0.0419664383, 0.379335552, 0.92491132, -0.0253674984, -0.913223445, 0.378668189, 0.150445476, 0.148754537, -0.0339030921, 0.988292694),i)
  297. headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
  298. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
  299. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
  300. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
  301. game:GetService("RunService").RenderStepped:wait()
  302. end
  303. canhit = true
  304. for i = 0,1 , 0.08 do
  305. weld.C0 = weld.C0:lerp(CFrame.new(0.968596578, -1.15575922, 0.178524971, 0.0531506836, 0.988890588, -0.13881819, -0.988834679, 0.0327400565, -0.145376131, -0.13921617, 0.144995078, 0.979589343),i)
  306. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
  307. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
  308. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
  309. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
  310. game:GetService("RunService").RenderStepped:wait()
  311. end
  312. canhit = false
  313. using = false
  314. cananimate = true
  315. end
  316. end
  317. mouse.Button1Down:connect(swing)
  318. function hittie(part)
  319. if canhit then
  320. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  321. if humanoid then
  322. canhit = false
  323. using = false
  324. local uptor = humanoid.Parent:findFirstChild("UpperTorso")
  325. if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
  326. humanoid.Parent:BreakJoints()
  327. while humanoid.Health >= 0.001 do
  328. game:GetService("RunService").RenderStepped:wait()
  329. end
  330. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  331. humanoid.Parent.HumanoidRootPart.CanCollide = false
  332. end
  333. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  334. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  335. constraint.Attachment0 = attachone
  336. constraint.Attachment1 = attachtwo
  337. constraint.LimitsEnabled = true
  338. constraint.TwistLimitsEnabled = true
  339. constraint.TwistLowerAngle = lowang
  340. constraint.TwistUpperAngle = upperang
  341. constraint.UpperAngle = twist
  342. end
  343. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  344. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  345. constraint.Attachment0 = attachone
  346. constraint.Attachment1 = attachtwo
  347. constraint.LimitsEnabled = true
  348. constraint.LowerAngle = lowang
  349. constraint.UpperAngle = upperang
  350. end
  351. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  352. if v.ClassName == "Accessory" then
  353. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  354. if findhandle then
  355. local attach = findhandle:findFirstChildOfClass("Attachment")
  356. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  357. if w.Name == "UpperTorso" or w.Name == "Head" then
  358. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  359. end
  360. end
  361. if attach and attach1 then
  362. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  363. constraint.Attachment0 = attach
  364. constraint.Attachment1 = attach1
  365. constraint.LimitsEnabled = true
  366. constraint.LowerAngle = 0
  367. constraint.UpperAngle = 0
  368. end
  369. end
  370. end
  371. end
  372. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  373. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  374. attachment.Position = Vector3.new(0, -0.5, 0)
  375. attachment.Name = "lol"
  376. attachment.Visible = false
  377. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  378. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  379. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  380. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  381. ball.Attachment1 = attachment
  382. ball.LimitsEnabled = true
  383. ball.TwistLimitsEnabled = true
  384. ball.UpperAngle = 40
  385. ball.Restitution = 0.5
  386. ball.TwistUpperAngle = 40
  387. ball.TwistLowerAngle = -40
  388. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  389. collidepartofleftleg.Name = "Bone"
  390. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  391. collidepartofleftleg.Transparency = 1
  392. collidepartofleftleg:BreakJoints()
  393. local weeld = Instance.new("Weld", collidepartofleftleg)
  394. weeld.Part0 = collidepartofleftleg
  395. weeld.Part1 = humanoid.Parent["Head"]
  396. if humanoid.Parent.Head:findFirstChild("Neck") then
  397. humanoid.Parent.Head.Neck:destroy()
  398. end
  399. if humanoid.Parent.Head:findFirstChild("face") then
  400. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  401. end
  402. end
  403. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  404. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  405. --
  406. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  407. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  408. --
  409. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  410. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  411. --
  412. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  413. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  414. --Foot & Hands--
  415.  
  416. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  417. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  418. --
  419. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  420. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  421.  
  422. --END--
  423. --TORSOS--
  424.  
  425. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  426. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  427.  
  428. --END--
  429. if LowerTorso then
  430. if LeftUpperLeg then
  431. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  432. end
  433. if RightUpperLeg then
  434. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  435. end
  436. if LeftLowerLeg then
  437. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  438. end
  439. if RightLowerLeg then
  440. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  441. end
  442. if LeftFoot then
  443. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  444. end
  445. if RightFoot then
  446. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  447. end
  448. if UpperTorso then
  449. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  450. end
  451. end
  452. if UpperTorso then
  453. local vel = Instance.new("BodyVelocity", UpperTorso)
  454. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  455. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  456. game.Debris:AddItem(vel, 0.1)
  457. local hitsound = Instance.new("Sound", UpperTorso)
  458. hitsound.SoundId = "http://www.roblox.com/asset/?id=7261876704"
  459. hitsound:Play()
  460. hitsound.Volume = math.random(5,10)
  461. local canhit = true
  462. local hitval = 15
  463. local uptor = humanoid.Parent.UpperTorso
  464. if RightUpperArm then
  465. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  466. end
  467. if RightLowerArm then
  468. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  469. end
  470. if RightHand then
  471. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  472. end
  473. if LeftUpperArm then
  474. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  475. end
  476. if LeftLowerArm then
  477. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  478. end
  479. if LeftHand then
  480. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  481. end
  482. end
  483. else
  484. humanoid.Parent.Archivable = true
  485. humanoid.PlatformStand = true
  486. local clone = humanoid.Parent:Clone()
  487. clone.Parent = workspace
  488. game.Debris:AddItem(clone, 60)
  489. for i,v in pairs(clone:GetChildren()) do
  490. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  491. v:Remove()
  492. end
  493. for i,p in pairs(v:GetChildren()) do
  494. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  495. p:Remove()
  496. end
  497. end
  498. end
  499. for i,t in pairs(humanoid.Parent:GetChildren()) do
  500. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  501. t:Remove()
  502. end
  503. end
  504. local vel = Instance.new("BodyVelocity", clone.Torso)
  505. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  506. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
  507. game.Debris:AddItem(vel, 0.1)
  508. local hitsound = Instance.new("Sound", clone.Torso)
  509. hitsound.SoundId = "http://www.roblox.com/asset/?id=7261876704"
  510. hitsound:Play()
  511. hitsound.Volume = 10
  512. wait(0.1)
  513. vel = Instance.new("BodyVelocity", clone.Torso)
  514. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  515. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  516. using = false
  517. hit = Instance.new("Sound", clone.Torso)
  518. hit.SoundId = "rbxassetid://260430060"
  519. hit.Volume = 0
  520. hit1 = Instance.new("Sound", clone.Torso)
  521. hit1.SoundId = "rbxassetid://138087186"
  522. hit1.Volume = 0
  523. hit2 = Instance.new("Sound", clone.Torso)
  524. hit2.SoundId = "rbxassetid://131237241"
  525. hit2.Volume = 0
  526. hit3 = Instance.new("Sound", clone.Torso)
  527. hit3.SoundId = "rbxassetid://278062209"
  528. hit3.Volume = 0
  529. hit3.TimePosition = 0.33
  530. ded = Instance.new("Sound", clone.Torso)
  531. ded.SoundId = "rbxassetid://418892870"
  532. ded.Volume = 0
  533. local leftarm = clone:findFirstChild("Left Arm")
  534. local rightrm = clone:findFirstChild("Right Arm")
  535. local leftleg = clone:findFirstChild("Left Leg")
  536. local rightleg = clone:findFirstChild("Right Leg")
  537. local head = clone:findFirstChild("Head")
  538. for i, g in pairs(humanoid.Parent:GetChildren()) do
  539. if g.ClassName == "Part" then
  540. g:destroy()
  541. end
  542. end
  543. for i, h in pairs(humanoid.Parent:GetChildren()) do
  544. if h.ClassName == "Accesory" then
  545. h:destroy()
  546. end
  547. end
  548. for z,x in pairs(clone:GetChildren()) do
  549. if x.ClassName == "Accessory" then
  550. local handle = x:findFirstChild("Handle")
  551. if handle then
  552. local attachment = handle:findFirstChildOfClass("Attachment")
  553. if attachment then
  554. for q,w in pairs(clone:GetChildren()) do
  555. if w.Name == "Torso" or w.Name == "Head" then
  556. local anotherone = w:findFirstChild(attachment.Name)
  557. if attachment and anotherone then
  558. local constraint = Instance.new("HingeConstraint", clone) --making fake weld
  559. constraint.Attachment0 = attachment
  560. constraint.Attachment1 = anotherone
  561. constraint.LimitsEnabled = true
  562. constraint.LowerAngle = 0
  563. constraint.UpperAngle = 0
  564. end
  565. end
  566. end
  567. end
  568. end
  569. end
  570. end
  571. if head and clone.Torso:findFirstChild("NeckAttachment") then
  572. local attachment = Instance.new("Attachment", clone.Head)
  573. attachment.Position = Vector3.new(0, -0.5, 0)
  574. attachment.Name = "lol"
  575. attachment.Visible = false
  576. clone.Torso.NeckAttachment.Visible = false
  577. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  578. local ball = Instance.new("BallSocketConstraint", clone)
  579. ball.Attachment0 = clone.Torso.NeckAttachment
  580. ball.Attachment1 = attachment
  581. ball.LimitsEnabled = true
  582. ball.TwistLimitsEnabled = true
  583. ball.UpperAngle = 90
  584. ball.Restitution = 0.5
  585. ball.TwistUpperAngle = 90
  586. ball.TwistLowerAngle = -90
  587. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  588. collidepartofleftleg.Name = "Bone"
  589. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  590. collidepartofleftleg.Transparency = 1
  591. collidepartofleftleg:BreakJoints()
  592. local weeld = Instance.new("Weld", collidepartofleftleg)
  593. weeld.Part0 = collidepartofleftleg
  594. weeld.Part1 = clone["Head"]
  595. end
  596. if leftleg ~= nil then
  597. leftleg:BreakJoints()
  598. local glue = Instance.new("Glue", clone.Torso)
  599. glue.Part0 = clone.Torso
  600. glue.Part1 = leftleg
  601. glue.Name = "Left leg"
  602. local collider = Instance.new("Part", leftleg)
  603. collider.Position = Vector3.new(0,999,0)
  604. collider.Size = Vector3.new(1.5, 1, 1)
  605. collider.Shape = "Cylinder"
  606. local weld = Instance.new("Weld", collider)
  607. weld.Part0 = leftleg
  608. weld.Part1 = collider
  609. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  610. collider.TopSurface = "Smooth"
  611. collider.BottomSurface = "Smooth"
  612. collider.formFactor = "Symmetric"
  613. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  614. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  615. collider.Transparency = 1
  616. end
  617. ------------
  618. if rightleg ~= nil then
  619. rightleg:BreakJoints()
  620. local glue1 = Instance.new("Glue", clone.Torso)
  621. glue1.Part0 = clone.Torso
  622. glue1.Part1 = rightleg
  623. glue1.Name = "Right leg"
  624. local collider1 = Instance.new("Part", rightleg)
  625. collider1.Position = Vector3.new(0,999,0)
  626. collider1.Size = Vector3.new(1.5, 1, 1)
  627. collider1.Shape = "Cylinder"
  628. local weld1 = Instance.new("Weld", collider1)
  629. weld1.Part0 = rightleg
  630. weld1.Part1 = collider1
  631. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  632. collider1.TopSurface = "Smooth"
  633. collider1.BottomSurface = "Smooth"
  634. collider1.formFactor = "Symmetric"
  635. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  636. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  637. collider1.Transparency = 1
  638. end
  639. ------------
  640. if rightrm ~= nil then
  641. rightrm:BreakJoints()
  642. rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
  643. local glue11 = Instance.new("Glue", clone.Torso)
  644. glue11.Part0 = clone.Torso
  645. glue11.Part1 = rightrm
  646. glue11.Name = "Right shoulder"
  647. local collider11 = Instance.new("Part", rightrm)
  648. collider11.Position = Vector3.new(0,9999,0)
  649. collider11.Size = Vector3.new(1.5,1,1)
  650. collider11.Shape = "Cylinder"
  651. local weld11 = Instance.new("Weld", collider11)
  652. weld11.Part0 = rightrm
  653. weld11.Part1 = collider11
  654. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  655. collider11.TopSurface = "Smooth"
  656. collider11.BottomSurface = "Smooth"
  657. collider11.formFactor = "Symmetric"
  658. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  659. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  660. collider11.Transparency = 1
  661. end
  662. ------------
  663. if leftarm ~= nil then
  664. leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
  665. leftarm:BreakJoints()
  666. local glue111 = Instance.new("Glue", clone.Torso)
  667. glue111.Part0 = clone.Torso
  668. glue111.Part1 = leftarm
  669. glue111.Name = "Left shoulder"
  670. local collider111 = Instance.new("Part", leftarm)
  671. collider111.Position = Vector3.new(0,9999,0)
  672. collider111.Size = Vector3.new(1.5,1,1)
  673. collider111.Shape = "Cylinder"
  674. local weld111 = Instance.new("Weld", collider111)
  675. weld111.Part0 = leftarm
  676. weld111.Part1 = collider111
  677. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  678. collider111.TopSurface = "Smooth"
  679. collider111.BottomSurface = "Smooth"
  680. collider111.formFactor = "Symmetric"
  681. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  682. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  683. collider111.Transparency = 1
  684. ----------------
  685. sensoring = Instance.new("Part", clone.Torso)
  686. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  687. sensoring.CanCollide = false
  688. sensoring.Position = clone.Torso.Position
  689. local welder = Instance.new("Weld", sensoring)
  690. welder.Part0 = clone.Torso
  691. welder.Part1 = sensoring
  692. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  693. sensoring.Transparency = 1
  694. -----------------
  695. sensoring1 = Instance.new("Part", clone.Torso)
  696. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  697. sensoring1.CanCollide = false
  698. sensoring1.Position = clone.Torso.Position
  699. local welder1 = Instance.new("Weld", sensoring)
  700. welder1.Part0 = clone.Torso
  701. welder1.Part1 = sensoring1
  702. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  703. sensoring1.Transparency = 1
  704. end
  705. clone.Name = humanoid.Parent.Name.." (PANNED)"
  706. ded:Play()
  707. vel:destroy()
  708. wait(0.5)
  709. local function touch()
  710. if not using then
  711. using = true
  712. local Math = math.random(1,4)
  713. if Math == 1 then
  714. hit:Play()
  715. end
  716. if Math == 2 then
  717. hit1:Play()
  718. end
  719. if Math == 3 then
  720. hit2:Play()
  721. end
  722. if Math == 4 then
  723. hit3:Play()
  724. end
  725. wait(0.1)
  726. using = false
  727. end
  728. end
  729. sensoring.Touched:connect(touch)
  730. sensoring1.Touched:connect(touch)
  731. while true do
  732. if clone:findFirstChild("Head") then
  733. clone.Head.CanCollide = false
  734. end
  735. game:GetService("RunService").Stepped:wait()
  736. end
  737. end
  738. end
  739. end
  740. end
  741. Part0.Touched:connect(hittie)
  742. function ragdoll()
  743. game.Players.LocalPlayer.Character.Archivable = true
  744. clone = game.Players.LocalPlayer.Character:Clone()
  745. clone.Parent = workspace
  746. for i,v in pairs(clone:GetChildren()) do
  747. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  748. v:Remove()
  749. end
  750. for i,p in pairs(v:GetChildren()) do
  751. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  752. p:Remove()
  753. end
  754. end
  755. end
  756. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  757. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  758. t:Remove()
  759. end
  760. end
  761. vel = Instance.new("BodyVelocity", clone.Torso)
  762. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  763. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  764. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  765. using = false
  766. hit = Instance.new("Sound", clone.Torso)
  767. hit.SoundId = "rbxassetid://260430060"
  768. hit.Volume = 0
  769. hit1 = Instance.new("Sound", clone.Torso)
  770. hit1.SoundId = "rbxassetid://138087186"
  771. hit1.Volume = 0
  772. hit2 = Instance.new("Sound", clone.Torso)
  773. hit2.SoundId = "rbxassetid://131237241"
  774. hit2.Volume = 0
  775. hit3 = Instance.new("Sound", clone.Torso)
  776. hit3.SoundId = "rbxassetid://278062209"
  777. hit3.Volume = 0
  778. hit3.TimePosition = 0.33
  779. ded = Instance.new("Sound", clone.Torso)
  780. ded.SoundId = "rbxassetid://337800380"
  781. ded.Volume = 5
  782. local leftarm = clone:findFirstChild("Left Arm")
  783. local rightrm = clone:findFirstChild("Right Arm")
  784. local leftleg = clone:findFirstChild("Left Leg")
  785. local rightleg = clone:findFirstChild("Right Leg")
  786. local head = clone:findFirstChild("Head")
  787. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  788. if g.ClassName == "Part" then
  789. g:destroy()
  790. end
  791. end
  792. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  793. if h.ClassName == "Accesory" then
  794. h:destroy()
  795. end
  796. end
  797. game.Workspace.CurrentCamera.CameraSubject = head
  798. if head then
  799. local attachment = Instance.new("Attachment", clone.Head)
  800. attachment.Position = Vector3.new(0, -0.5, 0)
  801. attachment.Name = "lol"
  802. attachment.Visible = false
  803. clone.Torso.NeckAttachment.Visible = false
  804. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  805. local ball = Instance.new("BallSocketConstraint", clone)
  806. ball.Attachment0 = clone.Torso.NeckAttachment
  807. ball.Attachment1 = attachment
  808. ball.LimitsEnabled = true
  809. ball.TwistLimitsEnabled = true
  810. ball.UpperAngle = 90
  811. ball.Restitution = 0.5
  812. ball.TwistUpperAngle = 90
  813. ball.TwistLowerAngle = -90
  814. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  815. collidepartofleftleg.Name = "Bone"
  816. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  817. collidepartofleftleg.Transparency = 1
  818. collidepartofleftleg:BreakJoints()
  819. local weeld = Instance.new("Weld", collidepartofleftleg)
  820. weeld.Part0 = collidepartofleftleg
  821. weeld.Part1 = clone["Head"]
  822. end
  823. if leftleg ~= nil then
  824. local glue = Instance.new("Glue", clone.Torso)
  825. glue.Part0 = clone.Torso
  826. glue.Part1 = leftleg
  827. glue.Name = "Left leg"
  828. local collider = Instance.new("Part", leftleg)
  829. collider.Position = Vector3.new(0,999,0)
  830. collider.Size = Vector3.new(1.5, 1, 1)
  831. collider.Shape = "Cylinder"
  832. local weld = Instance.new("Weld", collider)
  833. weld.Part0 = leftleg
  834. weld.Part1 = collider
  835. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  836. collider.TopSurface = "Smooth"
  837. collider.BottomSurface = "Smooth"
  838. collider.formFactor = "Symmetric"
  839. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  840. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  841. collider.Transparency = 1
  842. end
  843. ------------
  844. if rightleg ~= nil then
  845. local glue1 = Instance.new("Glue", clone.Torso)
  846. glue1.Part0 = clone.Torso
  847. glue1.Part1 = rightleg
  848. glue1.Name = "Right leg"
  849. local collider1 = Instance.new("Part", rightleg)
  850. collider1.Position = Vector3.new(0,999,0)
  851. collider1.Size = Vector3.new(1.5, 1, 1)
  852. collider1.Shape = "Cylinder"
  853. local weld1 = Instance.new("Weld", collider1)
  854. weld1.Part0 = rightleg
  855. weld1.Part1 = collider1
  856. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  857. collider1.TopSurface = "Smooth"
  858. collider1.BottomSurface = "Smooth"
  859. collider1.formFactor = "Symmetric"
  860. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  861. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  862. collider1.Transparency = 1
  863. end
  864. ------------
  865. if rightrm ~= nil then
  866. local glue11 = Instance.new("Glue", clone.Torso)
  867. glue11.Part0 = clone.Torso
  868. glue11.Part1 = rightrm
  869. glue11.Name = "Right shoulder"
  870. local collider11 = Instance.new("Part", rightrm)
  871. collider11.Position = Vector3.new(0,9999,0)
  872. collider11.Size = Vector3.new(1.5,1,1)
  873. collider11.Shape = "Cylinder"
  874. local weld11 = Instance.new("Weld", collider11)
  875. weld11.Part0 = rightrm
  876. weld11.Part1 = collider11
  877. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  878. collider11.TopSurface = "Smooth"
  879. collider11.BottomSurface = "Smooth"
  880. collider11.formFactor = "Symmetric"
  881. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  882. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  883. collider11.Transparency = 1
  884. end
  885. ------------
  886. if leftarm ~= nil then
  887. local glue111 = Instance.new("Glue", clone.Torso)
  888. glue111.Part0 = clone.Torso
  889. glue111.Part1 = leftarm
  890. glue111.Name = "Left shoulder"
  891. local collider111 = Instance.new("Part", leftarm)
  892. collider111.Position = Vector3.new(0,9999,0)
  893. collider111.Size = Vector3.new(1.5,1,1)
  894. collider111.Shape = "Cylinder"
  895. local weld111 = Instance.new("Weld", collider111)
  896. weld111.Part0 = leftarm
  897. weld111.Part1 = collider111
  898. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  899. collider111.TopSurface = "Smooth"
  900. collider111.BottomSurface = "Smooth"
  901. collider111.formFactor = "Symmetric"
  902. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  903. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  904. collider111.Transparency = 1
  905. ----------------
  906. sensoring = Instance.new("Part", clone.Torso)
  907. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  908. sensoring.CanCollide = false
  909. sensoring.Position = clone.Torso.Position
  910. local welder = Instance.new("Weld", sensoring)
  911. welder.Part0 = clone.Torso
  912. welder.Part1 = sensoring
  913. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  914. sensoring.Transparency = 1
  915. -----------------
  916. sensoring1 = Instance.new("Part", clone.Torso)
  917. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  918. sensoring1.CanCollide = false
  919. sensoring1.Position = clone.Torso.Position
  920. local welder1 = Instance.new("Weld", sensoring)
  921. welder1.Part0 = clone.Torso
  922. welder1.Part1 = sensoring1
  923. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  924. sensoring1.Transparency = 1
  925. end
  926. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  927. ded:Play()
  928. vel:destroy()
  929. wait(0.2)
  930. game.Debris:AddItem(clone,60)
  931. local function touch()
  932. if not using then
  933. using = true
  934. local Math = math.random(1,4)
  935. if Math == 1 then
  936. hit:Play()
  937. end
  938. if Math == 2 then
  939. hit1:Play()
  940. end
  941. if Math == 3 then
  942. hit2:Play()
  943. end
  944. if Math == 4 then
  945. hit3:Play()
  946. end
  947. wait(0.1)
  948. using = false
  949. end
  950. end
  951. sensoring.Touched:connect(touch)
  952. sensoring1.Touched:connect(touch)
  953. while true do
  954. clone.Head.CanCollide = false
  955. game:GetService("RunService").Stepped:wait()
  956. end
  957. end
  958.  
  959. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  960.  
  961. --di ent
  962. while true do
  963. if cananimate then
  964. if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  965. for i = 0.1,0.3 , 0.008 do
  966. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  967. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
  968. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
  969. game:GetService("RunService").Stepped:wait()
  970. end
  971. end
  972. for i = 0.1,0.3 , 0.008 do
  973. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  974. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
  975. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
  976. game:GetService("RunService").Stepped:wait()
  977. end
  978. end
  979. elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  980. for i = 0,1 , 0.1 do
  981. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
  982. weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
  983. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  984. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  985. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  986. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  987. game:GetService("RunService").RenderStepped:wait()
  988. end
  989. end
  990. end
  991. end
  992. wait()
  993. end
  994. if key == 'n' then
  995. chatfunc("I'LL CUT OFF YOUR NUT,AND NAIL IT TO MY DOOR...LIKE ONE OF THOSE LYING DOOR KNOCKERS RICK FOLKS GOT....THAT WILL BE YOUR BALLS!")
  996. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement