Advertisement
AOM-GU-PRO

mod2

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