Advertisement
Void_scripter0

pan

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