Advertisement
DerpzDeNugget

OW STOP HITTING ME WITH A FRYING PAN

Aug 10th, 2018
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.62 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. --By Ruffles14
  175. mouse = game.Players.LocalPlayer:GetMouse()
  176. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  177. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  178. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  179. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  180. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  181. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  182. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  183. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  184. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  185. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  186. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  187. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  188. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  189. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  190. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  191. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  192. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  193. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  194. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  195. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  196. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  197. using = false
  198. --Converted with ttyyuu12345's model to script plugin v4
  199. function sandbox(var,func)
  200. local env = getfenv(func)
  201. local newenv = setmetatable({},{
  202. __index = function(self,k)
  203. if k=="script" then
  204. return var
  205. else
  206. return env[k]
  207. end
  208. end,
  209. })
  210. setfenv(func,newenv)
  211. return func
  212. end
  213. cors = {}
  214. mas = Instance.new("Model",game:GetService("Lighting"))
  215. Part0 = Instance.new("Part")
  216. SpecialMesh1 = Instance.new("SpecialMesh")
  217. Part0.Parent = mas
  218. Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
  219. Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
  220. 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)
  221. Part0.BottomSurface = Enum.SurfaceType.Smooth
  222. Part0.TopSurface = Enum.SurfaceType.Smooth
  223. Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
  224. Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
  225. Part0.CanCollide = false
  226. SpecialMesh1.Parent = Part0
  227. SpecialMesh1.MeshId = "rbxassetid://441572308"
  228. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
  229. SpecialMesh1.TextureId = "rbxassetid://441572332"
  230. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  231. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
  232. for i,v in pairs(mas:GetChildren()) do
  233. v.Parent = game:GetService("Players").LocalPlayer.Character
  234. pcall(function() v:MakeJoints() end)
  235. end
  236. mas:Destroy()
  237. for i,v in pairs(cors) do
  238. spawn(function()
  239. pcall(v)
  240. end)
  241. end
  242. Part0:BreakJoints()
  243. cananimate = true
  244. canhit = false
  245. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  246. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  247. weld.Part1 = Part0
  248. weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
  249. for i = 0,1 , 0.03 do
  250. 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)
  251. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  252. 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)
  253. 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)
  254. game:GetService("RunService").RenderStepped:wait()
  255. end
  256. function swing()
  257. if not using then
  258. using = true
  259. cananimate = false
  260. for i = 0,1 , 0.045 do
  261. 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)
  262. 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)
  263. 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)
  264. 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)
  265. 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)
  266. game:GetService("RunService").RenderStepped:wait()
  267. end
  268. canhit = true
  269. for i = 0,1 , 0.08 do
  270. 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)
  271. 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)
  272. 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)
  273. 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)
  274. 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)
  275. game:GetService("RunService").RenderStepped:wait()
  276. end
  277. canhit = false
  278. using = false
  279. cananimate = true
  280. end
  281. end
  282. mouse.Button1Down:connect(swing)
  283. function hittie(part)
  284. if canhit then
  285. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  286. if humanoid then
  287. canhit = false
  288. using = false
  289. local uptor = humanoid.Parent:findFirstChild("UpperTorso")
  290. if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
  291. humanoid.Parent:BreakJoints()
  292. while humanoid.Health >= 0.001 do
  293. game:GetService("RunService").RenderStepped:wait()
  294. end
  295. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  296. humanoid.Parent.HumanoidRootPart.CanCollide = false
  297. end
  298. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  299. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  300. constraint.Attachment0 = attachone
  301. constraint.Attachment1 = attachtwo
  302. constraint.LimitsEnabled = true
  303. constraint.TwistLimitsEnabled = true
  304. constraint.TwistLowerAngle = lowang
  305. constraint.TwistUpperAngle = upperang
  306. constraint.UpperAngle = twist
  307. end
  308. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  309. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  310. constraint.Attachment0 = attachone
  311. constraint.Attachment1 = attachtwo
  312. constraint.LimitsEnabled = true
  313. constraint.LowerAngle = lowang
  314. constraint.UpperAngle = upperang
  315. end
  316. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  317. if v.ClassName == "Accessory" then
  318. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  319. if findhandle then
  320. local attach = findhandle:findFirstChildOfClass("Attachment")
  321. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  322. if w.Name == "UpperTorso" or w.Name == "Head" then
  323. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  324. end
  325. end
  326. if attach and attach1 then
  327. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  328. constraint.Attachment0 = attach
  329. constraint.Attachment1 = attach1
  330. constraint.LimitsEnabled = true
  331. constraint.LowerAngle = 0
  332. constraint.UpperAngle = 0
  333. end
  334. end
  335. end
  336. end
  337. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  338. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  339. attachment.Position = Vector3.new(0, -0.5, 0)
  340. attachment.Name = "lol"
  341. attachment.Visible = false
  342. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  343. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  344. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  345. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  346. ball.Attachment1 = attachment
  347. ball.LimitsEnabled = true
  348. ball.TwistLimitsEnabled = true
  349. ball.UpperAngle = 40
  350. ball.Restitution = 0.5
  351. ball.TwistUpperAngle = 40
  352. ball.TwistLowerAngle = -40
  353. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  354. collidepartofleftleg.Name = "Bone"
  355. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  356. collidepartofleftleg.Transparency = 1
  357. collidepartofleftleg:BreakJoints()
  358. local weeld = Instance.new("Weld", collidepartofleftleg)
  359. weeld.Part0 = collidepartofleftleg
  360. weeld.Part1 = humanoid.Parent["Head"]
  361. if humanoid.Parent.Head:findFirstChild("Neck") then
  362. humanoid.Parent.Head.Neck:destroy()
  363. end
  364. if humanoid.Parent.Head:findFirstChild("face") then
  365. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  366. end
  367. end
  368. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  369. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  370. --
  371. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  372. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  373. --
  374. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  375. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  376. --
  377. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  378. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  379. --Foot & Hands--
  380.  
  381. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  382. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  383. --
  384. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  385. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  386.  
  387. --END--
  388. --TORSOS--
  389.  
  390. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  391. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  392.  
  393. --END--
  394. if LowerTorso then
  395. if LeftUpperLeg then
  396. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  397. end
  398. if RightUpperLeg then
  399. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  400. end
  401. if LeftLowerLeg then
  402. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  403. end
  404. if RightLowerLeg then
  405. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  406. end
  407. if LeftFoot then
  408. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  409. end
  410. if RightFoot then
  411. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  412. end
  413. if UpperTorso then
  414. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  415. end
  416. end
  417. if UpperTorso then
  418. local vel = Instance.new("BodyVelocity", UpperTorso)
  419. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  420. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  421. game.Debris:AddItem(vel, 0.1)
  422. local hitsound = Instance.new("Sound", UpperTorso)
  423. hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
  424. hitsound:Play()
  425. hitsound.Volume = math.random(5,10)
  426. local canhit = true
  427. local hitval = 15
  428. local uptor = humanoid.Parent.UpperTorso
  429. if RightUpperArm then
  430. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  431. end
  432. if RightLowerArm then
  433. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  434. end
  435. if RightHand then
  436. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  437. end
  438. if LeftUpperArm then
  439. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  440. end
  441. if LeftLowerArm then
  442. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  443. end
  444. if LeftHand then
  445. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  446. end
  447. end
  448. else
  449. humanoid.Parent.Archivable = true
  450. humanoid.PlatformStand = true
  451. local clone = humanoid.Parent:Clone()
  452. clone.Parent = workspace
  453. game.Debris:AddItem(clone, 60)
  454. for i,v in pairs(clone:GetChildren()) do
  455. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  456. v:Remove()
  457. end
  458. for i,p in pairs(v:GetChildren()) do
  459. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  460. p:Remove()
  461. end
  462. end
  463. end
  464. for i,t in pairs(humanoid.Parent:GetChildren()) do
  465. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  466. t:Remove()
  467. end
  468. end
  469. local vel = Instance.new("BodyVelocity", clone.Torso)
  470. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  471. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
  472. game.Debris:AddItem(vel, 0.1)
  473. local hitsound = Instance.new("Sound", clone.Torso)
  474. hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
  475. hitsound:Play()
  476. hitsound.Volume = math.random(5,10)
  477. vel = Instance.new("BodyVelocity", clone.Torso)
  478. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  479. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  480. using = false
  481. hit = Instance.new("Sound", clone.Torso)
  482. hit.SoundId = "rbxassetid://260430060"
  483. hit.Volume = 0
  484. hit1 = Instance.new("Sound", clone.Torso)
  485. hit1.SoundId = "rbxassetid://138087186"
  486. hit1.Volume = 0
  487. hit2 = Instance.new("Sound", clone.Torso)
  488. hit2.SoundId = "rbxassetid://131237241"
  489. hit2.Volume = 0
  490. hit3 = Instance.new("Sound", clone.Torso)
  491. hit3.SoundId = "rbxassetid://278062209"
  492. hit3.Volume = 0
  493. hit3.TimePosition = 0.33
  494. ded = Instance.new("Sound", clone.Torso)
  495. ded.SoundId = "rbxassetid://418892870"
  496. ded.Volume = 0
  497. local leftarm = clone:findFirstChild("Left Arm")
  498. local rightrm = clone:findFirstChild("Right Arm")
  499. local leftleg = clone:findFirstChild("Left Leg")
  500. local rightleg = clone:findFirstChild("Right Leg")
  501. local head = clone:findFirstChild("Head")
  502. for i, g in pairs(humanoid.Parent:GetChildren()) do
  503. if g.ClassName == "Part" then
  504. g:destroy()
  505. end
  506. end
  507. for i, h in pairs(humanoid.Parent:GetChildren()) do
  508. if h.ClassName == "Accesory" then
  509. h:destroy()
  510. end
  511. end
  512. for z,x in pairs(clone:GetChildren()) do
  513. if x.ClassName == "Accessory" then
  514. local handle = x:findFirstChild("Handle")
  515. if handle then
  516. local attachment = handle:findFirstChildOfClass("Attachment")
  517. if attachment then
  518. for q,w in pairs(clone:GetChildren()) do
  519. if w.Name == "Torso" or w.Name == "Head" then
  520. local anotherone = w:findFirstChild(attachment.Name)
  521. if attachment and anotherone then
  522. local constraint = Instance.new("HingeConstraint", clone) --making fake weld
  523. constraint.Attachment0 = attachment
  524. constraint.Attachment1 = anotherone
  525. constraint.LimitsEnabled = true
  526. constraint.LowerAngle = 0
  527. constraint.UpperAngle = 0
  528. end
  529. end
  530. end
  531. end
  532. end
  533. end
  534. end
  535. if head and clone.Torso:findFirstChild("NeckAttachment") then
  536. local attachment = Instance.new("Attachment", clone.Head)
  537. attachment.Position = Vector3.new(0, -0.5, 0)
  538. attachment.Name = "lol"
  539. attachment.Visible = false
  540. clone.Torso.NeckAttachment.Visible = false
  541. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  542. local ball = Instance.new("BallSocketConstraint", clone)
  543. ball.Attachment0 = clone.Torso.NeckAttachment
  544. ball.Attachment1 = attachment
  545. ball.LimitsEnabled = true
  546. ball.TwistLimitsEnabled = true
  547. ball.UpperAngle = 90
  548. ball.Restitution = 0.5
  549. ball.TwistUpperAngle = 90
  550. ball.TwistLowerAngle = -90
  551. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  552. collidepartofleftleg.Name = "Bone"
  553. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  554. collidepartofleftleg.Transparency = 1
  555. collidepartofleftleg:BreakJoints()
  556. local weeld = Instance.new("Weld", collidepartofleftleg)
  557. weeld.Part0 = collidepartofleftleg
  558. weeld.Part1 = clone["Head"]
  559. end
  560. if leftleg ~= nil then
  561. leftleg:BreakJoints()
  562. local glue = Instance.new("Glue", clone.Torso)
  563. glue.Part0 = clone.Torso
  564. glue.Part1 = leftleg
  565. glue.Name = "Left leg"
  566. local collider = Instance.new("Part", leftleg)
  567. collider.Position = Vector3.new(0,999,0)
  568. collider.Size = Vector3.new(1.5, 1, 1)
  569. collider.Shape = "Cylinder"
  570. local weld = Instance.new("Weld", collider)
  571. weld.Part0 = leftleg
  572. weld.Part1 = collider
  573. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  574. collider.TopSurface = "Smooth"
  575. collider.BottomSurface = "Smooth"
  576. collider.formFactor = "Symmetric"
  577. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  578. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  579. collider.Transparency = 1
  580. end
  581. ------------
  582. if rightleg ~= nil then
  583. rightleg:BreakJoints()
  584. local glue1 = Instance.new("Glue", clone.Torso)
  585. glue1.Part0 = clone.Torso
  586. glue1.Part1 = rightleg
  587. glue1.Name = "Right leg"
  588. local collider1 = Instance.new("Part", rightleg)
  589. collider1.Position = Vector3.new(0,999,0)
  590. collider1.Size = Vector3.new(1.5, 1, 1)
  591. collider1.Shape = "Cylinder"
  592. local weld1 = Instance.new("Weld", collider1)
  593. weld1.Part0 = rightleg
  594. weld1.Part1 = collider1
  595. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  596. collider1.TopSurface = "Smooth"
  597. collider1.BottomSurface = "Smooth"
  598. collider1.formFactor = "Symmetric"
  599. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  600. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  601. collider1.Transparency = 1
  602. end
  603. ------------
  604. if rightrm ~= nil then
  605. rightrm:BreakJoints()
  606. rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
  607. local glue11 = Instance.new("Glue", clone.Torso)
  608. glue11.Part0 = clone.Torso
  609. glue11.Part1 = rightrm
  610. glue11.Name = "Right shoulder"
  611. local collider11 = Instance.new("Part", rightrm)
  612. collider11.Position = Vector3.new(0,9999,0)
  613. collider11.Size = Vector3.new(1.5,1,1)
  614. collider11.Shape = "Cylinder"
  615. local weld11 = Instance.new("Weld", collider11)
  616. weld11.Part0 = rightrm
  617. weld11.Part1 = collider11
  618. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  619. collider11.TopSurface = "Smooth"
  620. collider11.BottomSurface = "Smooth"
  621. collider11.formFactor = "Symmetric"
  622. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  623. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  624. collider11.Transparency = 1
  625. end
  626. ------------
  627. if leftarm ~= nil then
  628. leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
  629. leftarm:BreakJoints()
  630. local glue111 = Instance.new("Glue", clone.Torso)
  631. glue111.Part0 = clone.Torso
  632. glue111.Part1 = leftarm
  633. glue111.Name = "Left shoulder"
  634. local collider111 = Instance.new("Part", leftarm)
  635. collider111.Position = Vector3.new(0,9999,0)
  636. collider111.Size = Vector3.new(1.5,1,1)
  637. collider111.Shape = "Cylinder"
  638. local weld111 = Instance.new("Weld", collider111)
  639. weld111.Part0 = leftarm
  640. weld111.Part1 = collider111
  641. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  642. collider111.TopSurface = "Smooth"
  643. collider111.BottomSurface = "Smooth"
  644. collider111.formFactor = "Symmetric"
  645. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  646. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  647. collider111.Transparency = 1
  648. ----------------
  649. sensoring = Instance.new("Part", clone.Torso)
  650. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  651. sensoring.CanCollide = false
  652. sensoring.Position = clone.Torso.Position
  653. local welder = Instance.new("Weld", sensoring)
  654. welder.Part0 = clone.Torso
  655. welder.Part1 = sensoring
  656. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  657. sensoring.Transparency = 1
  658. -----------------
  659. sensoring1 = Instance.new("Part", clone.Torso)
  660. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  661. sensoring1.CanCollide = false
  662. sensoring1.Position = clone.Torso.Position
  663. local welder1 = Instance.new("Weld", sensoring)
  664. welder1.Part0 = clone.Torso
  665. welder1.Part1 = sensoring1
  666. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  667. sensoring1.Transparency = 1
  668. end
  669. clone.Name = humanoid.Parent.Name.." (PANNED)"
  670. ded:Play()
  671. vel:destroy()
  672. wait(0.5)
  673. local function touch()
  674. if not using then
  675. using = true
  676. local Math = math.random(1,4)
  677. if Math == 1 then
  678. hit:Play()
  679. end
  680. if Math == 2 then
  681. hit1:Play()
  682. end
  683. if Math == 3 then
  684. hit2:Play()
  685. end
  686. if Math == 4 then
  687. hit3:Play()
  688. end
  689. wait(0.1)
  690. using = false
  691. end
  692. end
  693. sensoring.Touched:connect(touch)
  694. sensoring1.Touched:connect(touch)
  695. while true do
  696. if clone:findFirstChild("Head") then
  697. clone.Head.CanCollide = false
  698. end
  699. game:GetService("RunService").Stepped:wait()
  700. end
  701. end
  702. end
  703. end
  704. end
  705. Part0.Touched:connect(hittie)
  706. function ragdoll()
  707. game.Players.LocalPlayer.Character.Archivable = true
  708. clone = game.Players.LocalPlayer.Character:Clone()
  709. clone.Parent = workspace
  710. for i,v in pairs(clone:GetChildren()) do
  711. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  712. v:Remove()
  713. end
  714. for i,p in pairs(v:GetChildren()) do
  715. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  716. p:Remove()
  717. end
  718. end
  719. end
  720. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  721. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  722. t:Remove()
  723. end
  724. end
  725. vel = Instance.new("BodyVelocity", clone.Torso)
  726. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  727. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  728. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  729. using = false
  730. hit = Instance.new("Sound", clone.Torso)
  731. hit.SoundId = "rbxassetid://260430060"
  732. hit.Volume = 0
  733. hit1 = Instance.new("Sound", clone.Torso)
  734. hit1.SoundId = "rbxassetid://138087186"
  735. hit1.Volume = 0
  736. hit2 = Instance.new("Sound", clone.Torso)
  737. hit2.SoundId = "rbxassetid://131237241"
  738. hit2.Volume = 0
  739. hit3 = Instance.new("Sound", clone.Torso)
  740. hit3.SoundId = "rbxassetid://278062209"
  741. hit3.Volume = 0
  742. hit3.TimePosition = 0.33
  743. ded = Instance.new("Sound", clone.Torso)
  744. ded.SoundId = "rbxassetid://337800380"
  745. ded.Volume = 5
  746. local leftarm = clone:findFirstChild("Left Arm")
  747. local rightrm = clone:findFirstChild("Right Arm")
  748. local leftleg = clone:findFirstChild("Left Leg")
  749. local rightleg = clone:findFirstChild("Right Leg")
  750. local head = clone:findFirstChild("Head")
  751. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  752. if g.ClassName == "Part" then
  753. g:destroy()
  754. end
  755. end
  756. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  757. if h.ClassName == "Accesory" then
  758. h:destroy()
  759. end
  760. end
  761. game.Workspace.CurrentCamera.CameraSubject = head
  762. if head then
  763. local attachment = Instance.new("Attachment", clone.Head)
  764. attachment.Position = Vector3.new(0, -0.5, 0)
  765. attachment.Name = "lol"
  766. attachment.Visible = false
  767. clone.Torso.NeckAttachment.Visible = false
  768. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  769. local ball = Instance.new("BallSocketConstraint", clone)
  770. ball.Attachment0 = clone.Torso.NeckAttachment
  771. ball.Attachment1 = attachment
  772. ball.LimitsEnabled = true
  773. ball.TwistLimitsEnabled = true
  774. ball.UpperAngle = 90
  775. ball.Restitution = 0.5
  776. ball.TwistUpperAngle = 90
  777. ball.TwistLowerAngle = -90
  778. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  779. collidepartofleftleg.Name = "Bone"
  780. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  781. collidepartofleftleg.Transparency = 1
  782. collidepartofleftleg:BreakJoints()
  783. local weeld = Instance.new("Weld", collidepartofleftleg)
  784. weeld.Part0 = collidepartofleftleg
  785. weeld.Part1 = clone["Head"]
  786. end
  787. if leftleg ~= nil then
  788. local glue = Instance.new("Glue", clone.Torso)
  789. glue.Part0 = clone.Torso
  790. glue.Part1 = leftleg
  791. glue.Name = "Left leg"
  792. local collider = Instance.new("Part", leftleg)
  793. collider.Position = Vector3.new(0,999,0)
  794. collider.Size = Vector3.new(1.5, 1, 1)
  795. collider.Shape = "Cylinder"
  796. local weld = Instance.new("Weld", collider)
  797. weld.Part0 = leftleg
  798. weld.Part1 = collider
  799. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  800. collider.TopSurface = "Smooth"
  801. collider.BottomSurface = "Smooth"
  802. collider.formFactor = "Symmetric"
  803. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  804. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  805. collider.Transparency = 1
  806. end
  807. ------------
  808. if rightleg ~= nil then
  809. local glue1 = Instance.new("Glue", clone.Torso)
  810. glue1.Part0 = clone.Torso
  811. glue1.Part1 = rightleg
  812. glue1.Name = "Right leg"
  813. local collider1 = Instance.new("Part", rightleg)
  814. collider1.Position = Vector3.new(0,999,0)
  815. collider1.Size = Vector3.new(1.5, 1, 1)
  816. collider1.Shape = "Cylinder"
  817. local weld1 = Instance.new("Weld", collider1)
  818. weld1.Part0 = rightleg
  819. weld1.Part1 = collider1
  820. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  821. collider1.TopSurface = "Smooth"
  822. collider1.BottomSurface = "Smooth"
  823. collider1.formFactor = "Symmetric"
  824. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  825. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  826. collider1.Transparency = 1
  827. end
  828. ------------
  829. if rightrm ~= nil then
  830. local glue11 = Instance.new("Glue", clone.Torso)
  831. glue11.Part0 = clone.Torso
  832. glue11.Part1 = rightrm
  833. glue11.Name = "Right shoulder"
  834. local collider11 = Instance.new("Part", rightrm)
  835. collider11.Position = Vector3.new(0,9999,0)
  836. collider11.Size = Vector3.new(1.5,1,1)
  837. collider11.Shape = "Cylinder"
  838. local weld11 = Instance.new("Weld", collider11)
  839. weld11.Part0 = rightrm
  840. weld11.Part1 = collider11
  841. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  842. collider11.TopSurface = "Smooth"
  843. collider11.BottomSurface = "Smooth"
  844. collider11.formFactor = "Symmetric"
  845. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  846. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  847. collider11.Transparency = 1
  848. end
  849. ------------
  850. if leftarm ~= nil then
  851. local glue111 = Instance.new("Glue", clone.Torso)
  852. glue111.Part0 = clone.Torso
  853. glue111.Part1 = leftarm
  854. glue111.Name = "Left shoulder"
  855. local collider111 = Instance.new("Part", leftarm)
  856. collider111.Position = Vector3.new(0,9999,0)
  857. collider111.Size = Vector3.new(1.5,1,1)
  858. collider111.Shape = "Cylinder"
  859. local weld111 = Instance.new("Weld", collider111)
  860. weld111.Part0 = leftarm
  861. weld111.Part1 = collider111
  862. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  863. collider111.TopSurface = "Smooth"
  864. collider111.BottomSurface = "Smooth"
  865. collider111.formFactor = "Symmetric"
  866. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  867. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  868. collider111.Transparency = 1
  869. ----------------
  870. sensoring = Instance.new("Part", clone.Torso)
  871. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  872. sensoring.CanCollide = false
  873. sensoring.Position = clone.Torso.Position
  874. local welder = Instance.new("Weld", sensoring)
  875. welder.Part0 = clone.Torso
  876. welder.Part1 = sensoring
  877. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  878. sensoring.Transparency = 1
  879. -----------------
  880. sensoring1 = Instance.new("Part", clone.Torso)
  881. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  882. sensoring1.CanCollide = false
  883. sensoring1.Position = clone.Torso.Position
  884. local welder1 = Instance.new("Weld", sensoring)
  885. welder1.Part0 = clone.Torso
  886. welder1.Part1 = sensoring1
  887. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  888. sensoring1.Transparency = 1
  889. end
  890. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  891. ded:Play()
  892. vel:destroy()
  893. wait(0.2)
  894. game.Debris:AddItem(clone,60)
  895. local function touch()
  896. if not using then
  897. using = true
  898. local Math = math.random(1,4)
  899. if Math == 1 then
  900. hit:Play()
  901. end
  902. if Math == 2 then
  903. hit1:Play()
  904. end
  905. if Math == 3 then
  906. hit2:Play()
  907. end
  908. if Math == 4 then
  909. hit3:Play()
  910. end
  911. wait(0.1)
  912. using = false
  913. end
  914. end
  915. sensoring.Touched:connect(touch)
  916. sensoring1.Touched:connect(touch)
  917. while true do
  918. clone.Head.CanCollide = false
  919. game:GetService("RunService").Stepped:wait()
  920. end
  921. end
  922.  
  923. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  924.  
  925. --di ent
  926. while true do
  927. if cananimate then
  928. 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
  929. for i = 0.1,0.3 , 0.008 do
  930. 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
  931. 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)
  932. 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)
  933. game:GetService("RunService").Stepped:wait()
  934. end
  935. end
  936. for i = 0.1,0.3 , 0.008 do
  937. 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
  938. 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)
  939. 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)
  940. game:GetService("RunService").Stepped:wait()
  941. end
  942. end
  943. 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
  944. for i = 0,1 , 0.1 do
  945. 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
  946. weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
  947. 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)
  948. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  949. 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)
  950. 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)
  951. game:GetService("RunService").RenderStepped:wait()
  952. end
  953. end
  954. end
  955. end
  956. wait()
  957. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement