Advertisement
SCRIPTCUSTOMIZER

Test

Dec 11th, 2023 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.38 KB | None | 0 0
  1. local accessorylimbs={
  2.  
  3. {meshid="11263221350",textureid="11263219250",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Arm"},
  4. {meshid="11159370334",textureid="11159284657",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Arm"},
  5.  
  6. {meshid="14255522247",textureid="",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Arm"},
  7. {meshid="14255522247",textureid="",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Arm"},
  8.  
  9. {meshid="12344207333",textureid="",C0=angles(2,0,0),Name="Left Arm"},
  10. {meshid="12344206657",textureid="",C0=angles(2,0,0),Name="Right Arm"},
  11.  
  12. {meshid="11159370334",textureid="11159285454",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Leg"},
  13. {meshid="12652772399",textureid="12652775021",C0=cf(0,-0.125,0),Name="Right Leg"},
  14.  
  15. {meshid="14768684979",textureid="",C0=angles(0,0,1.5707963267948966),Name="Left Leg"},
  16. {meshid="14768684979",textureid="",C0=angles(0,0,1.5707963267948966),Name="Right Leg"},
  17.  
  18. {meshid="14768666349",textureid="",C0=cf_0,Name="Torso"},
  19. {meshid="14241018198",textureid="",C0=cf_0,Name="Torso"},
  20. {meshid="13421774668",textureid="",C0=cf_0,Name="Torso"},
  21.  
  22. {meshid="4324138105",textureid="4324138210",C0=angles(-1.6144295580947547,1.5707963267948966,0)*cf(-0.125,0.3,0),Name="Left Arm"},
  23. {meshid="4154474745",textureid="4154474807",C0=angles(1.5271630954950384,-1.5707963267948966,0)*cf(-0.125,-0.3,0),Name="Left Arm"},
  24. {meshid="3030546036",textureid="3650191503",C0=angles(1.5271630954950384,1.5707963267948966,0)*cf(0.125,-0.3,0),Name="Right Arm"},
  25. {meshid="3030546036",textureid="3443321249",C0=angles(-1.6144295580947547,-1.5707963267948966,0)*cf(0.125,0.3,0),Name="Right Arm"},
  26. {meshid="3030546036",textureid="3360974849",C0=angles(1.5271630954950384,1.5707963267948966,0)*cf(-0.125,-0.35,0),Name="Left Leg"},
  27. {meshid="3030546036",textureid="3360978739",C0=angles(-1.6144295580947547,-1.5707963267948966,0)*cf(-0.125,0.3,0),Name="Left Leg"},
  28. {meshid="3030546036",textureid="3033898741",C0=angles(1.5271630954950384,-1.5707963267948966,0)*cf(0.125,-0.35,0),Name="Right Leg"},
  29. {meshid="3030546036",textureid="3409604993",C0=angles(-1.6144295580947547,1.5707963267948966,0)*cf(0.125,0.3,0),Name="Right Leg"},
  30. {meshid="4819720316",textureid="4819722776",C0=angles(0,0,0.2617993877991494),Name="Torso"}
  31. }
  32.  
  33.  
  34. function Reanimate(Character)
  35. --Character:FindFirstChildOfClass("Humanoid").RootPart.CFrame=FC:FindFirstChildOfClass("Humanoid").RootPart.CFrame*cf(rand(-30,30),rand(-30,30),rand(-30,30)
  36. Character:FindFirstChildOfClass("Humanoid").RootPart.CFrame=hrp.CFrame*cf(rand(-10, 10), 0, rand(-10, 10)) * angles(rad(90), 0 , 0)
  37. for _, x in pairs(Character:GetChildren()) do
  38. if x:IsA("BasePart") then
  39. x.CanCollide=false x.CanTouch=false x.CanQuery=false x.Transparency=1
  40. x.Massless=true
  41. end
  42. if x:IsA("Accessory") and x:FindFirstChildOfClass("Part") then
  43. local Handle=x:WaitForChild("Handle")
  44. local SpecialMesh = Handle:FindFirstChildOfClass("SpecialMesh")
  45. local TX,MS = SpecialMesh.TextureId, SpecialMesh.MeshId
  46. local ReanHandle=nil
  47. Handle:BreakJoints()
  48. for _, x in pairs(FC:GetDescendants()) do
  49. if x:IsA("SpecialMesh") then
  50. if x.MeshId == MS and x.TextureId == TX then
  51. ReanHandle=x.Parent
  52. end
  53. end
  54. end
  55. if ReanHandle ~= nil then
  56. local Cone=nil
  57. Cone=Rs.Heartbeat:Connect(function()
  58. if (Handle and ReanHandle) ~= nil then
  59. if Handle.ReceiveAge == 0 then
  60. Handle.RotVelocity = v3(sin(cl()*15), sin(cl()*15+1.047), sin(cl()*15+2.094))
  61. Handle.Velocity=v3(0,NetOptions.DefaultYVelocity,0)+ReanHandle.Velocity*v3(NetOptions.AntiJitterValue,0,NetOptions.AntiJitterValue)
  62. Handle.CanCollide=false
  63. Handle.CFrame = ReanHandle.CFrame + v3(0.0015*sin(cl()*15), 0.0015*sin(cl()*15+1.047), 0.0015*sin(cl()*15+2.094))
  64. --Handle.CFrame = ReanHandle.CFrame + v3(0.003*sin(cl()*15), 0.003*sin(cl()*15+1.047), 0.003*sin(cl()*15+2.094))
  65. end
  66. --Handle.CFrame= ReanHandle.CFrame + v3(0.02*sin(cl()*15), 0.02*sin(cl()*15+1.047), 0.02*sin(cl()*15+2.094))
  67. end
  68. end)
  69. table.insert(HeartbeatTable, Cone)
  70. end
  71. end
  72. end
  73. Character:FindFirstChildOfClass("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Dead,true)
  74. Character:FindFirstChildOfClass("Humanoid").Health=0
  75. end
  76.  
  77. Ch:FindFirstChildOfClass("Humanoid").RootPart.CFrame=hrp.CFrame*cf(rand(-10, 10), 0, rand(-10, 10)) * angles(rad(90), 0 , 0)
  78. task.wait(0.025)
  79. Reanimate(Ch)
  80. Pl.Character=FC
  81. workspace.CurrentCamera.CameraSubject=FC
  82. local ReanCon = Pl.CharacterAdded:Connect(function(MOD)
  83. if MOD ~= FC then
  84. Cam.CameraSubject=hum
  85. task.spawn(function()
  86. if vrs.VREnabled == false then
  87. Cam:GetPropertyChangedSignal("CFrame"):Wait()
  88. Cam.CFrame = CurrentCameraCFrame
  89. end
  90. end)
  91. for _, x in pairs(MOD:GetDescendants()) do
  92. if x:IsA("BasePart") and x.Parent.ClassName ~= "Accessory" then
  93. x.Size=v3(0.001,0.001,0.001)
  94. x.CanCollide=false
  95. x.Velocity=v3(0,0,0)
  96. end
  97. end
  98. for _, x in pairs(HeartbeatTable) do
  99. if x then
  100. x:Disconnect()
  101. x=nil
  102. end
  103. end
  104. MOD:WaitForChild("Humanoid")
  105. task.wait()
  106. Cam.CameraSubject=hum
  107. task.spawn(function()
  108. Cam:GetPropertyChangedSignal("CFrame"):Wait()
  109. Cam.CFrame = CurrentCameraCFrame
  110. end)
  111. Pl.Character=FC
  112. Ch=MOD
  113. local Root=MOD:WaitForChild("HumanoidRootPart")
  114. local PepperStepper = Rs.RenderStepped:Connect(function()
  115. for _, x in pairs(MOD:GetDescendants()) do
  116. if x:IsA("BasePart") then
  117. x.Size=v3(0.001,0.001,0.001)
  118. x.CanCollide=false x.CanTouch=false x.CanQuery=false
  119. x.Velocity=v3(0,0,0) x.Transparency=1
  120. end
  121. end
  122. end)
  123. for _, x in pairs(MOD:GetChildren()) do
  124. if x:IsA("BasePart") then
  125. x.CanCollide=false
  126. x.CFrame=hrp.CFrame
  127. x.Velocity=v3(0,0,0)
  128. end
  129. if x:IsA("ForceField") then
  130. x:Destroy()
  131. end
  132. end
  133. if FlingOptions.FlingEnabled == true then
  134. for _, x in pairs(Fling) do
  135. if x:IsA("Humanoid") and x.Parent ~= nil and x ~= nil then
  136. local hl=x.Parent:FindFirstChildOfClass("Highlight")
  137. if hl then
  138. hl:Destroy()
  139. end
  140. local XRoot=x.RootPart
  141. for i=1, 50 do
  142. if x then
  143. for _, x in pairs(MOD:GetDescendants()) do
  144. if x:IsA("BasePart") then
  145. x.Size=v3(0.001,0.001,0.001)
  146. end
  147. end
  148. if x.RootPart ~= nil then
  149. if Root.CFrame.Y > workspace.FallenPartsDestroyHeight * 200 and x.RootPart.Velocity.Magnitude < x.WalkSpeed * x.JumpHeight then
  150. Rs.Heartbeat:Wait()
  151. if x.RootPart ~= nil then
  152. if x.RootPart.Velocity.Magnitude > x.WalkSpeed - 2 then
  153. Root.RotVelocity=v3(8500, 6500, 8500)
  154. Root.CFrame=XRoot.CFrame*cf(rand(-x.WalkSpeed / 4, x.WalkSpeed / 4),rand(-x.WalkSpeed / 4, x.WalkSpeed / 4),rand(-x.WalkSpeed / 4, x.WalkSpeed / 4)) + v3(0.004*sin(cl()*15), 0.004*sin(cl()*15+1.047), 0.004*sin(cl()*15+2.094))
  155. else
  156. Root.RotVelocity=v3(8500, 6500, 8500)
  157. Root.CFrame=x.RootPart.CFrame + v3(0.004*sin(cl()*15), 0.004*sin(cl()*15+1.047), 0.004*sin(cl()*15+2.094))
  158. end
  159. end
  160. else
  161. Root.CFrame=hrp.CFrame*cf(0, 5, 0)
  162. Root.Velocity=v3(0,0,0)
  163. Root.RotVelocity=v3(0,0,0)
  164. end
  165. end
  166. end
  167. end
  168. end
  169. end
  170. if Root.Velocity.Magnitude > 150 then
  171. for i=1, 20 do
  172. Rs.RenderStepped:Wait()
  173. Root.CFrame=hrp.CFrame*cf(0, 5, 0)
  174. Root.Velocity=v3(0,0,0)
  175. Root.RotVelocity=v3(0,0,0)
  176. end
  177. end
  178. end
  179. table.clear(Fling)
  180. Root.CFrame=hrp.CFrame*cf(rand(-10, 10), 0, rand(-10, 10)) * angles(rad(90), 0 , 0)
  181. task.wait(0.025)
  182. Reanimate(MOD)
  183. PepperStepper:Disconnect()
  184. PepperStepper=nil
  185. wait(game.Players.RespawnTime-0.000001)
  186. CurrentCameraCFrame = Cam.CFrame
  187. end
  188. end)
  189.  
  190. local head = gp(c, "Head", "BasePart")
  191. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  192. local root = gp(c, "HumanoidRootPart", "BasePart")
  193. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  194. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  195. if not (torso and root and anything) then
  196. return
  197. end
  198. torso:Destroy()
  199. root:Destroy()
  200. if shp then
  201. for i,v in pairs(c:GetChildren()) do
  202. if v:IsA("Accessory") then
  203. shp(v, "BackendAccoutrementState", 0)
  204. end
  205. end
  206. end
  207. anything:Destroy()
  208. end
  209.  
  210. local model = Instance.new("Model", c)
  211. model.Name = model.ClassName
  212.  
  213. model:GetPropertyChangedSignal("Parent"):Connect(function()
  214. if not (model and model.Parent) then
  215. model = nil
  216. end
  217. end)
  218.  
  219. for i, v in pairs(c:GetChildren()) do
  220. if v ~= model then
  221. if addtools and v:IsA("Tool") then
  222. for i1, v1 in pairs(v:GetDescendants()) do
  223. if v1 and v1.Parent and v1:IsA("BasePart") then
  224. local bv = Instance.new("BodyVelocity", v1)
  225. bv.Velocity = v3_0
  226. bv.MaxForce = v3(1000, 1000, 1000)
  227. bv.P = 1250
  228. bv.Name = "bv_" .. v.Name
  229. end
  230. end
  231. end
  232. v.Parent = model
  233. end
  234. end
  235.  
  236. if breakjoints then
  237. model:BreakJoints()
  238. else
  239. if head and torso then
  240. for i, v in pairs(model:GetDescendants()) do
  241. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  242. local save = false
  243. if (v.Part0 == torso) and (v.Part1 == head) then
  244. save = true
  245. end
  246. if (v.Part0 == head) and (v.Part1 == torso) then
  247. save = true
  248. end
  249. if save then
  250. if hedafterneck then
  251. hedafterneck = v
  252. end
  253. else
  254. v:Destroy()
  255. end
  256. end
  257. end
  258. end
  259. if method == 3 then
  260. spawn(function()
  261. wait(loadtime)
  262. if model then
  263. model:BreakJoints()
  264. end
  265. end)
  266. end
  267. end
  268.  
  269. cl.Parent = c
  270. for i, v in pairs(cl:GetChildren()) do
  271. v.Parent = c
  272. end
  273. cl:Destroy()
  274.  
  275. local noclipmodel = (noclipAllParts and c) or model
  276. local noclipcon = nil
  277. local function uncollide()
  278. if noclipmodel then
  279. for i, v in pairs(noclipmodel:GetDescendants()) do
  280. if v:IsA("BasePart") then
  281. v.CanCollide = false
  282. end
  283. end
  284. else
  285. noclipcon:Disconnect()
  286. end
  287. end
  288. noclipcon = stepped:Connect(uncollide)
  289. uncollide()
  290.  
  291. for i, scr in pairs(model:GetDescendants()) do
  292. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  293. local Part0 = scr.Parent
  294. if Part0:IsA("BasePart") then
  295. for i1, scr1 in pairs(c:GetDescendants()) do
  296. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  297. local Part1 = scr1.Parent
  298. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  299. align(Part0, Part1)
  300. scr:Destroy()
  301. scr1:Destroy()
  302. break
  303. end
  304. end
  305. end
  306. end
  307. end
  308. end
  309.  
  310. for i, v in pairs(c:GetDescendants()) do
  311. if v and v.Parent and (not v:IsDescendantOf(model)) then
  312. if v:IsA("Decal") then
  313. v.Transparency = 1
  314. elseif v:IsA("BasePart") then
  315. v.Transparency = 1
  316. v.Anchored = false
  317. elseif v:IsA("ForceField") then
  318. v.Visible = false
  319. elseif v:IsA("Sound") then
  320. v.Playing = false
  321. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  322. v.Enabled = false
  323. end
  324. end
  325. end
  326.  
  327. if newanimate then
  328. local animate = gp(c, "Animate", "LocalScript")
  329. if animate then
  330. animate.Disabled = false
  331. end
  332. end
  333.  
  334. if addtools then
  335. for i, v in pairs(c:GetChildren()) do
  336. if v:IsA("Tool") then
  337. v.Parent = addtools
  338. end
  339. end
  340. end
  341.  
  342. local hum0 = model:FindFirstChildOfClass("Humanoid")
  343. if hum0 then
  344. hum0:GetPropertyChangedSignal("Parent"):Connect(function()
  345. if not (hum0 and hum0.Parent) then
  346. hum0 = nil
  347. end
  348. end)
  349. end
  350.  
  351. local hum1 = c:FindFirstChildOfClass("Humanoid")
  352. if hum1 then
  353. hum1:GetPropertyChangedSignal("Parent"):Connect(function()
  354. if not (hum1 and hum1.Parent) then
  355. hum1 = nil
  356. end
  357. end)
  358.  
  359. ws.CurrentCamera.CameraSubject = hum1
  360. local camSubCon = nil
  361. local function camSubFunc()
  362. camSubCon:Disconnect()
  363. if c and hum1 then
  364. ws.CurrentCamera.CameraSubject = hum1
  365. end
  366. end
  367. camSubCon = renderstepped:Connect(camSubFunc)
  368. if hum0 then
  369. hum0:GetPropertyChangedSignal("Jump"):Connect(function()
  370. if hum1 then
  371. hum1.Jump = hum0.Jump
  372. end
  373. end)
  374. else
  375. respawnrequest()
  376. end
  377. end
  378.  
  379. local rb = Instance.new("BindableEvent", c)
  380. rb.Event:Connect(function()
  381. rb:Destroy()
  382. sg:SetCore("ResetButtonCallback", true)
  383. if destroyhum then
  384. c:BreakJoints()
  385. return
  386. end
  387. if hum0 and (hum0.Health > 0) then
  388. model:BreakJoints()
  389. hum0.Health = 0
  390. end
  391. if antirespawn then
  392. respawnrequest()
  393. end
  394. end)
  395. sg:SetCore("ResetButtonCallback", rb)
  396.  
  397. spawn(function()
  398. while c do
  399. if hum0 and hum1 then
  400. hum1.Jump = hum0.Jump
  401. end
  402. wait()
  403. end
  404. sg:SetCore("ResetButtonCallback", true)
  405. end)
  406.  
  407. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  408. if R15toR6 then
  409. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  410. if part then
  411. local cfr = part.CFrame
  412. local R6parts = {
  413. head = {
  414. Name = "Head",
  415. Size = v3(2, 1, 1),
  416. R15 = {
  417. Head = 0
  418. }
  419. },
  420. torso = {
  421. Name = "Torso",
  422. Size = v3(2, 2, 1),
  423. R15 = {
  424. UpperTorso = 0.2,
  425. LowerTorso = -0.8
  426. }
  427. },
  428. root = {
  429. Name = "HumanoidRootPart",
  430. Size = v3(2, 2, 1),
  431. R15 = {
  432. HumanoidRootPart = 0
  433. }
  434. },
  435. leftArm = {
  436. Name = "Left Arm",
  437. Size = v3(1, 2, 1),
  438. R15 = {
  439. LeftHand = -0.849,
  440. LeftLowerArm = -0.174,
  441. LeftUpperArm = 0.415
  442. }
  443. },
  444. rightArm = {
  445. Name = "Right Arm",
  446. Size = v3(1, 2, 1),
  447. R15 = {
  448. RightHand = -0.849,
  449. RightLowerArm = -0.174,
  450. RightUpperArm = 0.415
  451. }
  452. },
  453. leftLeg = {
  454. Name = "Left Leg",
  455. Size = v3(1, 2, 1),
  456. R15 = {
  457. LeftFoot = -0.85,
  458. LeftLowerLeg = -0.29,
  459. LeftUpperLeg = 0.49
  460. }
  461. },
  462. rightLeg = {
  463. Name = "Right Leg",
  464. Size = v3(1, 2, 1),
  465. R15 = {
  466. RightFoot = -0.85,
  467. RightLowerLeg = -0.29,
  468. RightUpperLeg = 0.49
  469. }
  470. }
  471. }
  472. for i, v in pairs(c:GetChildren()) do
  473. if v:IsA("BasePart") then
  474. for i1, v1 in pairs(v:GetChildren()) do
  475. if v1:IsA("Motor6D") then
  476. v1.Part0 = nil
  477. end
  478. end
  479. end
  480. end
  481. part.Archivable = true
  482. for i, v in pairs(R6parts) do
  483. local part = part:Clone()
  484. part:ClearAllChildren()
  485. part.Name = v.Name
  486. part.Size = v.Size
  487. part.CFrame = cfr
  488. part.Anchored = false
  489. part.Transparency = 1
  490. part.CanCollide = false
  491. for i1, v1 in pairs(v.R15) do
  492. local R15part = gp(c, i1, "BasePart")
  493. local att = gp(R15part, "att1_" .. i1, "Attachment")
  494. if R15part then
  495. local weld = Instance.new("Weld", R15part)
  496. weld.Name = "Weld_" .. i1
  497. weld.Part0 = part
  498. weld.Part1 = R15part
  499. weld.C0 = cf(0, v1, 0)
  500. weld.C1 = cf(0, 0, 0)
  501. R15part.Massless = true
  502. R15part.Name = "R15_" .. i1
  503. R15part.Parent = part
  504. if att then
  505. att.Parent = part
  506. att.Position = v3(0, v1, 0)
  507. end
  508. end
  509. end
  510. part.Parent = c
  511. R6parts[i] = part
  512. end
  513. local R6joints = {
  514. neck = {
  515. Parent = R6parts.torso,
  516. Name = "Neck",
  517. Part0 = R6parts.torso,
  518. Part1 = R6parts.head,
  519. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  520. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  521. },
  522. rootJoint = {
  523. Parent = R6parts.root,
  524. Name = "RootJoint" ,
  525. Part0 = R6parts.root,
  526. Part1 = R6parts.torso,
  527. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  528. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  529. },
  530. rightShoulder = {
  531. Parent = R6parts.torso,
  532. Name = "Right Shoulder",
  533. Part0 = R6parts.torso,
  534. Part1 = R6parts.rightArm,
  535. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  536. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  537. },
  538. leftShoulder = {
  539. Parent = R6parts.torso,
  540. Name = "Left Shoulder",
  541. Part0 = R6parts.torso,
  542. Part1 = R6parts.leftArm,
  543. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  544. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  545. },
  546. rightHip = {
  547. Parent = R6parts.torso,
  548. Name = "Right Hip",
  549. Part0 = R6parts.torso,
  550. Part1 = R6parts.rightLeg,
  551. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  552. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  553. },
  554. leftHip = {
  555. Parent = R6parts.torso,
  556. Name = "Left Hip" ,
  557. Part0 = R6parts.torso,
  558. Part1 = R6parts.leftLeg,
  559. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  560. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  561. }
  562. }
  563. for i, v in pairs(R6joints) do
  564. local joint = Instance.new("Motor6D")
  565. for prop, val in pairs(v) do
  566. joint[prop] = val
  567. end
  568. R6joints[i] = joint
  569. end
  570. if hum1 then
  571. hum1.RigType = Enum.HumanoidRigType.R6
  572. hum1.HipHeight = 0
  573. end
  574. end
  575. end
  576.  
  577. local torso1 = torso
  578. torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart"))
  579. if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then
  580. local conNeck = nil
  581. local conTorso = nil
  582. local contorso1 = nil
  583. local aligns = {}
  584. local function enableAligns()
  585. conNeck:Disconnect()
  586. conTorso:Disconnect()
  587. conTorso1:Disconnect()
  588. for i, v in pairs(aligns) do
  589. v.Enabled = true
  590. end
  591. end
  592. conNeck = hedafterneck.Changed:Connect(function(prop)
  593. if table.find({"Part0", "Part1", "Parent"}, prop) then
  594. enableAligns()
  595. end
  596. end)
  597. conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  598. conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  599. for i, v in pairs(head:GetDescendants()) do
  600. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  601. i = tostring(i)
  602. aligns[i] = v
  603. v:GetPropertyChangedSignal("Parent"):Connect(function()
  604. aligns[i] = nil
  605. end)
  606. v.Enabled = false
  607. end
  608. end
  609. end
  610.  
  611. local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart")
  612. local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart")
  613.  
  614. local fling = function() end
  615. if flingpart0 and flingpart1 then
  616. flingpart0:GetPropertyChangedSignal("Parent"):Connect(function()
  617. if not (flingpart0 and flingpart0.Parent) then
  618. flingpart0 = nil
  619. fling = function() end
  620. end
  621. end)
  622. flingpart0.Archivable = true
  623. flingpart1:GetPropertyChangedSignal("Parent"):Connect(function()
  624. if not (flingpart1 and flingpart1.Parent) then
  625. flingpart1 = nil
  626. fling = function() end
  627. end
  628. end)
  629. local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment")
  630. local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment")
  631. if att0 and att1 then
  632. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  633. if not (att0 and att0.Parent) then
  634. att0 = nil
  635. fling = function() end
  636. end
  637. end)
  638. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  639. if not (att1 and att1.Parent) then
  640. att1 = nil
  641. fling = function() end
  642. end
  643. end)
  644. local lastfling = nil
  645. local mouse = lp:GetMouse()
  646. fling = function(target, duration, rotVelocity)
  647. if typeof(target) == "Instance" then
  648. if target:IsA("BasePart") then
  649. target = target.Position
  650. elseif target:IsA("Model") then
  651. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  652. if target then
  653. target = target.Position
  654. else
  655. return
  656. end
  657. elseif target:IsA("Humanoid") then
  658. local parent = target.Parent
  659. if not (parent and parent:IsA("Model")) then
  660. return
  661. end
  662. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  663. if target then
  664. target = target.Position
  665. else
  666. return
  667. end
  668. else
  669. return
  670. end
  671. elseif typeof(target) == "CFrame" then
  672. target = target.Position
  673. elseif typeof(target) ~= "Vector3" then
  674. target = mouse.Hit
  675. if target then
  676. target = target.Position
  677. else
  678. return
  679. end
  680. end
  681. lastfling = target
  682. if type(duration) ~= "number" then
  683. duration = tonumber(duration) or 0.5
  684. end
  685. if typeof(rotVelocity) ~= "Vector3" then
  686. rotVelocity = v3(20000, 20000, 20000)
  687. end
  688. if not (target and flingpart0 and flingpart1 and att0 and att1) then
  689. return
  690. end
  691. local flingpart = flingpart0:Clone()
  692. flingpart.Transparency = 1
  693. flingpart.Size = v3(0.01, 0.01, 0.01)
  694. flingpart.CanCollide = false
  695. flingpart.Name = "flingpart_" .. flingpart0.Name
  696. flingpart.Anchored = true
  697. flingpart.Velocity = v3_0
  698. flingpart.RotVelocity = v3_0
  699. flingpart:GetPropertyChangedSignal("Parent"):Connect(function()
  700. if not (flingpart and flingpart.Parent) then
  701. flingpart = nil
  702. end
  703. end)
  704. flingpart.Parent = flingpart1
  705. if flingpart0.Transparency > 0.5 then
  706. flingpart0.Transparency = 0.5
  707. end
  708. att1.Parent = flingpart
  709. for i, v in pairs(att0:GetChildren()) do
  710. if v:IsA("AlignOrientation") then
  711. v.Enabled = false
  712. end
  713. end
  714. local con = nil
  715. con = heartbeat:Connect(function()
  716. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  717. flingpart0.RotVelocity = rotVelocity
  718. flingpart.Position = target
  719. else
  720. con:Disconnect()
  721. end
  722. end)
  723. local rsteppedRotVel = v3(
  724. ((rotVelocity.X > 0) and -1) or 1,
  725. ((rotVelocity.Y > 0) and -1) or 1,
  726. ((rotVelocity.Z > 0) and -1) or 1
  727. )
  728. local con = nil
  729. con = renderstepped:Connect(function()
  730. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  731. flingpart0.RotVelocity = rsteppedRotVel
  732. flingpart.Position = target
  733. else
  734. con:Disconnect()
  735. end
  736. end)
  737. wait(duration)
  738. if lastfling ~= target then
  739. if flingpart then
  740. if att1 and (att1.Parent == flingpart) then
  741. att1.Parent = flingpart1
  742. end
  743. flingpart:Destroy()
  744. end
  745. return
  746. end
  747. target = nil
  748. if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then
  749. return
  750. end
  751. flingpart0.RotVelocity = v3_0
  752. att1.Parent = flingpart1
  753. for i, v in pairs(att0:GetChildren()) do
  754. if v:IsA("AlignOrientation") then
  755. v.Enabled = true
  756. end
  757. end
  758. if flingpart then
  759. flingpart:Destroy()
  760. end
  761. end
  762. end
  763. end
  764.  
  765. IT = Instance.new
  766. CF = CFrame.new
  767. VT = Vector3.new
  768. RAD = math.rad
  769. C3 = Color3.new
  770. UD2 = UDim2.new
  771. BRICKC = BrickColor.new
  772. ANGLES = CFrame.Angles
  773. EULER = CFrame.fromEulerAnglesXYZ
  774. COS = math.cos
  775. ACOS = math.acos
  776. SIN = math.sin
  777. ASIN = math.asin
  778. ABS = math.abs
  779. MRANDOM = math.random
  780. FLOOR = math.floor
  781.  
  782. speed = 1
  783. sine = 1
  784. srv = game:GetService('RunService')
  785.  
  786. reanim = game.Players.LocalPlayer.Character
  787.  
  788. function hat(h,p,c1,c0,m)
  789. reanim[h].Handle.AccessoryWeld.Part1=reanim[p]
  790. reanim[h].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  791. reanim[h].Handle.AccessoryWeld.C0=reanim[h].Handle.AccessoryWeld.C0:Lerp(c0 or CFrame.new(),1)
  792. if m == true then
  793. rmesh(h)
  794. end
  795. end
  796. m=game.Players.LocalPlayer:GetMouse()
  797. RJ = reanim.HumanoidRootPart.RootJoint
  798. RS = reanim.Torso['Right Shoulder']
  799. LS = reanim.Torso['Left Shoulder']
  800. RH = reanim.Torso['Right Hip']
  801. LH = reanim.Torso['Left Hip']
  802. Root = reanim.HumanoidRootPart
  803. NECK = reanim.Torso.Neck
  804. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  805. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  806. RJ.C1 = CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  807. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  808. RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  809. LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  810. RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  811. LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  812. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  813. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  814. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  815. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  816.  
  817. -- for modes u can go in this link : https://Nexo.notxeneon15.repl.co/nexo/modes.lua
  818.  
  819. coroutine.wrap(function()
  820. while true do -- anim changer
  821. if HumanDied then break end
  822. sine = sine + speed
  823. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  824. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  825. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  826. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  827. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  828. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  829. if lookvector > reanim.Humanoid.WalkSpeed then
  830. lookvector = reanim.Humanoid.WalkSpeed
  831. end
  832. if lookvector < -reanim.Humanoid.WalkSpeed then
  833. lookvector = -reanim.Humanoid.WalkSpeed
  834. end
  835. if rightvector > reanim.Humanoid.WalkSpeed then
  836. rightvector = reanim.Humanoid.WalkSpeed
  837. end
  838. if rightvector < -reanim.Humanoid.WalkSpeed then
  839. rightvector = -reanim.Humanoid.WalkSpeed
  840. end
  841. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  842. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  843. if Mode == 'normal' or Mode == 'Normal' then
  844. if reanim.Humanoid.Jump then -- jump
  845.  
  846.  
  847.  
  848. ---NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  849. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-1+0*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  850. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(72+0*math.cos(sine/26)),math.rad(0+0*math.cos(sine/10)),math.rad(35+0*math.cos(sine/10))),.2)
  851. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+-0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(72+0*math.cos(sine/26)),math.rad(0+0*math.cos(sine/10)),math.rad(-32+0*math.cos(sine/10))),.2)
  852. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),325+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  853. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),325+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  854.  
  855. elseif Root.Velocity.y < -1 and reanim.Humanoid.Jump then -- fall
  856.  
  857.  
  858.  
  859. ---NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  860. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-1+0*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  861. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(112+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(23+0*math.cos(sine/10))),.2)
  862. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+-0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(112+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  863. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),325+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  864. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),325+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  865.  
  866. elseif Root.Velocity.Magnitude < 2 then -- idle
  867.  
  868.  
  869.  
  870. ---NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  871. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-2.8+0*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  872. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(65+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  873. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(65+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  874. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),250+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  875. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),250+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  876. elseif Root.Velocity.Magnitude < 20 then -- walk
  877.  
  878.  
  879.  
  880. ---NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  881. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-1+0*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  882. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-68*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  883. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+-0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+68*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  884. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),325+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  885. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),325+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  886. elseif Root.Velocity.Magnitude > 20 then -- run
  887.  
  888.  
  889.  
  890. ---NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  891. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-1+0*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  892. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-68*math.cos(sine/7)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  893. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+-0.1*math.cos(sine/26),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+68*math.cos(sine/7)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  894. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),325+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  895. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),325+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  896.  
  897.  
  898. end
  899. end
  900. srv.RenderStepped:Wait()
  901. end
  902. end)()
  903.  
  904. Mode = 'Normal'
  905. mode=m.KeyDown:Connect(function(a)
  906. if a == 'z' then
  907. Mode = 'normal'
  908. end
  909. if a == 'q' then
  910. Mode = 'normal man'
  911. end
  912. if a == 'x' then
  913. Mode = 'hug man'
  914. end
  915. end)
  916.  
  917. coroutine.wrap(function()
  918. while true do -- anim changer
  919. if HumanDied then mode:Disconnect() break end
  920. sine = sine + speed
  921. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  922. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  923. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  924. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  925. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  926. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  927. if lookvector > reanim.Humanoid.WalkSpeed then
  928. lookvector = reanim.Humanoid.WalkSpeed
  929. end
  930. if lookvector < -reanim.Humanoid.WalkSpeed then
  931. lookvector = -reanim.Humanoid.WalkSpeed
  932. end
  933. if rightvector > reanim.Humanoid.WalkSpeed then
  934. rightvector = reanim.Humanoid.WalkSpeed
  935. end
  936. if rightvector < -reanim.Humanoid.WalkSpeed then
  937. rightvector = -reanim.Humanoid.WalkSpeed
  938. end
  939. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  940. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  941. if Mode == 'normal man' then
  942. --First Mode--
  943. if reanim.Humanoid.Jump then -- jump
  944. --jump clerp here
  945. elseif Root.Velocity.y < -1 and reanim.Humanoid.Jump then -- fall
  946. --fall clerp here
  947. elseif Root.Velocity.Magnitude < 2 then -- idle
  948.  
  949.  
  950.  
  951. NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  952. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-9+0.1*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  953. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  954. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  955. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  956. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  957. elseif Root.Velocity.Magnitude < 20 then -- walk
  958.  
  959.  
  960. NECK.C0=NECK.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),1+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  961. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/10),-9+0.1*math.cos(sine/19),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/19)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  962. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  963. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  964. RH.C0=RH.C0:Lerp(CFrame.new(0.82+0*math.cos(sine/10),-0+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  965. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),-0+0*math.cos(sine/10),-0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  966. elseif Root.Velocity.Magnitude > 20 then -- run
  967. --run clerp here
  968.  
  969. end
  970. --------------
  971. end
  972. srv.RenderStepped:Wait()
  973. end
  974. end)()
  975.  
  976.  
  977. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 109
  978.  
  979. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  980. if v:IsA("Accessory") then
  981. if v.Handle:FindFirstChildOfClass("Mesh") or v.Handle:FindFirstChildOfClass("SpecialMesh") then
  982. if v.Handle:FindFirstChildOfClass("SpecialMesh") then
  983. v.Handle:FindFirstChildOfClass("SpecialMesh"):Remove()
  984. end
  985. end
  986. end
  987. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement