Advertisement
Guest User

asd

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