Advertisement
Void_scripter0

Golden pan

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