Advertisement
Deyer

Scp-035

Mar 7th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.80 KB | None | 0 0
  1. --reanim by myworld
  2. --Converted By Deyer :P
  3. game.Players.LocalPlayer.Character["Hat1"].Handle.Mesh:Destroy()
  4. game.Players.LocalPlayer.Character["Pal Hair"].Handle.Mesh:Destroy() --Pink Hair
  5. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  6. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  7. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  8. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  9. --VarietyShades02
  10. --TennisBall
  11.  
  12. local c = game.Players.LocalPlayer.Character
  13. for i, v in pairs({"Right Arm", "Left Arm"}) do
  14. local arm = c[v]
  15. arm.Parent = nil
  16. arm.Transparency = 1
  17. arm.Parent = c
  18. end
  19.  
  20. local c = game.Players.LocalPlayer.Character
  21. for i, v in pairs({"Right Leg", "Left Leg"}) do
  22. local Leg = c[v]
  23. Leg.Parent = nil
  24. Leg.Transparency = 1
  25. Leg.Parent = c
  26. end
  27.  
  28. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(8, 0, 8)
  29. local function getNetlessVelocity(realPartVelocity)
  30. local mag = realPartVelocity.Magnitude
  31. if mag > 1 then
  32. local unit = realPartVelocity.Unit
  33. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  34. return unit * (25.1 / unit.Y)
  35. end
  36. end
  37. return v3_net + realPartVelocity * v3_808
  38. end
  39. local simradius = "shp" --simulation radius (net bypass) method
  40. --simulation radius (net bypass) method
  41. --"shp" - sethiddenproperty
  42. --"ssr" - setsimulationradius
  43. --false - disable
  44. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  45. local newanimate = false --disables the animate script and enables after reanimation
  46. local discharscripts = true --disables all localScripts parented to your character before reanimation
  47. local R15toR6 = true --tries to convert your character to r6 if its r15
  48. local hatcollide = true --makes hats cancollide (only method 0)
  49. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  50. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  51. local hedafterneck = false --disable aligns for head and enable after neck is removed
  52. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  53. local method = 0 --reanimation method
  54. --methods:
  55. --0 - breakJoints (takes [loadtime] seconds to laod)
  56. --1 - limbs
  57. --2 - limbs + anti respawn
  58. --3 - limbs + breakJoints after [loadtime] seconds
  59. --4 - remove humanoid + breakJoints
  60. --5 - remove humanoid + limbs
  61. local alignmode = 3 --AlignPosition mode
  62. --modes:
  63. --1 - AlignPosition rigidity enabled true
  64. --2 - 2 AlignPositions rigidity enabled both true and false
  65. --3 - AlignPosition rigidity enabled false
  66.  
  67. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  68.  
  69. local lp = game:GetService("Players").LocalPlayer
  70. local rs = game:GetService("RunService")
  71. local stepped = rs.Stepped
  72. local heartbeat = rs.Heartbeat
  73. local renderstepped = rs.RenderStepped
  74. local sg = game:GetService("StarterGui")
  75. local ws = game:GetService("Workspace")
  76. local cf = CFrame.new
  77. local v3 = Vector3.new
  78. local v3_0 = v3(0, 0, 0)
  79. local inf = math.huge
  80.  
  81. local c = lp.Character
  82.  
  83. if not (c and c.Parent) then
  84. return
  85. end
  86.  
  87. c.Destroying:Connect(function()
  88. c = nil
  89. end)
  90.  
  91. local function gp(parent, name, className)
  92. if typeof(parent) == "Instance" then
  93. for i, v in pairs(parent:GetChildren()) do
  94. if (v.Name == name) and v:IsA(className) then
  95. return v
  96. end
  97. end
  98. end
  99. return nil
  100. end
  101.  
  102. local function align(Part0, Part1)
  103. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  104.  
  105. local att0 = Instance.new("Attachment", Part0)
  106. att0.Orientation = v3_0
  107. att0.Position = v3_0
  108. att0.Name = "att0_" .. Part0.Name
  109. local att1 = Instance.new("Attachment", Part1)
  110. att1.Orientation = v3_0
  111. att1.Position = v3_0
  112. att1.Name = "att1_" .. Part1.Name
  113.  
  114. if (alignmode == 1) or (alignmode == 2) then
  115. local ape = Instance.new("AlignPosition", att0)
  116. ape.ApplyAtCenterOfMass = false
  117. ape.MaxForce = inf
  118. ape.MaxVelocity = inf
  119. ape.ReactionForceEnabled = false
  120. ape.Responsiveness = 200
  121. ape.Attachment1 = att1
  122. ape.Attachment0 = att0
  123. ape.Name = "AlignPositionRtrue"
  124. ape.RigidityEnabled = true
  125. end
  126.  
  127. if (alignmode == 2) or (alignmode == 3) then
  128. local apd = Instance.new("AlignPosition", att0)
  129. apd.ApplyAtCenterOfMass = false
  130. apd.MaxForce = inf
  131. apd.MaxVelocity = inf
  132. apd.ReactionForceEnabled = false
  133. apd.Responsiveness = 200
  134. apd.Attachment1 = att1
  135. apd.Attachment0 = att0
  136. apd.Name = "AlignPositionRfalse"
  137. apd.RigidityEnabled = false
  138. end
  139.  
  140. local ao = Instance.new("AlignOrientation", att0)
  141. ao.MaxAngularVelocity = inf
  142. ao.MaxTorque = inf
  143. ao.PrimaryAxisOnly = false
  144. ao.ReactionTorqueEnabled = false
  145. ao.Responsiveness = 200
  146. ao.Attachment1 = att1
  147. ao.Attachment0 = att0
  148. ao.RigidityEnabled = false
  149.  
  150. if type(getNetlessVelocity) == "function" then
  151. local realVelocity = v3_0
  152. local steppedcon = stepped:Connect(function()
  153. Part0.Velocity = realVelocity
  154. end)
  155. local heartbeatcon = heartbeat:Connect(function()
  156. realVelocity = Part0.Velocity
  157. Part0.Velocity = getNetlessVelocity(realVelocity)
  158. end)
  159. Part0.Destroying:Connect(function()
  160. Part0 = nil
  161. steppedcon:Disconnect()
  162. heartbeatcon:Disconnect()
  163. end)
  164. end
  165. end
  166.  
  167. local function respawnrequest()
  168. local ccfr = ws.CurrentCamera.CFrame
  169. local c = lp.Character
  170. lp.Character = nil
  171. lp.Character = c
  172. local con = nil
  173. con = ws.CurrentCamera.Changed:Connect(function(prop)
  174. if (prop ~= "Parent") and (prop ~= "CFrame") then
  175. return
  176. end
  177. ws.CurrentCamera.CFrame = ccfr
  178. con:Disconnect()
  179. end)
  180. end
  181.  
  182. local destroyhum = (method == 4) or (method == 5)
  183. local breakjoints = (method == 0) or (method == 4)
  184. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  185.  
  186. hatcollide = hatcollide and (method == 0)
  187.  
  188. addtools = addtools and gp(lp, "Backpack", "Backpack")
  189.  
  190. local fenv = getfenv()
  191. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  192. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  193.  
  194. if shp and (simradius == "shp") then
  195. spawn(function()
  196. while c and heartbeat:Wait() do
  197. shp(lp, "SimulationRadius", inf)
  198. end
  199. end)
  200. elseif ssr and (simradius == "ssr") then
  201. spawn(function()
  202. while c and heartbeat:Wait() do
  203. ssr(inf)
  204. end
  205. end)
  206. end
  207.  
  208. antiragdoll = antiragdoll and function(v)
  209. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  210. v.Parent = nil
  211. end
  212. end
  213.  
  214. if antiragdoll then
  215. for i, v in pairs(c:GetDescendants()) do
  216. antiragdoll(v)
  217. end
  218. c.DescendantAdded:Connect(antiragdoll)
  219. end
  220.  
  221. if antirespawn then
  222. respawnrequest()
  223. end
  224.  
  225. if method == 0 then
  226. wait(loadtime)
  227. if not c then
  228. return
  229. end
  230. end
  231.  
  232. if discharscripts then
  233. for i, v in pairs(c:GetChildren()) do
  234. if v:IsA("LocalScript") then
  235. v.Disabled = true
  236. end
  237. end
  238. elseif newanimate then
  239. local animate = gp(c, "Animate", "LocalScript")
  240. if animate and (not animate.Disabled) then
  241. animate.Disabled = true
  242. else
  243. newanimate = false
  244. end
  245. end
  246.  
  247. if addtools then
  248. for i, v in pairs(addtools:GetChildren()) do
  249. if v:IsA("Tool") then
  250. v.Parent = c
  251. end
  252. end
  253. end
  254.  
  255. pcall(function()
  256. settings().Physics.AllowSleep = false
  257. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  258. end)
  259.  
  260. local OLDscripts = {}
  261.  
  262. for i, v in pairs(c:GetDescendants()) do
  263. if v.ClassName == "Script" then
  264. table.insert(OLDscripts, v)
  265. end
  266. end
  267.  
  268. local scriptNames = {}
  269.  
  270. for i, v in pairs(c:GetDescendants()) do
  271. if v:IsA("BasePart") then
  272. local newName = tostring(i)
  273. local exists = true
  274. while exists do
  275. exists = false
  276. for i, v in pairs(OLDscripts) do
  277. if v.Name == newName then
  278. exists = true
  279. end
  280. end
  281. if exists then
  282. newName = newName .. "_"
  283. end
  284. end
  285. table.insert(scriptNames, newName)
  286. Instance.new("Script", v).Name = newName
  287. end
  288. end
  289.  
  290. c.Archivable = true
  291. local hum = c:FindFirstChildOfClass("Humanoid")
  292. if hum then
  293. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  294. v:Stop()
  295. end
  296. end
  297. local cl = c:Clone()
  298. if hum and humState16 then
  299. hum:ChangeState(Enum.HumanoidStateType.Physics)
  300. if destroyhum then
  301. wait(1.6)
  302. end
  303. end
  304. if hum and hum.Parent and destroyhum then
  305. hum:Destroy()
  306. end
  307.  
  308. if not c then
  309. return
  310. end
  311.  
  312. local head = gp(c, "Head", "BasePart")
  313. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  314. local root = gp(c, "HumanoidRootPart", "BasePart")
  315. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  316. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  317. if not (torso and root and anything) then
  318. return
  319. end
  320. torso:Destroy()
  321. root:Destroy()
  322. if shp then
  323. for i,v in pairs(c:GetChildren()) do
  324. if v:IsA("Accessory") then
  325. shp(v, "BackendAccoutrementState", 0)
  326. end
  327. end
  328. end
  329. anything:Destroy()
  330. if head then
  331. head:Destroy()
  332. end
  333. end
  334.  
  335. for i, v in pairs(cl:GetDescendants()) do
  336. if v:IsA("BasePart") then
  337. v.Transparency = 1
  338. v.Anchored = false
  339. end
  340. end
  341.  
  342. local model = Instance.new("Model", c)
  343. model.Name = model.ClassName
  344.  
  345. model.Destroying:Connect(function()
  346. model = nil
  347. end)
  348.  
  349. for i, v in pairs(c:GetChildren()) do
  350. if v ~= model then
  351. if addtools and v:IsA("Tool") then
  352. for i1, v1 in pairs(v:GetDescendants()) do
  353. if v1 and v1.Parent and v1:IsA("BasePart") then
  354. local bv = Instance.new("BodyVelocity", v1)
  355. bv.Velocity = v3_0
  356. bv.MaxForce = v3(1000, 1000, 1000)
  357. bv.P = 1250
  358. bv.Name = "bv_" .. v.Name
  359. end
  360. end
  361. end
  362. v.Parent = model
  363. end
  364. end
  365.  
  366. if breakjoints then
  367. model:BreakJoints()
  368. else
  369. if head and torso then
  370. for i, v in pairs(model:GetDescendants()) do
  371. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  372. local save = false
  373. if (v.Part0 == torso) and (v.Part1 == head) then
  374. save = true
  375. end
  376. if (v.Part0 == head) and (v.Part1 == torso) then
  377. save = true
  378. end
  379. if save then
  380. if hedafterneck then
  381. hedafterneck = v
  382. end
  383. else
  384. v:Destroy()
  385. end
  386. end
  387. end
  388. end
  389. if method == 3 then
  390. spawn(function()
  391. wait(loadtime)
  392. if model then
  393. model:BreakJoints()
  394. end
  395. end)
  396. end
  397. end
  398.  
  399. cl.Parent = c
  400. for i, v in pairs(cl:GetChildren()) do
  401. v.Parent = c
  402. end
  403. cl:Destroy()
  404.  
  405. local modelDes = {}
  406. for i, v in pairs(model:GetDescendants()) do
  407. if v:IsA("BasePart") then
  408. i = tostring(i)
  409. v.Destroying:Connect(function()
  410. modelDes[i] = nil
  411. end)
  412. modelDes[i] = v
  413. end
  414. end
  415. local modelcolcon = nil
  416. local function modelcolf()
  417. if model then
  418. for i, v in pairs(modelDes) do
  419. v.CanCollide = false
  420. end
  421. else
  422. modelcolcon:Disconnect()
  423. end
  424. end
  425. modelcolcon = stepped:Connect(modelcolf)
  426. modelcolf()
  427.  
  428. for i, scr in pairs(model:GetDescendants()) do
  429. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  430. local Part0 = scr.Parent
  431. if Part0:IsA("BasePart") then
  432. for i1, scr1 in pairs(c:GetDescendants()) do
  433. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  434. local Part1 = scr1.Parent
  435. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  436. align(Part0, Part1)
  437. break
  438. end
  439. end
  440. end
  441. end
  442. end
  443. end
  444.  
  445. if (typeof(hedafterneck) == "Instance") and head then
  446. local aligns = {}
  447. local con = nil
  448. con = hedafterneck.Changed:Connect(function(prop)
  449. if (prop == "Parent") and not hedafterneck.Parent then
  450. con:Disconnect()
  451. for i, v in pairs(aligns) do
  452. v.Enabled = true
  453. end
  454. end
  455. end)
  456. for i, v in pairs(head:GetDescendants()) do
  457. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  458. i = tostring(i)
  459. aligns[i] = v
  460. v.Destroying:Connect(function()
  461. aligns[i] = nil
  462. end)
  463. v.Enabled = false
  464. end
  465. end
  466. end
  467.  
  468. for i, v in pairs(c:GetDescendants()) do
  469. if v and v.Parent then
  470. if v.ClassName == "Script" then
  471. if table.find(scriptNames, v.Name) then
  472. v:Destroy()
  473. end
  474. elseif not v:IsDescendantOf(model) then
  475. if v:IsA("Decal") then
  476. v.Transparency = 1
  477. elseif v:IsA("ForceField") then
  478. v.Visible = false
  479. elseif v:IsA("Sound") then
  480. v.Playing = false
  481. 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
  482. v.Enabled = false
  483. end
  484. end
  485. end
  486. end
  487.  
  488. if newanimate then
  489. local animate = gp(c, "Animate", "LocalScript")
  490. if animate then
  491. animate.Disabled = false
  492. end
  493. end
  494.  
  495. if addtools then
  496. for i, v in pairs(c:GetChildren()) do
  497. if v:IsA("Tool") then
  498. v.Parent = addtools
  499. end
  500. end
  501. end
  502.  
  503. local hum0 = model:FindFirstChildOfClass("Humanoid")
  504. if hum0 then
  505. hum0.Destroying:Connect(function()
  506. hum0 = nil
  507. end)
  508. end
  509.  
  510. local hum1 = c:FindFirstChildOfClass("Humanoid")
  511. if hum1 then
  512. hum1.Destroying:Connect(function()
  513. hum1 = nil
  514. end)
  515. end
  516.  
  517. if hum1 then
  518. ws.CurrentCamera.CameraSubject = hum1
  519. local camSubCon = nil
  520. local function camSubFunc()
  521. camSubCon:Disconnect()
  522. if c and hum1 then
  523. ws.CurrentCamera.CameraSubject = hum1
  524. end
  525. end
  526. camSubCon = renderstepped:Connect(camSubFunc)
  527. if hum0 then
  528. hum0.Changed:Connect(function(prop)
  529. if hum1 and (prop == "Jump") then
  530. hum1.Jump = hum0.Jump
  531. end
  532. end)
  533. else
  534. respawnrequest()
  535. end
  536. end
  537.  
  538. local rb = Instance.new("BindableEvent", c)
  539. rb.Event:Connect(function()
  540. rb:Destroy()
  541. sg:SetCore("ResetButtonCallback", true)
  542. if destroyhum then
  543. c:BreakJoints()
  544. return
  545. end
  546. if hum0 and (hum0.Health > 0) then
  547. model:BreakJoints()
  548. hum0.Health = 0
  549. end
  550. if antirespawn then
  551. respawnrequest()
  552. end
  553. end)
  554. sg:SetCore("ResetButtonCallback", rb)
  555.  
  556. spawn(function()
  557. while c do
  558. if hum0 and hum1 then
  559. hum1.Jump = hum0.Jump
  560. end
  561. wait()
  562. end
  563. sg:SetCore("ResetButtonCallback", true)
  564. end)
  565.  
  566. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  567. if R15toR6 then
  568. 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")
  569. if part then
  570. local cfr = part.CFrame
  571. local R6parts = {
  572. head = {
  573. Name = "Head",
  574. Size = v3(2, 1, 1),
  575. R15 = {
  576. Head = 0
  577. }
  578. },
  579. torso = {
  580. Name = "Torso",
  581. Size = v3(2, 2, 1),
  582. R15 = {
  583. UpperTorso = 0.2,
  584. LowerTorso = -100
  585. }
  586. },
  587. root = {
  588. Name = "HumanoidRootPart",
  589. Size = v3(2, 2, 1),
  590. R15 = {
  591. HumanoidRootPart = 0
  592. }
  593. },
  594. leftArm = {
  595. Name = "Left Arm",
  596. Size = v3(1, 2, 1),
  597. R15 = {
  598. LeftHand = -0.73,
  599. LeftLowerArm = -0.2,
  600. LeftUpperArm = 0.4
  601. }
  602. },
  603. rightArm = {
  604. Name = "Right Arm",
  605. Size = v3(1, 2, 1),
  606. R15 = {
  607. RightHand = -0.73,
  608. RightLowerArm = -0.2,
  609. RightUpperArm = 0.4
  610. }
  611. },
  612. leftLeg = {
  613. Name = "Left Leg",
  614. Size = v3(1, 2, 1),
  615. R15 = {
  616. LeftFoot = -0.73,
  617. LeftLowerLeg = -0.15,
  618. LeftUpperLeg = 0.6
  619. }
  620. },
  621. rightLeg = {
  622. Name = "Right Leg",
  623. Size = v3(1, 2, 1),
  624. R15 = {
  625. RightFoot = -0.73,
  626. RightLowerLeg = -0.15,
  627. RightUpperLeg = 0.6
  628. }
  629. }
  630. }
  631. for i, v in pairs(c:GetChildren()) do
  632. if v:IsA("BasePart") then
  633. for i1, v1 in pairs(v:GetChildren()) do
  634. if v1:IsA("Motor6D") then
  635. v1.Part0 = nil
  636. end
  637. end
  638. end
  639. end
  640. part.Archivable = true
  641. for i, v in pairs(R6parts) do
  642. local part = part:Clone()
  643. part:ClearAllChildren()
  644. part.Name = v.Name
  645. part.Size = v.Size
  646. part.CFrame = cfr
  647. part.Anchored = false
  648. part.Transparency = 1
  649. part.CanCollide = false
  650. for i1, v1 in pairs(v.R15) do
  651. local R15part = gp(c, i1, "BasePart")
  652. local att = gp(R15part, "att1_" .. i1, "Attachment")
  653. if R15part then
  654. local weld = Instance.new("Weld", R15part)
  655. weld.Name = "Weld_" .. i1
  656. weld.Part0 = part
  657. weld.Part1 = R15part
  658. weld.C0 = cf(0, v1, 0)
  659. weld.C1 = cf(0, 0, 0)
  660. R15part.Massless = true
  661. R15part.Name = "R15_" .. i1
  662. R15part.Parent = part
  663. if att then
  664. att.Parent = part
  665. att.Position = v3(0, v1, 0)
  666. end
  667. end
  668. end
  669. part.Parent = c
  670. R6parts[i] = part
  671. end
  672. local R6joints = {
  673. neck = {
  674. Parent = R6parts.torso,
  675. Name = "Neck",
  676. Part0 = R6parts.torso,
  677. Part1 = R6parts.head,
  678. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  679. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  680. },
  681. rootJoint = {
  682. Parent = R6parts.root,
  683. Name = "RootJoint" ,
  684. Part0 = R6parts.root,
  685. Part1 = R6parts.torso,
  686. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  687. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  688. },
  689. rightShoulder = {
  690. Parent = R6parts.torso,
  691. Name = "Right Shoulder",
  692. Part0 = R6parts.torso,
  693. Part1 = R6parts.rightArm,
  694. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  695. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  696. },
  697. leftShoulder = {
  698. Parent = R6parts.torso,
  699. Name = "Left Shoulder",
  700. Part0 = R6parts.torso,
  701. Part1 = R6parts.leftArm,
  702. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  703. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  704. },
  705. rightHip = {
  706. Parent = R6parts.torso,
  707. Name = "Right Hip",
  708. Part0 = R6parts.torso,
  709. Part1 = R6parts.rightLeg,
  710. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  711. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  712. },
  713. leftHip = {
  714. Parent = R6parts.torso,
  715. Name = "Left Hip" ,
  716. Part0 = R6parts.torso,
  717. Part1 = R6parts.leftLeg,
  718. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  719. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  720. }
  721. }
  722. for i, v in pairs(R6joints) do
  723. local joint = Instance.new("Motor6D")
  724. for prop, val in pairs(v) do
  725. joint[prop] = val
  726. end
  727. R6joints[i] = joint
  728. end
  729. hum1.RigType = Enum.HumanoidRigType.R6
  730. hum1.HipHeight = 0
  731. end
  732. end
  733.  
  734.  
  735.  
  736. --find rig joints
  737.  
  738. local function fakemotor()
  739. return {C0=cf(), C1=cf()}
  740. end
  741.  
  742. local torso = gp(c, "Torso", "BasePart")
  743. local root = gp(c, "HumanoidRootPart", "BasePart")
  744.  
  745. local neck = gp(torso, "Neck", "Motor6D")
  746. neck = neck or fakemotor()
  747.  
  748. local rootJoint = gp(root, "RootJoint", "Motor6D")
  749. rootJoint = rootJoint or fakemotor()
  750.  
  751. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  752. leftShoulder = leftShoulder or fakemotor()
  753.  
  754. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  755. rightShoulder = rightShoulder or fakemotor()
  756.  
  757. local leftHip = gp(torso, "Left Hip", "Motor6D")
  758. leftHip = leftHip or fakemotor()
  759.  
  760. local rightHip = gp(torso, "Right Hip", "Motor6D")
  761. rightHip = rightHip or fakemotor()
  762.  
  763. --120 fps
  764.  
  765. local fps = 0
  766. local event = Instance.new("BindableEvent", c)
  767. event.Name = "120 fps"
  768. local floor = math.floor
  769. fps = 1 / fps
  770. local tf = 0
  771. local con = nil
  772. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  773. if not c then
  774. con:Disconnect()
  775. return
  776. end
  777. --tf += s
  778. if tf >= fps then
  779. for i=1, floor(tf / fps) do
  780. event:Fire(c)
  781. end
  782. tf = 0
  783. end
  784. end)
  785. local event = event.Event
  786.  
  787. local hedrot = v3(0, 5, 0)
  788.  
  789. local uis = game:GetService("UserInputService")
  790. local function isPressed(key)
  791. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  792. end
  793.  
  794. local biggesthandle = nil
  795. for i, v in pairs(c:GetChildren()) do
  796. if v:IsA("Accessory") then
  797. local handle = gp(v, "Handle", "BasePart")
  798. if biggesthandle then
  799. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  800. biggesthandle = handle
  801. end
  802. else
  803. biggesthandle = gp(v, "Handle", "BasePart")
  804. end
  805. end
  806. end
  807.  
  808. if not biggesthandle then
  809. return
  810. end
  811.  
  812. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  813. if not handle1 then
  814. return
  815. end
  816.  
  817. handle1.Destroying:Connect(function()
  818. handle1 = nil
  819. end)
  820. biggesthandle.Destroying:Connect(function()
  821. biggesthandle = nil
  822. end)
  823.  
  824. biggesthandle:BreakJoints()
  825. biggesthandle.Anchored = true
  826.  
  827. for i, v in pairs(handle1:GetDescendants()) do
  828. if v:IsA("AlignOrientation") then
  829. v.Enabled = false
  830. end
  831. end
  832.  
  833. local mouse = lp:GetMouse()
  834. local fling = false
  835. mouse.Button1Down:Connect(function()
  836. fling = true
  837. end)
  838. mouse.Button1Up:Connect(function()
  839. fling = false
  840. end)
  841. local function doForSignal(signal, vel)
  842. spawn(function()
  843. while signal:Wait() and c and handle1 and biggesthandle do
  844. if fling and mouse.Target then
  845. biggesthandle.Position = mouse.Hit.Position
  846. end
  847. handle1.RotVelocity = vel
  848. end
  849. end)
  850. end
  851. doForSignal(stepped, v3(100, 100, 100))
  852. doForSignal(renderstepped, v3(100, 100, 100))
  853. doForSignal(heartbeat, v3(20000, 20000, 20000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  854.  
  855. local lp = game:GetService("Players").LocalPlayer
  856. local rs = game:GetService("RunService")
  857. local stepped = rs.Stepped
  858. local heartbeat = rs.Heartbeat
  859. local renderstepped = rs.RenderStepped
  860. local sg = game:GetService("StarterGui")
  861. local ws = game:GetService("Workspace")
  862. local cf = CFrame.new
  863. local v3 = Vector3.new
  864. local v3_0 = Vector3.zero
  865. local inf = math.huge
  866.  
  867. local cplayer = lp.Character
  868.  
  869. local v3 = Vector3.new
  870.  
  871. local function gp(parent, name, className)
  872. if typeof(parent) == "Instance" then
  873. for i, v in pairs(parent:GetChildren()) do
  874. if (v.Name == name) and v:IsA(className) then
  875. return v
  876. end
  877. end
  878. end
  879. return nil
  880. end
  881.  
  882. local hat2 = gp(cplayer, "Hat1", "Accessory")
  883. local handle2 = gp(hat2, "Handle", "BasePart")
  884. local att2 = gp(handle2, "att1_Handle", "Attachment")
  885. att2.Parent = cplayer["Torso"]
  886. att2.Position = Vector3.new(0.5, -0, 0)
  887. att2.Rotation = Vector3.new(90, 0, 0)
  888.  
  889. local hat2 = gp(cplayer, "Pal Hair", "Accessory")
  890. local handle2 = gp(hat2, "Handle", "BasePart")
  891. local att2 = gp(handle2, "att1_Handle", "Attachment")
  892. att2.Parent = cplayer["Torso"]
  893. att2.Position = Vector3.new(-0.5, -0, 0)
  894. att2.Rotation = Vector3.new(90, 0, 0)
  895.  
  896. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  897. local handle2 = gp(hat2, "Handle", "BasePart")
  898. local att2 = gp(handle2, "att1_Handle", "Attachment")
  899. att2.Parent = cplayer["Left Arm"]
  900. att2.Position = Vector3.new(0, -0, 0)
  901. att2.Rotation = Vector3.new(90, 0, 0)
  902.  
  903. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  904. local handle2 = gp(hat2, "Handle", "BasePart")
  905. local att2 = gp(handle2, "att1_Handle", "Attachment")
  906. att2.Parent = cplayer["Right Arm"]
  907. att2.Position = Vector3.new(-0, -0, 0)
  908. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  909.  
  910. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  911. local handle2 = gp(hat2, "Handle", "BasePart")
  912. local att2 = gp(handle2, "att1_Handle", "Attachment")
  913. att2.Parent = cplayer["Right Leg"]
  914. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  915. att2.Rotation = Vector3.new(90, 0, 0)
  916.  
  917. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  918. local handle2 = gp(hat2, "Handle", "BasePart")
  919. local att2 = gp(handle2, "att1_Handle", "Attachment")
  920. att2.Parent = cplayer["Left Leg"]
  921. att2.Position = Vector3.new(-0, 0, 0)
  922. att2.Rotation = Vector3.new(90, 0, 0)
  923.  
  924.  
  925.  
  926. wait(0.2)
  927. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
  928. local Torso = Character:FindFirstChild("Torso")
  929. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  930. local Humanoid = Character:FindFirstChild("Humanoid")
  931. local Head = Character:FindFirstChild("Head")
  932. local Right_Arm = Character:FindFirstChild("Right Arm")
  933. local Left_Arm = Character:FindFirstChild("Left Arm")
  934. local Right_Leg = Character:FindFirstChild("Right Leg")
  935. local Left_Leg = Character:FindFirstChild("Left Leg")
  936. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  937. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  938. local Right_Hip = Torso:FindFirstChild("Right Hip")
  939. local Left_Hip = Torso:FindFirstChild("Left Hip")
  940. local Neck = Torso:FindFirstChild("Neck")
  941. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  942. local rootJoint = rootPart:FindFirstChild("RootJoint")
  943. local CurrentIdle = "Idling1"
  944. local Degree = 0.0175438596491228
  945. local canremove = false
  946. local debounce = false
  947. local UIService=game:GetService'UserInputService'
  948. _G.SongName = math.random(1,9025232)
  949.  
  950. local Hood = Instance.new("Part",Head)
  951. Hood.Name = "Hood"
  952. Hood.Shape = Enum.PartType.Ball
  953. Hood.CanCollide = false
  954. Hood.BrickColor = BrickColor.new("Medium stone grey")
  955. Hood.Transparency = 0
  956. Hood.Material = "Grass"
  957. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  958. Hood.TopSurface = Enum.SurfaceType.Smooth
  959. Hood.BottomSurface = Enum.SurfaceType.Smooth
  960. local Weld = Instance.new("Weld", Hood)
  961. Weld.Part0 = Head
  962. Weld.Part1 = Hood
  963. Weld.C1 = CFrame.new(0,0,0.6)
  964. HoodMesh = Instance.new("FileMesh",Hood)
  965. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  966. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  967. HoodMesh.Scale = Vector3.new(1,1,1)
  968.  
  969. local Hair = Instance.new("Part",Head)
  970. Hair.Name = "Hair"
  971. Hair.Shape = Enum.PartType.Ball
  972. Hair.CanCollide = false
  973. Hair.BrickColor = BrickColor.new("Really black")
  974. Hair.Transparency = 0
  975. Hair.Material = "Grass"
  976. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  977. Hair.TopSurface = Enum.SurfaceType.Smooth
  978. Hair.BottomSurface = Enum.SurfaceType.Smooth
  979. local Weld = Instance.new("Weld", Hair)
  980. Weld.Part0 = Head
  981. Weld.Part1 = Hair
  982. Weld.C1 = CFrame.new(0,-0.5,0)
  983. HairMesh = Instance.new("FileMesh",Hair)
  984. HairMesh.MeshId = "http://www.roblox.com/asset/?id=15730710"
  985. HairMesh.TextureId = "http://www.roblox.com/asset/?id=13332337"
  986. HairMesh.Scale = Vector3.new(1.1,1.1,1.1)
  987.  
  988. lit = Instance.new("PointLight",Torso)
  989. lit.Brightness = 0
  990. lit.Range = 3
  991. lit.Color = Color3.fromRGB(180, 128, 255)
  992.  
  993. sin = math.sin
  994. Right_Leg.FormFactor = "Custom";
  995. Left_Leg.FormFactor = "Custom";
  996. rootPart.Archivable = true;
  997. rootJoint.Archivable = true;
  998. c_new = CFrame.new;
  999. c_angles = CFrame.Angles;
  1000. i_new = Instance.new
  1001. Humanoid:ClearAllChildren();
  1002. local isAttacking = false
  1003. local isSprinting = false
  1004. local Animations = false
  1005. local Angle = 0
  1006. local Axis = 0
  1007. local angleSpeed = 1
  1008. local axisSpeed = angleSpeed
  1009. local currentAnim
  1010. local levetatingheight = 3
  1011. local WalkType = "Ground"
  1012.  
  1013. function Sound(parent,loop,vol,id)
  1014. local s = Instance.new('Sound',parent)
  1015. s.Looped = loop
  1016. s.Volume = vol
  1017. s.MaxDistance=200
  1018. s.EmitterSize=20
  1019. s.SoundId = 'rbxassetid://'..tostring(id)
  1020. s:Play()
  1021. if loop == false then
  1022. wait(s.TimeLength)
  1023. s:Destroy()
  1024. end
  1025. end
  1026.  
  1027. Sound(rootPart,true,1,708003712)
  1028.  
  1029. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1030. wld = Instance.new("Weld", wp1)
  1031. wld.Part0 = wp0
  1032. wld.Part1 = wp1
  1033. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1034. return wld
  1035. end
  1036.  
  1037. function noOutline(part)
  1038. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1039. end
  1040.  
  1041. local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  1042. local partie = i_new("Part",parent)
  1043. partie.Name=Name
  1044. partie.BrickColor = BrickColor.new(Color)
  1045. partie.Material = Material
  1046. partie.Shape = Shape
  1047. partie.Transparency = Transparency
  1048. partie.Size = Size
  1049. partie.CFrame = CFrame
  1050. partie.CanCollide = CanCollide
  1051. partie.Anchored = Anchored
  1052. return partie
  1053. end
  1054.  
  1055.  
  1056.  
  1057. function swait(num)
  1058. if num == 0 or num == nil then
  1059. game:GetService("RunService").Stepped:wait(0)
  1060. else
  1061. for i = 0, num do
  1062. game:GetService("RunService").Stepped:wait(0)
  1063. end
  1064. end
  1065. end
  1066.  
  1067. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1068. local mesh = i_new(Mesh)
  1069. mesh.Parent = part
  1070. if Mesh == "SpecialMesh" then
  1071. mesh.MeshType = meshtype
  1072. mesh.MeshId = meshid
  1073. end
  1074. mesh.Offset = offset
  1075. mesh.Scale = scale
  1076. return mesh
  1077. end
  1078. mouse = Player:GetMouse()
  1079. transform = false
  1080. debounce = false
  1081. coughing = false
  1082.  
  1083. Debris = game:GetService("Debris")
  1084.  
  1085. local Particle = Instance.new("ParticleEmitter",nil)
  1086. Particle.Enabled = false
  1087. Particle.LightEmission = 0.2
  1088. Particle.Rate = 150
  1089. Particle.ZOffset = 1
  1090. Particle.Rotation = NumberRange.new(-180, 180)
  1091.  
  1092. local RINGFIRE = {}
  1093.  
  1094. function ParticleEmitter(Table)
  1095. local PRTCL = Particle:Clone()
  1096. local Color1 = Table.Color1 or Color3.new(1,1,1)
  1097. local Color2 = Table.Color2 or Color3.new(1,1,1)
  1098. local Speed = Table.Speed or 5
  1099. local Drag = Table.Drag or 0
  1100. local Size1 = Table.Size1 or 1
  1101. local Size2 = Table.Size2 or 5
  1102. local Lifetime1 = Table.Lifetime1 or 1
  1103. local Lifetime2 = Table.Lifetime2 or 1.5
  1104. local Parent = Table.Parent or Torso
  1105. local Emit = Table.Emit or 100
  1106. local Offset = Table.Offset or 360
  1107. local Acel = Table.Acel or Vector3.new(0,0,0)
  1108. local Enabled = Table.Enabled or false
  1109. local Texture = Table.Texture or "281983280"
  1110. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  1111. local Trans1 = Table.Transparency1 or 0
  1112. local Trans2 = Table.Transparency2 or 0
  1113. PRTCL.Parent = Parent
  1114. PRTCL.RotSpeed = RotS
  1115. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  1116. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  1117. PRTCL.Color = ColorSequence.new(Color1,Color2)
  1118. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1119. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1120. PRTCL.Speed = NumberRange.new(Speed)
  1121. PRTCL.VelocitySpread = Offset
  1122. PRTCL.Drag = Drag
  1123. PRTCL.Acceleration = Acel
  1124. if Enabled == false then
  1125. PRTCL:Emit(Emit)
  1126. Debris:AddItem(PRTCL,Lifetime2)
  1127. else
  1128. PRTCL.Enabled = true
  1129. end
  1130. return PRTCL
  1131. end
  1132.  
  1133. local EYE1 = Instance.new("Attachment",Head)
  1134. EYE1.Position = (Vector3.new(0.4, 0.5, -1.195)/2)
  1135. local EYE2 = Instance.new("Attachment",Head)
  1136. EYE2.Position = (Vector3.new(-0.4, 0.5, -1.195)/2)
  1137. local PRTCL = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE1, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1138. PRTCL.LockedToPart = true
  1139. PRTCL.Rate = 185
  1140. PRTCL.ZOffset = 0.1
  1141. PRTCL.LightEmission = 1
  1142. PRTCL.Enabled = false
  1143. table.insert(RINGFIRE,PRTCL)
  1144. local PRTCL2 = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(-2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE2, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1145. PRTCL2.LockedToPart = true
  1146. PRTCL2.Rate = 185
  1147. PRTCL2.ZOffset = 0.1
  1148. PRTCL2.LightEmission = 1
  1149. PRTCL2.Enabled = false
  1150. table.insert(RINGFIRE,PRTCL2)
  1151.  
  1152. talking = false
  1153.  
  1154. mouse.KeyDown:connect(function(key)
  1155. if key == "e" and transform == false and debounce == false and talking == false then
  1156. debounce = true
  1157. talking = true
  1158. SOU = Instance.new("Sound")
  1159. SOU.Parent = Character.Torso
  1160. SOU.SoundId = "rbxassetid://1384757081"
  1161. SOU.Volume = 15
  1162. SOU.Looped = false
  1163. SOU.Pitch = 1
  1164. SOU.TimePosition = 4.5
  1165. SOU:Play()
  1166. wait(1.5)
  1167. talking = false
  1168. HairMesh.TextureId = "http://www.roblox.com/asset/?id=101678162"
  1169. Character['Body Colors'].HeadColor=BrickColor.new('Really black')
  1170. Character['Body Colors'].TorsoColor=BrickColor.new('Really black')
  1171. Character['Body Colors'].RightArmColor=BrickColor.new('Really black')
  1172. Character['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  1173. Character['Body Colors'].RightLegColor=BrickColor.new('Really black')
  1174. Character['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  1175. shirt.ShirtTemplate = "rbxassetid://767866442"
  1176. pants.PantsTemplate = "rbxassetid://842364401"
  1177. coroutine.wrap(function()
  1178. wait(7)
  1179. for i = 1,100 do
  1180. Hair.Transparency = Hair.Transparency + 0.01
  1181. wait()
  1182. end
  1183. end)()
  1184. DP = Instance.new("Sound")
  1185. DP.Parent = Character.Torso
  1186. DP.SoundId = "rbxassetid://244502094"
  1187. DP.Volume = 10
  1188. DP.Looped = true
  1189. DP.Pitch = 1
  1190. DP:Play()
  1191. q=Instance.new('ParticleEmitter',Head)
  1192. q.Rate = 500
  1193. q.Speed = NumberRange.new(7)
  1194. q.VelocitySpread = 0
  1195. q.EmissionDirection = "Front"
  1196. q.Lifetime = NumberRange.new(0.1,1)
  1197. q.Texture = 'rbxassetid://164417280'
  1198. q.Acceleration = Vector3.new(0,-50,0)
  1199. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  1200. q.RotSpeed = NumberRange.new(-180, 180)
  1201. q.Rotation = NumberRange.new(-360, 360)
  1202. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1203. coughing = true
  1204. wait(10) --28 is the original but it's too long
  1205. DP:Stop()
  1206. q.Enabled = false
  1207. coughing = false
  1208. SOU:Stop()
  1209. wait(1)
  1210. talking = true
  1211. PRTCL2.Enabled = true
  1212. PRTCL.Enabled = true
  1213. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  1214. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  1215. Head.face.Texture = "rbxassetid://256293532"
  1216. Head.face.Color3 = Color3.new(0,0,0)
  1217. S = Instance.new("Sound")
  1218. S.Parent = Character.Torso
  1219. S.SoundId = "rbxassetid://858697889"
  1220. S.Volume = 10
  1221. S.Looped = false
  1222. S.Pitch = 1
  1223. S:Play()
  1224. wait(2)
  1225. talking = false
  1226. PRTCL2.Enabled = false
  1227. PRTCL.Enabled = false
  1228. q:Destroy()
  1229. transform = true
  1230. end end)
  1231.  
  1232. mouse.KeyDown:connect(function(key)
  1233. if key == "v" and transform == true and PRTCL.Enabled == false and talking == false then
  1234. talking = true
  1235. lit.Brightness = 1
  1236. PRTCL2.Enabled = true
  1237. PRTCL.Enabled = true
  1238. S = Instance.new("Sound")
  1239. S.Parent = Character.Torso
  1240. S.SoundId = "rbxassetid://398631872"
  1241. S.Volume = 10
  1242. S.Looped = false
  1243. S.Pitch = 1
  1244. S.TimePosition = 2
  1245. S:Play()
  1246. wait(14)
  1247. PRTCL2.Enabled = false
  1248. PRTCL.Enabled = false
  1249. lit.Brightness = 0
  1250. talking = false
  1251. end end)
  1252.  
  1253. laughing = false
  1254.  
  1255. mouse.KeyDown:connect(function(key)
  1256. if key == "r" and transform == true and PRTCL.Enabled == false and talking == false then
  1257. talking = true
  1258. lit.Brightness = 1
  1259. PRTCL2.Enabled = true
  1260. PRTCL.Enabled = true
  1261. S = Instance.new("Sound")
  1262. S.Parent = Character.Torso
  1263. S.SoundId = "rbxassetid://177359995"
  1264. S.Volume = 10
  1265. S.Looped = false
  1266. S.Pitch = 1
  1267. S:Play()
  1268. wait(3.35)
  1269. PRTCL2.Enabled = false
  1270. PRTCL.Enabled = false
  1271. lit.Brightness = 0
  1272. talking = false
  1273. end end)
  1274.  
  1275. mouse.KeyDown:connect(function(key)
  1276. if key == "t" and transform == true and PRTCL.Enabled == false and talking == false then
  1277. talking = true
  1278. PRTCL2.Enabled = true
  1279. PRTCL.Enabled = true
  1280. lit.Brightness = 1
  1281. S = Instance.new("Sound")
  1282. S.Parent = Character.Torso
  1283. S.SoundId = "rbxassetid://858697889"
  1284. S.Volume = 10
  1285. S.Looped = false
  1286. S.Pitch = 1
  1287. S:Play()
  1288. wait(3.8)
  1289. PRTCL2.Enabled = false
  1290. PRTCL.Enabled = false
  1291. lit.Brightness = 0
  1292. talking = false
  1293. end end)
  1294.  
  1295. mouse.KeyDown:connect(function(key)
  1296. if key == "y" and transform == true then
  1297. S = Instance.new("Sound")
  1298. S.Parent = Character.Torso
  1299. S.SoundId = "rbxassetid://708003498"
  1300. S.Volume = 10
  1301. S.Looped = false
  1302. S.Pitch = 1
  1303. S:Play()
  1304. end end)
  1305.  
  1306. mouse.KeyDown:connect(function(key)
  1307. if key == "r" and transform == false and talking == false then
  1308. talking = true
  1309. S = Instance.new("Sound")
  1310. S.Parent = Character.Torso
  1311. S.SoundId = "rbxassetid://155074440"
  1312. S.Volume = 10
  1313. S.Looped = false
  1314. S.Pitch = 1
  1315. S.TimePosition = 0.4
  1316. S:Play()
  1317. wait(6)
  1318. talking = false
  1319. end end)
  1320.  
  1321. mouse.KeyDown:connect(function(key)
  1322. if key == "t" and transform == false and talking == false then
  1323. talking = true
  1324. S = Instance.new("Sound")
  1325. S.Parent = Character.Torso
  1326. S.SoundId = "rbxassetid://494478995"
  1327. S.Volume = 10
  1328. S.Looped = false
  1329. S.Pitch = 1
  1330. S:Play()
  1331. wait(5.04)
  1332. talking = false
  1333. end end)
  1334.  
  1335. q1=Instance.new('ParticleEmitter',Head)
  1336. q1.Rate = 500
  1337. q1.Speed = NumberRange.new(7)
  1338. q1.VelocitySpread = 0
  1339. q1.EmissionDirection = "Front"
  1340. q1.Lifetime = NumberRange.new(0.1,1)
  1341. q1.Texture = 'rbxassetid://164417280'
  1342. q1.Acceleration = Vector3.new(0,-50,0)
  1343. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  1344. q1.RotSpeed = NumberRange.new(-180, 180)
  1345. q1.Rotation = NumberRange.new(-360, 360)
  1346. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1347. q1.Enabled = false
  1348.  
  1349. mouse.KeyDown:connect(function(key)
  1350. if key == "f" and transform == true then
  1351. S = Instance.new("Sound")
  1352. S.Parent = Character.Torso
  1353. S.SoundId = "rbxassetid://176850421"
  1354. S.Volume = 10
  1355. S.Looped = false
  1356. S.Pitch = 1
  1357. S:Play()
  1358. end end)
  1359.  
  1360. toggle = false
  1361.  
  1362. mouse.KeyDown:connect(function(key)
  1363. if key == "f" and transform == false and talking == false then
  1364. talking = true
  1365. S = Instance.new("Sound")
  1366. S.Parent = Character.Torso
  1367. S.SoundId = "rbxassetid://1765588386"
  1368. S.Volume = 10
  1369. S.Looped = false
  1370. S.Pitch = 1
  1371. S:Play()
  1372. wait(18.5)
  1373. talking = false
  1374. end end)
  1375.  
  1376. mouse.KeyDown:connect(function(key)
  1377. if key == "j" and transform == false and talking == false then
  1378. talking = true
  1379. S = Instance.new("Sound")
  1380. S.Parent = Character.Torso
  1381. S.SoundId = "rbxassetid://936161138"
  1382. S.Volume = 10
  1383. S.Looped = false
  1384. S.Pitch = 1
  1385. S:Play()
  1386. wait(24.73)
  1387. talking = false
  1388. end end)
  1389.  
  1390. mouse.KeyDown:connect(function(key)
  1391. if key == "k" and transform == false and talking == false then
  1392. talking = true
  1393. S = Instance.new("Sound")
  1394. S.Parent = Character.Torso
  1395. S.SoundId = "rbxassetid://936159847"
  1396. S.Volume = 10
  1397. S.Looped = false
  1398. S.Pitch = 1
  1399. S:Play()
  1400. wait(27.22)
  1401. talking = false
  1402. end end)
  1403.  
  1404. mouse.KeyDown:connect(function(key)
  1405. if key == "l" and transform == false and talking == false then
  1406. talking = true
  1407. S = Instance.new("Sound")
  1408. S.Parent = Character.Torso
  1409. S.SoundId = "rbxassetid://936162120"
  1410. S.Volume = 10
  1411. S.Looped = false
  1412. S.Pitch = 1
  1413. S:Play()
  1414. wait(25.3)
  1415. talking = false
  1416. end end)
  1417.  
  1418. mouse.KeyDown:connect(function(key)
  1419. if transform == true then
  1420.  
  1421.  
  1422. if key == "x" then
  1423. if coughing == false then
  1424. coughing = true
  1425. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  1426. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  1427. q1.Enabled = true
  1428. ZZ = Instance.new("Sound")
  1429. ZZ.Parent = Character.Torso
  1430. ZZ.SoundId = "rbxassetid://244502094"
  1431. ZZ.Volume = 10
  1432. ZZ.Looped = true
  1433. ZZ.Pitch = 1
  1434. ZZ:Play()
  1435. ZZ2 = Instance.new("Sound")
  1436. ZZ2.Parent = Character.Torso
  1437. ZZ2.SoundId = "rbxassetid://300046017"
  1438. ZZ2.Volume = 2
  1439. ZZ2.Looped = true
  1440. ZZ2.Pitch = 1
  1441. ZZ2:Play()
  1442. elseif coughing == true then
  1443. coughing = false
  1444. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  1445. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  1446. ZZ:Destroy()
  1447. ZZ2:Destroy()
  1448. q1.Enabled = false
  1449. end
  1450. end
  1451.  
  1452.  
  1453. end
  1454. end)
  1455.  
  1456. mouse.KeyDown:connect(function(key)
  1457. if key == "m" and talking == false then
  1458. talking = true
  1459. S = Instance.new("Sound")
  1460. S.Parent = Character.Torso
  1461. S.SoundId = "rbxassetid://1766163151"
  1462. S.Volume = 10
  1463. S.Looped = false
  1464. S.Pitch = 1
  1465. S:Play()
  1466. wait(2.38)
  1467. talking = false
  1468. end end)
  1469.  
  1470. mouse.KeyDown:connect(function(key)
  1471. if key == "n" and talking == false then
  1472. talking = true
  1473. S = Instance.new("Sound")
  1474. S.Parent = Character.Torso
  1475. S.SoundId = "rbxassetid://1766162663"
  1476. S.Volume = 10
  1477. S.Looped = false
  1478. S.Pitch = 1
  1479. S:Play()
  1480. wait(4.13)
  1481. talking = false
  1482. end end)
  1483.  
  1484. function findCloseHumanoid(centre, distance)
  1485. local tab = {}
  1486. for _, child in pairs(game.Workspace:GetChildren()) do
  1487. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  1488. local vtors = child.Torso
  1489. local mag = math.abs((vtors.Position - centre).magnitude)
  1490. if distance >= mag then
  1491. table.insert(tab, child.Humanoid)
  1492. end
  1493. end
  1494. end
  1495. return tab
  1496. end
  1497.  
  1498.  
  1499. --The Damage Has Been Deleted!
  1500.  
  1501.  
  1502. Character.Torso.Touched:connect(onTouch)
  1503.  
  1504. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  1505. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1506. end
  1507.  
  1508. function QuaternionFromCFrame(cf)
  1509. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1510. local trace = m00 + m11 + m22
  1511. if trace > 0 then
  1512. local s = math.sqrt(1 + trace)
  1513. local recip = 0.5/s
  1514. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1515. else
  1516. local i = 0
  1517. if m11 > m00 then
  1518. i = 1
  1519. end
  1520. if m22 > (i == 0 and m00 or m11) then
  1521. i = 2
  1522. end
  1523. if i == 0 then
  1524. local s = math.sqrt(m00-m11-m22+1)
  1525. local recip = 0.5/s
  1526. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1527. elseif i == 1 then
  1528. local s = math.sqrt(m11-m22-m00+1)
  1529. local recip = 0.5/s
  1530. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1531. elseif i == 2 then
  1532. local s = math.sqrt(m22-m00-m11+1)
  1533. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1534. end
  1535. end
  1536. end
  1537.  
  1538. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1539. local xs, ys, zs = x + x, y + y, z + z
  1540. local wx, wy, wz = w*xs, w*ys, w*zs
  1541. local xx = x*xs
  1542. local xy = x*ys
  1543. local xz = x*zs
  1544. local yy = y*ys
  1545. local yz = y*zs
  1546. local zz = z*zs
  1547. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1548. end
  1549.  
  1550. function QuaternionSlerp(a, b, t)
  1551. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1552. local startInterp, finishInterp;
  1553. if cosTheta >= 0.0001 then
  1554. if (1 - cosTheta) > 0.0001 then
  1555. local theta = math.acos(cosTheta)
  1556. local invSinTheta = 1/math.sin(theta)
  1557. startInterp = math.sin((1-t)*theta)*invSinTheta
  1558. finishInterp = math.sin(t*theta)*invSinTheta
  1559. else
  1560. startInterp = 1-t
  1561. finishInterp = t
  1562. end
  1563. else
  1564. if (1+cosTheta) > 0.0001 then
  1565. local theta = math.acos(-cosTheta)
  1566. local invSinTheta = 1/math.sin(theta)
  1567. startInterp = math.sin((t-1)*theta)*invSinTheta
  1568. finishInterp = math.sin(t*theta)*invSinTheta
  1569. else
  1570. startInterp = t-1
  1571. finishInterp = t
  1572. end
  1573. end
  1574. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1575. end
  1576.  
  1577. function clerp(a, b, t)
  1578. local qa = {QuaternionFromCFrame(a)}
  1579. local qb = {QuaternionFromCFrame(b)}
  1580. local ax, ay, az = a.x, a.y, a.z
  1581. local bx, by, bz = b.x, b.y, b.z
  1582. local _t = 1-t
  1583. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1584. end
  1585.  
  1586. swait()
  1587. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  1588. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1589. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  1590. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1591. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  1592. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  1593. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  1594. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  1595. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  1596. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  1597. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  1598.  
  1599. for i,v in pairs(Character:GetChildren()) do
  1600. if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
  1601. v:Destroy()
  1602. end
  1603. end
  1604.  
  1605. Head.face.Texture = "rbxassetid://141728515"
  1606. Head.face.Color3 = Color3.new(0,0,0)
  1607.  
  1608. shirt = Instance.new("Shirt",Character)
  1609. pants = Instance.new("Pants",Character)
  1610. wait()
  1611. shirt.ShirtTemplate = "rbxassetid://120471954"
  1612. pants.PantsTemplate = "rbxassetid://120471978"
  1613.  
  1614. Character['Body Colors'].HeadColor=BrickColor.new('Linen')
  1615. Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
  1616. Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
  1617. Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
  1618. Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
  1619. Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
  1620.  
  1621. Humanoid.DisplayDistanceType='None'
  1622.  
  1623. sine = 0
  1624. change = 1
  1625. sprint=false
  1626. local punches={
  1627. a=false,
  1628. b=false,
  1629. c=false
  1630. }
  1631.  
  1632. UIService.InputBegan:connect(function(Input,GUIProcessed)
  1633. if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
  1634. if punches.a==false then
  1635. punches.a=true wait(.4) punches.a=false
  1636. else
  1637. punches.a=true
  1638. print('a ',punches.a)
  1639. if punches.b==false then
  1640. punches.b=true wait(.4) punches.b=false
  1641. else
  1642. punches.b=true
  1643. print('b ',punches.b)
  1644. if punches.c==false then
  1645. punches.c=true wait(.4) punches.c=false
  1646. else
  1647. punches.c=true
  1648. print('c ',punches.c)
  1649. print('a ',punches.a,'b ',punches.b,'c ',punches.c)
  1650. end
  1651. end
  1652. end
  1653. elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
  1654. sprint=true
  1655. end
  1656. end)
  1657.  
  1658. UIService.InputEnded:connect(function(Input,GUIProcessed)
  1659. if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  1660. sprint=false
  1661. end
  1662. end)
  1663.  
  1664. Humanoid.Died:connect(function()
  1665. q.Enabled = true
  1666. S = Instance.new("Sound")
  1667. S.Parent = Character.Torso
  1668. S.SoundId = "rbxassetid://891043624"
  1669. S.Volume = 10
  1670. S.Looped = false
  1671. S.Pitch = 1
  1672. S:Play()
  1673. S = Instance.new("Sound")
  1674. S.Parent = Character.Torso
  1675. S.SoundId = "rbxassetid://429400881"
  1676. S.Volume = 5
  1677. S.Looped = false
  1678. S.Pitch = 1
  1679. S:Play()
  1680. end)
  1681.  
  1682. game:GetService("RunService").RenderStepped:connect(function()
  1683. Angle = (Angle % 100) + angleSpeed/10
  1684. Axis = (Axis % 100) + axisSpeed/10
  1685. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  1686. jumpVel = Torso.Velocity.Y
  1687. sine = change + sine
  1688.  
  1689. if(Humanoid.Jump) and jumpVel > 1 then
  1690. currentAnim = "Jumping"
  1691. elseif walkingMagnitude < 2 then
  1692. currentAnim = "Idling"
  1693. elseif isSprinting == true then
  1694. currentAnim = "Sprinting"
  1695. elseif walkingMagnitude > 2 then
  1696. currentAnim = "Walking"
  1697. elseif isAttacking == true then
  1698. currentAnim = "Attacking"
  1699. end
  1700.  
  1701. if currentAnim == "Jumping" and Animations == false then
  1702. angleSpeed = 2
  1703. axisSpeed = 2
  1704. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1705. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1706. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1707. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1708. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1709. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1710. elseif currentAnim == "Idling" and Animations == false then
  1711. if coughing == false and talking == false then
  1712. angleSpeed = 1
  1713. axisSpeed = 1
  1714. change = 0.5
  1715. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1716. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1717. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1718. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1719. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1720. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1721. elseif coughing == true then
  1722. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, -0.1) * c_angles(math.rad(150), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-55)), 0.15)
  1723. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, -0.1) * c_angles(math.rad(150), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(55)), 0.15)
  1724. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1725. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1726. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1727. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, 0.5) * c_angles(math.rad(45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1728. elseif talking == true and coughing == false then
  1729. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1730. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1731. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1732. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1733. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1734. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1735. end
  1736. elseif currentAnim == "Walking" and Animations == false then
  1737. if sprint==false then
  1738. if coughing == false and talking == false then
  1739. angleSpeed = 1
  1740. axisSpeed = 1
  1741. Humanoid.WalkSpeed = 10
  1742. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  1743. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  1744. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  1745. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1746. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1747. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1748. elseif coughing == true then
  1749. Humanoid.WalkSpeed = 3
  1750. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.6, -0.1) * c_angles(math.rad(90), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-60)), 0.15)
  1751. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.6, -0.1) * c_angles(math.rad(90), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(60)), 0.15)
  1752. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.05)
  1753. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.05)
  1754. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1755. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, -0.5) * c_angles(math.rad(-45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1756. elseif coughing == false and talking == true then
  1757. Humanoid.WalkSpeed = 10
  1758. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  1759. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  1760. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  1761. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1762. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1763. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1764. end
  1765. else
  1766. if coughing == false and talking == false then
  1767. angleSpeed = 10
  1768. axisSpeed = 10
  1769. Humanoid.WalkSpeed = 20
  1770. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  1771. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  1772. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  1773. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  1774. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1775. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1776. elseif coughing == true then
  1777. Humanoid.WalkSpeed = 8
  1778. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, 0) * c_angles(math.rad(-10), -math.sin((rootPart.RotVelocity.X/80))/2, math.sin((rootPart.RotVelocity.Y/2.5))/2), 0.15)
  1779. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.9, -0.1) * c_angles(math.rad(100), math.rad(50), math.rad(50)), 0.15)
  1780. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.1)
  1781. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.1)
  1782. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1783. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, -0.2) * c_angles(math.rad(-30), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1784. elseif coughing == false and talking == true then
  1785. Humanoid.WalkSpeed = 20
  1786. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  1787. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  1788. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  1789. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  1790. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1791. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1792. end
  1793. end
  1794. end
  1795. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement