coolgoldboy166

partyer

Oct 28th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.85 KB | None | 0 0
  1. -- v2.0 Credit To KillerDarkness0105 For Animation Help. ~~Horrible_NightMare~~
  2. --[[
  3. - In This Version:
  4. - Party Text and Extras Added.
  5. - Can now say what personality you want by text.
  6. - roll action implemented.
  7. --]]--
  8.  
  9. --[[
  10. - Bugs you might experience:
  11. - No movement when spawning. (Just reset if this happens)
  12. - Pressing shift while in agile or brave mode resets speed.(not much of a bug but a notice not to do it)
  13. --]]--
  14.  
  15. --[[
  16. - {todo}
  17. - Climb (Getting up walls near edges).
  18. - Aerodynamic controls.
  19. - Wallrun
  20. --]]--
  21.  
  22. print([[DID stands for Dissociative Identity Disorder (Multiple Personality Disorder) which i have
  23. thats why i've made this script.
  24. Its something i've had to deal with practically my whole life its not bad its just its hard to deal with,
  25. noadays people think its weird to have this sort of thing but imo its pretty cool one side of me gets a break
  26. while the other doesn't its pretty obvious im practically some random person you don't know but you see have to
  27. atleast feel some type of way when someone has a disorder plus they are REALLY hard to deal with even so it doesn't matter
  28. i just wanted to give an explantion on why i would act a why and not.
  29. Enjoy the script i guess. Sorry for bad grammar and or spelling]])
  30.  
  31. warn("Say Agile with correct spelling for Agile personality")
  32. warn("Say Brave for Brave personality")
  33. warn("Say Shy for Shy personality")
  34. warn("Find other things by looking into the script")
  35.  
  36.  
  37. function clerp(c1,c2,al)
  38. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  39. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  40. for i,v in pairs(com1) do
  41. com1[i] = v+(com2[i]-v)*al
  42. end
  43. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  44. end
  45.  
  46. local max_sprint_time = 250
  47. local sprint_time = 250
  48. local rolling = false
  49.  
  50. plr = game:service'Players'.LocalPlayer
  51. char = plr.Character
  52. mouse = plr:GetMouse()
  53. humanoid = char:findFirstChild("Humanoid")
  54. torso = char:findFirstChild("Torso")
  55. head = char.Head
  56. ra = char:findFirstChild("Right Arm")
  57. la = char:findFirstChild("Left Arm")
  58. rl = char:findFirstChild("Right Leg")
  59. ll = char:findFirstChild("Left Leg")
  60. rs = torso:findFirstChild("Right Shoulder")
  61. ls = torso:findFirstChild("Left Shoulder")
  62. rh = torso:findFirstChild("Right Hip")
  63. lh = torso:findFirstChild("Left Hip")
  64. neck = torso:findFirstChild("Neck")
  65. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  66. anim = char:findFirstChild("Animate")
  67. rootpart = char:findFirstChild("HumanoidRootPart")
  68. camera = workspace.CurrentCamera
  69. divingnotallowed = false
  70.  
  71. CV="Lime Green"
  72. Player = game.Players.LocalPlayer
  73. Character = Player.Character
  74. local txt = Instance.new("BillboardGui", Character)
  75. txt.Adornee = Character .Head
  76. txt.Name = "_status"
  77. txt.Size = UDim2.new(2, 0, 1.2, 0)
  78. txt.StudsOffset = Vector3.new(-9, 8, 0)
  79. local text = Instance.new("TextLabel", txt)
  80. text.Size = UDim2.new(10, 0, 7, 0)
  81. text.FontSize = "Size24"
  82. text.TextScaled = true
  83. text.TextTransparency = 0
  84. text.BackgroundTransparency = 1
  85. text.TextTransparency = 0
  86. text.TextStrokeTransparency = 0
  87. text.Font = "Highway"
  88. text.TextStrokeColor3 = Color3.new(math.random(),math.random(),math.random())
  89.  
  90. v=Instance.new("Part")
  91. v.Name = "ColorBrick"
  92. v.Parent=Player.Character
  93. v.FormFactor="Symmetric"
  94. v.Anchored=true
  95. v.CanCollide=false
  96. v.BottomSurface="Smooth"
  97. v.TopSurface="Smooth"
  98. v.Size=Vector3.new(10,5,3)
  99. v.Transparency=1
  100. v.CFrame=Character.Torso.CFrame
  101. v.BrickColor=BrickColor.new(CV)
  102. v.Transparency=1
  103. text.TextColor3 = Color3.new(math.random(),math.random(),math.random())
  104. v.Shape="Block"
  105. text.Text = "The Partyer With DID"
  106. -----------------------------------------
  107.  
  108. vt = Vector3.new
  109. bc = BrickColor.new
  110.  
  111. local Effect = Instance.new("Part",game.Lighting)
  112. Effect.BrickColor = bc("Deep orange")
  113. Effect.Transparency = 1
  114. Effect.Anchored = true
  115. Effect.CanCollide = false
  116. Effect.Material = "Neon"
  117. Effect.Shape = "Ball"
  118. Effect.Size = vt(5,5,5)
  119. local fire1 = Instance.new("Fire",Effect)
  120. fire1.Name = "Fire"
  121. fire1.Heat = 0
  122. fire1.Size = 30
  123. fire1.SecondaryColor = bc("Really black").Color
  124. fire1.Color = bc("Deep orange").Color
  125. local fire2 = Instance.new("Fire",Effect)
  126. fire2.Name = "Fire2"
  127. fire2.Heat = 0
  128. fire2.Size = 25
  129. fire2.SecondaryColor = bc("Really black").Color
  130. fire2.Color = bc("Neon orange").Color
  131.  
  132. function Explode(rad,par)
  133. local expart = Instance.new("Part",script.Parent)
  134. local expart2 = Instance.new("Part",script.Parent)
  135. local snd = Instance.new("Sound",expart)
  136. snd.SoundId = "rbxassetid://258057783"
  137. snd.Volume = 2.5
  138. local partMesh = Instance.new("SpecialMesh",expart)
  139. partMesh.MeshType = "Sphere"
  140. local partMesh2 = Instance.new("SpecialMesh",expart2)
  141. partMesh2.MeshType = "Sphere"
  142. local expld = Instance.new("Explosion", script.Parent)
  143. expld.BlastRadius = rad
  144. expld.Position = par.Position
  145. partMesh.Scale = vt(rad,rad,rad)
  146. expart.Size = vt(1,1,1)*1.5
  147. expart.Transparency = 0.5
  148. expart.Anchored = true
  149. expart.Material = "Neon"
  150. expart.BrickColor = bc("Deep orange")
  151. expart.CFrame = par.CFrame
  152. partMesh2.Scale = vt(rad,rad,rad)
  153. expart2.Size = vt(1.15,1.15,1.15)*1.5
  154. expart2.Transparency = 0.5
  155. expart2.Anchored = true
  156. expart2.Material = "Neon"
  157. expart2.BrickColor = bc("Bright orange")
  158. expart2.CFrame = par.CFrame
  159. snd:Play()
  160. for i = 0, 100 do
  161. expart.Transparency = expart.Transparency + 0.005
  162. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  163. expart.CFrame = expart.CFrame
  164. expart2.Transparency = expart.Transparency + 0.005
  165. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  166. expart2.CFrame = expart.CFrame
  167. wait(0)
  168. end
  169. snd.Parent = nil
  170. expart.Parent = nil
  171. expart2.Parent = nil
  172. expld.Parent = nil
  173. end
  174.  
  175. function Explode2(rad,par)
  176. local expart = Instance.new("Part",script.Parent)
  177. local expart2 = Instance.new("Part",script.Parent)
  178. local snd = Instance.new("Sound",expart)
  179. snd.SoundId = "rbxassetid://165969964"
  180. snd.Volume = 3
  181. local partMesh = Instance.new("SpecialMesh",expart)
  182. partMesh.MeshType = "Sphere"
  183. local partMesh2 = Instance.new("SpecialMesh",expart2)
  184. partMesh2.MeshType = "Sphere"
  185. local expld = Instance.new("Explosion", script.Parent)
  186. expld.BlastRadius = rad
  187. expld.Position = par.Position
  188. partMesh.Scale = vt(rad,rad,rad)
  189. expart.Size = vt(1,1,1)*1.5
  190. expart.Transparency = 0.5
  191. expart.Anchored = true
  192. expart.Material = "Neon"
  193. expart.BrickColor = bc("Deep orange")
  194. expart.CFrame = par.CFrame
  195. partMesh2.Scale = vt(rad,rad,rad)
  196. expart2.Size = vt(1.15,1.15,1.15)*1.5
  197. expart2.Transparency = 0.5
  198. expart2.Anchored = true
  199. expart2.Material = "Neon"
  200. expart2.BrickColor = bc("Bright orange")
  201. expart2.CFrame = par.CFrame
  202. snd:Play()
  203. for i = 0, 100 do
  204. expart.Transparency = expart.Transparency + 0.005
  205. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  206. expart.CFrame = expart.CFrame
  207. expart2.Transparency = expart.Transparency + 0.005
  208. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  209. expart2.CFrame = expart.CFrame
  210. wait(0)
  211. end
  212. snd.Parent = nil
  213. expart.Parent = nil
  214. expart2.Parent = nil
  215. expld.Parent = nil
  216. end
  217.  
  218.  
  219.  
  220. mouse.KeyDown:connect(function(k)
  221.  
  222. k = k:lower()
  223. if k == "e" then
  224. local spart = Effect:Clone()
  225. spart.Parent = game.Players.LocalPlayer.Character
  226. spart.Transparency = 0
  227. spart.Anchored = false
  228. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0
  229. spart.Position = spart.Position + vt(0,100,0)
  230. spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150
  231. wait(1)
  232. spart.Transparency = 1
  233. spart.Fire2:Destroy()
  234. spart.Fire:Destroy()
  235. Explode2(75,spart)
  236. spart:Destroy()
  237. end
  238. end)
  239.  
  240.  
  241. Parts={}
  242. function GetDiscoColor(hue)
  243. local section = hue % 1 * 3
  244. local secondary = 0.5 * math.pi * (section % 1)
  245. if section < 1 then
  246. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  247. elseif section < 2 then
  248. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  249. else
  250. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  251. end
  252. end
  253. Part = function(x,y,z,color,tr,cc,an,parent)
  254. local p = Instance.new('Part',parent or Weapon)
  255. p.formFactor = 'Custom'
  256. p.Size = Vector3.new(x,y,z)
  257. p.BrickColor = BrickColor.new(color)
  258. p.CanCollide = cc
  259. p.Transparency = tr
  260. p.Anchored = an
  261. p.TopSurface,p.BottomSurface = 0,0
  262. p:BreakJoints''
  263. table.insert(Parts,p)
  264. return p
  265. end
  266. Weld = function(p0,p1)
  267. local w = Instance.new('Motor',p0)
  268. w.Part0 = p0
  269. w.Part1 = p1
  270. return w
  271. end
  272. Mesh = function(par,num,x,y,z)
  273. local msh = 0
  274. if num == 1 then
  275. msh = Instance.new("SpecialMesh",par)
  276. msh.MeshId='rbxasset://fonts/torso.mesh'
  277. msh.TextureId='rbxasset://25701026'
  278. end
  279. if num == 2 then
  280. msh = Instance.new("SpecialMesh",par)
  281. msh.MeshId='rbxasset://fonts/head.mesh'
  282. msh.TextureId='rbxassetid://25701026'
  283. end
  284. msh.Scale = Vector3.new(x,y,z)
  285. return msh
  286. end
  287. plr=game.Players.LocalPlayer
  288. char=plr.Character
  289. for _,v in pairs(char:GetChildren()) do
  290. if v.ClassName=="Part" then
  291. v.Transparency=1
  292. elseif v.ClassName=="Hat" then
  293. v.Handle.Mesh.TextureId='rbxassetid://25701026'
  294. table.insert(Parts,v.Handle)
  295. end
  296. end
  297. t=Part(1,1,1,'',0,false,false,char)
  298. Mesh(t,1,1,1,1)
  299. Weld(char.Torso,t)
  300. a=Part(1,1,1,'',0,false,false,char)
  301. Mesh(a,1,.5,1,1)
  302. Weld(char['Right Arm'],a)
  303. a=Part(1,1,1,'',0,false,false,char)
  304. Mesh(a,1,.5,1,1)
  305. Weld(char['Left Arm'],a)
  306. l=Part(1,1,1,'',0,false,false,char)
  307. Mesh(l,1,.5,1,1)
  308. Weld(char['Right Leg'],l)
  309. l=Part(1,1,1,'',0,false,false,char)
  310. Mesh(l,1,.5,1,1)
  311. Weld(char['Left Leg'],l)
  312. h=Part(1,1,1,'',0,false,false,char)
  313. Mesh(h,2,1,1,1)
  314. Weld(char.Head,h)
  315. spawn(function()
  316. while(coroutine.yield())do
  317. for i=1,#Parts do
  318. Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe
  319. end
  320. end;
  321. end);
  322.  
  323.  
  324.  
  325. do --Gui
  326. plrgui = game:service'Players'.LocalPlayer:findFirstChild("PlayerGui")
  327. function cmsg(text)
  328. coroutine.wrap(function()
  329. if plrgui then
  330. local gui = Instance.new("ScreenGui", plrgui)
  331. local label = Instance.new("TextLabel", gui)
  332. label.Text = tostring(text)
  333. label.BackgroundTransparency = 1
  334. label.FontSize = "Size24"
  335. label.Size = UDim2.new(1, 0, 0.5, 0)
  336. label.Position = UDim2.new(0, 0, 0.5, 0)
  337. label.TextColor3 = Color3.new(1,1,1)
  338. label.TextStrokeTransparency = 0.75
  339. for i = 1, 0, -0.25 do
  340. label.TextTransparency = i
  341. wait()
  342. end
  343. game:service'Debris':AddItem(gui, 2)
  344. end
  345. end)()
  346. end
  347.  
  348. local statusgui = Instance.new("ScreenGui", plrgui)
  349. local frame = Instance.new("Frame", statusgui)
  350. frame.Size = UDim2.new(.55, 0, 0, 40)
  351. frame.Position = UDim2.new(.225, 0, .84, 0)
  352. frame.BackgroundColor3 = Color3.new()
  353. frame.BorderSizePixel = 0
  354. frame.BackgroundTransparency = 0.25
  355. frame.Style = 2
  356. local frame2 = Instance.new("Frame", frame)
  357. frame2.Size = UDim2.new(.45, 0, 0, 10)
  358. frame2.Position = UDim2.new(.025, 0, 0, 15)
  359. frame2.BackgroundColor3 = Color3.new(1,1,1)
  360. frame2.BorderSizePixel = 0
  361. frame2.ZIndex = 2
  362. frame2.ClipsDescendants = true
  363. game:service'RunService'.Stepped:connect(function()
  364. frame2.Size = UDim2.new(.45*humanoid.Health/humanoid.MaxHealth, 0, 0, 10)
  365. end)
  366. local frame2_1 = Instance.new("Frame", frame)
  367. frame2_1.Size = UDim2.new(.45, 0, 0, 10)
  368. frame2_1.Position = UDim2.new(.025, 0, 0, 15)
  369. frame2_1.BackgroundColor3 = Color3.new(.5,.5,.5)
  370. frame2_1.BorderSizePixel = 0
  371. local frame2_2 = Instance.new("TextLabel", frame)
  372. frame2_2.Size = UDim2.new(.45, 0, 0, 15)
  373. frame2_2.Position = UDim2.new(.025, 0, 0, 0)
  374. frame2_2.ZIndex = 2
  375. frame2_2.BackgroundTransparency = 1
  376. frame2_2.Text = "Health"
  377. frame2_2.Font = "SourceSansBold"
  378. frame2_2.TextXAlignment = "Left"
  379. frame2_2.TextScaled = true
  380. frame2_2.TextColor3 = Color3.new(1,1,1)
  381. local frame3 = Instance.new("Frame", frame)
  382. frame3.Size = UDim2.new(.45, 0, 0, 10)
  383. game:service'RunService'.Stepped:connect(function()
  384. frame3.Size = UDim2.new(.45*sprint_time/250, 0, 0, 10)
  385. end)
  386. frame3.Position = UDim2.new(.525, 0, 0, 15)
  387. frame3.BackgroundColor3 = Color3.new(1,1,1)
  388. frame3.BorderSizePixel = 0
  389. frame3.ZIndex = 2
  390. local frame3_1 = Instance.new("Frame", frame)
  391. frame3_1.Size = UDim2.new(.45, 0, 0, 10)
  392. frame3_1.Position = UDim2.new(.525, 0, 0, 15)
  393. frame3_1.BackgroundColor3 = Color3.new(.5,.5,.5)
  394. frame3_1.BorderSizePixel = 0
  395. local frame3_2 = Instance.new("TextLabel", frame)
  396. frame3_2.Size = UDim2.new(.45, 0, 0, 15)
  397. frame3_2.Position = UDim2.new(.525, 0, 0, 0)
  398. frame3_2.ZIndex = 2
  399. frame3_2.BackgroundTransparency = 1
  400. frame3_2.Text = "Stamina"
  401. frame3_2.Font = "SourceSansBold"
  402. frame3_2.TextXAlignment = "Left"
  403. frame3_2.TextScaled = true
  404. frame3_2.TextColor3 = Color3.new(1,1,1)
  405.  
  406. game:service'StarterGui':SetCoreGuiEnabled(1, false)
  407. end
  408. do --the animating
  409. if anim then
  410. anim:Destroy()
  411. end
  412.  
  413.  
  414.  
  415. local rm = Instance.new("Motor", torso)
  416. rm.C0 = CFrame.new(1.5, 0.5, 0)
  417. rm.C1 = CFrame.new(0, 0.5, 0)
  418. rm.Part0 = torso
  419. rm.Part1 = ra
  420. rm.Name = "Right Shoulder"
  421. local lm = Instance.new("Motor", torso)
  422. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  423. lm.C1 = CFrame.new(0, 0.5, 0)
  424. lm.Part0 = torso
  425. lm.Part1 = la
  426. lm.Name = "Left Shoulder"
  427.  
  428. local rlegm = Instance.new("Motor", torso)
  429. rlegm.C0 = CFrame.new(0.5, -1, 0)
  430. rlegm.C1 = CFrame.new(0, 1, 0)
  431. rlegm.Part0 = torso
  432. rlegm.Part1 = rl
  433. rlegm.Name = "Right Hip"
  434. local llegm = Instance.new("Motor", torso)
  435. llegm.C0 = CFrame.new(-0.5, -1, 0)
  436. llegm.C1 = CFrame.new(0, 1, 0)
  437. llegm.Part0 = torso
  438. llegm.Part1 = ll
  439. llegm.Name = "Left Hip"
  440.  
  441. neck.C0 = CFrame.new(0, 1, 0)
  442. neck.C1 = CFrame.new(0, -0.5, 0)
  443.  
  444.  
  445. rj.C0 = CFrame.new(0, -1, 0)
  446. rj.C1 = CFrame.new(0, -1, 0)
  447.  
  448. local speed = 0.3
  449. local angle = 0
  450. local sitting = false
  451. local anglespeed = 1
  452. local action = "None"
  453. local lastaction = "None"
  454. local jumptime = 0
  455. rsc0 = rm.C0
  456. lsc0 = lm.C0
  457. llc0 = llegm.C0
  458. rlc0 = rlegm.C0
  459. neckc0 = neck.C0
  460. rootc0 = rj.C0
  461.  
  462. Personality = "None"
  463. --[[
  464. Brave,Shy,Agile
  465. ]]
  466.  
  467.  
  468.  
  469.  
  470. BodyVelo = Instance.new("BodyVelocity", nil)
  471. BodyVelo.maxForce = Vector3.new(1,1,1)*math.huge
  472. BodyGyro = Instance.new("BodyGyro", nil)
  473. BodyGyro.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  474.  
  475.  
  476. ControllerService = game:GetService("ControllerService")
  477. Controllers = ControllerService:GetChildren()[1]
  478.  
  479.  
  480.  
  481. humanoid.Swimming:connect(function(speed)
  482. if speed > 0 then
  483. action = "Swimming"
  484. BodyGyro.Parent = torso
  485. else
  486. action = "None"
  487. end
  488. end)
  489.  
  490. humanoid.Climbing:connect(function(speed)
  491. if speed > 4 then
  492. action = "Climbing"
  493. BodyGyro.Parent = torso
  494. BodyGyro.maxTorque = Vector3.new(0, 4e+005, 0)*math.huge
  495. humanoid.WalkSpeed = 8
  496. else
  497. BodyGyro.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  498. humanoid.WalkSpeed = 16
  499. action = "None"
  500. end
  501. end)
  502. humanoid.Changed:connect(function()
  503. if action ~= "None" or ctrl then
  504. humanoid.Jump = false
  505. end
  506. end)
  507.  
  508. local sprinting = false
  509. local jump2 = false
  510. lastjump = 0
  511. thisjumpused = false
  512.  
  513. mouse.KeyDown:connect(function(k)
  514. if died then return end
  515. if string.byte(k) == 48 then
  516. if ctrl then return end
  517. if sprint_time <= 30 then return end
  518. if action == "Sliding" then return end
  519. humanoid.WalkSpeed = 28
  520. sprinting = true
  521. for camerazoom = camera.FieldOfView, 75, 1 do
  522. camera.FieldOfView = camerazoom
  523. wait()
  524. end
  525. camera.FieldOfView = 75
  526. end
  527. if string.byte(k) == 52 then
  528. if action == "None" then
  529. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  530. action = "Sliding"
  531. end
  532. end
  533. end
  534. if string.byte(k) == 32 then
  535. if divingnotallowed then return end
  536. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  537. if not thisjumpused then
  538. lastjump = tick()
  539. thisjumpused = true
  540. else
  541. if (tick()-lastjump) < .5 then
  542. action = "Diving"
  543. diving = true
  544. end
  545. lastjump = 0
  546. thisjumpused = false
  547. end
  548. end
  549. end
  550. if string.byte(k) == 50 then
  551. ctrl = not ctrl
  552. if ctrl then
  553. humanoid.WalkSpeed = 8
  554. else
  555. humanoid.WalkSpeed = 16
  556. end
  557. end
  558. end)
  559.  
  560.  
  561. mouse.KeyUp:connect(function(k)
  562. if died then return end
  563. if string.byte(k) == 52 then
  564. action = "None"
  565. Controllers.Parent = ControllerService
  566. if ctrl then
  567. humanoid.WalkSpeed = 8
  568. else
  569. humanoid.WalkSpeed = 16
  570. end
  571. if sprinting then
  572. humanoid.WalkSpeed = 28
  573. end
  574. end
  575. if string.byte(k) == 48 then
  576. if ctrl then return end
  577. if action == "Sliding" then return end
  578. if action == "Jumping" then
  579. repeat wait() until rayHit == true
  580. end
  581. sprinting = false
  582. humanoid.WalkSpeed = 16
  583. for camerazoom = camera.FieldOfView, 70, -1 do
  584. camera.FieldOfView = camerazoom
  585. wait()
  586. end
  587. camera.FieldOfView = 70
  588. end
  589. end)
  590.  
  591. game:service'RunService'.Stepped:connect(function()
  592. if ctrl or action == "Sliding" then
  593. rootpart.CanCollide = false
  594. end
  595. end)
  596.  
  597. function Ragdoll()
  598. died = true
  599. wait(1/60)
  600. if torso then
  601. torso.CFrame = torso.CFrame * CFrame.new(0, 5, 0)
  602. local Head = char:FindFirstChild("Head")
  603. if Head then
  604. local Neck = Instance.new("Weld")
  605. Neck.Name = "Neck"
  606. Neck.Part0 = torso
  607. Neck.Part1 = Head
  608. Neck.C0 = CFrame.new(0, 1.5, 0)
  609. Neck.C1 = CFrame.new()
  610. Neck.Parent = torso
  611. end
  612. local Limb = char:FindFirstChild("Right Arm")
  613. if Limb then
  614.  
  615. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  616. local Joint = Instance.new("Glue")
  617. Joint.Name = "RightShoulder"
  618. Joint.Part0 = torso
  619. Joint.Part1 = Limb
  620. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  621. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  622. Joint.Parent = torso
  623.  
  624. local B = Instance.new("Part")
  625. B.TopSurface = 0
  626. B.BottomSurface = 0
  627. B.formFactor = "Symmetric"
  628. B.Size = Vector3.new(1, 1, 1)
  629. B.Transparency = 1
  630. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  631. B.Parent = char
  632. B.CanCollide = false
  633. local W = Instance.new("Weld")
  634. W.Part0 = Limb
  635. W.Part1 = B
  636. W.C0 = CFrame.new(0, -0.5, 0)
  637. W.Parent = Limb
  638.  
  639. end
  640. local Limb = char:FindFirstChild("Left Arm")
  641. if Limb then
  642.  
  643. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  644. local Joint = Instance.new("Glue")
  645. Joint.Name = "LeftShoulder"
  646. Joint.Part0 = torso
  647. Joint.Part1 = Limb
  648. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  649. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  650. Joint.Parent = torso
  651.  
  652. local B = Instance.new("Part")
  653. B.TopSurface = 0
  654. B.BottomSurface = 0
  655. B.formFactor = "Symmetric"
  656. B.Size = Vector3.new(1, 1, 1)
  657. B.Transparency = 1
  658. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  659. B.Parent = char
  660. B.CanCollide = false
  661. local W = Instance.new("Weld")
  662. W.Part0 = Limb
  663. W.Part1 = B
  664. W.C0 = CFrame.new(0, -0.5, 0)
  665. W.Parent = Limb
  666.  
  667. end
  668. local Limb = char:FindFirstChild("Right Leg")
  669. if Limb then
  670.  
  671. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  672. local Joint = Instance.new("Glue")
  673. Joint.Name = "RightHip"
  674. Joint.Part0 = torso
  675. Joint.Part1 = Limb
  676. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  677. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  678. Joint.Parent = torso
  679.  
  680. local B = Instance.new("Part")
  681. B.TopSurface = 0
  682. B.BottomSurface = 0
  683. B.formFactor = "Symmetric"
  684. B.Size = Vector3.new(1, 1, 1)
  685. B.Transparency = 1
  686. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  687. B.Parent = char
  688. B.CanCollide = false
  689. local W = Instance.new("Weld")
  690. W.Part0 = Limb
  691. W.Part1 = B
  692. W.C0 = CFrame.new(0, -0.5, 0)
  693. W.Parent = Limb
  694.  
  695. end
  696. local Limb = char:FindFirstChild("Left Leg")
  697. if Limb then
  698.  
  699. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  700. local Joint = Instance.new("Glue")
  701. Joint.Name = "LeftHip"
  702. Joint.Part0 = torso
  703. Joint.Part1 = Limb
  704. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  705. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  706. Joint.Parent = torso
  707.  
  708. local B = Instance.new("Part")
  709. B.TopSurface = 0
  710. B.BottomSurface = 0
  711. B.formFactor = "Symmetric"
  712. B.Size = Vector3.new(1, 1, 1)
  713. B.Transparency = 1
  714. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  715. B.Parent = char
  716. B.CanCollide = false
  717. local W = Instance.new("Weld")
  718. W.Part0 = Limb
  719. W.Part1 = B
  720. W.C0 = CFrame.new(0, -0.5, 0)
  721. W.Parent = Limb
  722. end
  723. rm:Destroy()
  724. lm:Destroy()
  725. llegm:Destroy()
  726. rlegm:Destroy()
  727. end
  728. end
  729.  
  730.  
  731. music = Instance.new("Sound",torso)
  732. music.Volume = 50
  733. music.Looped = true
  734. music.SoundId = "http://www.roblox.com/asset/?id=293965978"
  735.  
  736. music2 = Instance.new("Sound",torso)
  737. music2.Volume = 50
  738. music2.Looped = true
  739. music2.SoundId = "http://www.roblox.com/asset/?id=414264200"
  740.  
  741. music3 = Instance.new("Sound",torso)
  742. music3.Volume = 50
  743. music3.Looped = true
  744. music3.SoundId = "http://www.roblox.com/asset/?id=289006549"
  745.  
  746. music4 = Instance.new("Sound",torso)
  747. music4.Volume = 50
  748. music4.Looped = true
  749. music4.SoundId = "http://www.roblox.com/asset/?id=225970267"
  750.  
  751. music5 = Instance.new("Sound",torso)
  752. music5.Volume = 50
  753. music5.Looped = true
  754. music5.SoundId = "http://www.roblox.com/asset/?id=536915629"
  755.  
  756. Enraged = Instance.new("Sound",torso)
  757. Enraged.Volume = 50
  758. Enraged.Looped = true
  759. Enraged.SoundId = "http://www.roblox.com/asset/?id=269426237"
  760.  
  761.  
  762. local plr = game.Players.LocalPlayer
  763. local chr = plr.Character
  764. local mouse = plr:GetMouse()
  765.  
  766.  
  767. local chara = Player.Character
  768. local hand1 = Instance.new("Part",Character)
  769. hand1.Name = "Hand1"
  770. hand1.Size = Vector3.new(.8,.8,.8)
  771. hand1.Transparency = 1
  772. hand1.Position = chara["Left Arm"].Position
  773. local hand1weld = Instance.new("Weld",hand1)
  774. hand1weld.Part0 = chara["Left Arm"]
  775. hand1weld.Part1 = hand1
  776. hand1weld.C0 = CFrame.new(0,-1,0)
  777. local hand2 = hand1:Clone()
  778. hand2.Name = "Hand2"
  779. hand2.Parent = chara
  780. hand2.Position = chara["Right Arm"].Position
  781. local hand2weld = Instance.new("Weld",hand2)
  782. hand2weld.Part0 = chara["Right Arm"]
  783. hand2weld.Part1 = hand2
  784. hand2weld.C0 = CFrame.new(0,-1,0)
  785.  
  786.  
  787.  
  788. color3colour = {BrickColor.new("Really red").Color,BrickColor.new("Neon orange").Color,BrickColor.new("New yeller").Color,BrickColor.new("Lime green").Color,BrickColor.new("Really blue").Color,BrickColor.new("Alder").Color}
  789. breekcolour = {BrickColor.new("Really red"),BrickColor.new("Neon orange"),BrickColor.new("New yeller"),BrickColor.new("Lime green"),BrickColor.new("Really blue"),BrickColor.new("Alder")}
  790. firecolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.05,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.1,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.15,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(.25,BrickColor.new("Alder").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  791. barcolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.4,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.6,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.8,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  792. normallife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}
  793. extendlife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)}
  794. function createrainbow(color,part,texture,size,trans,life,face,speed,accel,velsp,lock,name)
  795. local fira = Instance.new("ParticleEmitter",part)
  796. fira.Name = name
  797. fira.Color = ColorSequence.new(color)
  798. fira.Size = size
  799. fira.Texture = texture
  800. fira.Transparency = trans
  801. fira.Lifetime = life
  802. fira.EmissionDirection = face
  803. fira.Rate = 100000000
  804. fira.RotSpeed = NumberRange.new(100)
  805. fira.Speed = speed
  806. fira.VelocitySpread = velsp
  807. fira.Acceleration = accel
  808. fira.LightEmission = 1
  809. fira.LockedToPart = lock
  810. end
  811. handfire1 = createrainbow(firecolour,hand1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  812. handfire2 = createrainbow(firecolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Right",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  813. createrainbow(barcolour,orbuur,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.8,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Front",NumberRange.new(0),Vector3.new(0,0,0),0,false,"OrbEffect")
  814. local spelleffect = Instance.new("ParticleEmitter",Character.Torso)
  815. spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454"
  816. spelleffect.Speed = NumberRange.new(0)
  817. spelleffect.LightEmission = 1
  818. spelleffect.Transparency = NumberSequence.new(normallife)
  819. spelleffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)})
  820. spelleffect.Rate = 0.001
  821. spelleffect.Rotation = NumberRange.new(0,359)
  822. spelleffect.RotSpeed = NumberRange.new(100)
  823. spelleffect.Lifetime = NumberRange.new(1)
  824. createrainbow(barcolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,true,"PowerEffect")
  825. powereffect = hand2.PowerEffect
  826. powereffect.Enabled = false
  827.  
  828.  
  829.  
  830.  
  831.  
  832. Void = nil
  833. VoidParts = {}
  834. Equipped = false
  835. Counter = 1
  836.  
  837. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  838. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  839. end
  840.  
  841. Player = Player
  842. Character = chara
  843.  
  844. Humanoid = Character:FindFirstChild("Humanoid")
  845. Torso = Character:FindFirstChild("Torso")
  846. if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then
  847. return
  848. end
  849. Equipped = true
  850. Void = Instance.new("Model")
  851. Void.Name = "Void"
  852. Angle = 0
  853. for i = 1, 1 do
  854. local VoidPart = Instance.new("Part")
  855. VoidPart.Name = "VoidPart"
  856. VoidPart.Transparency = 1
  857. VoidPart.BrickColor = BrickColor.new("Really black")
  858. VoidPart.Material = Enum.Material.Plastic
  859. VoidPart.Shape = Enum.PartType.Block
  860. VoidPart.FormFactor = Enum.FormFactor.Custom
  861. VoidPart.TopSurface = Enum.SurfaceType.Smooth
  862. VoidPart.BottomSurface = Enum.SurfaceType.Smooth
  863. VoidPart.Anchored = true
  864. VoidPart.CanCollide = false
  865. VoidPart.Locked = true
  866. VoidPart.Size = Vector3.new(10, 0.2, 10)
  867. fiyer = createrainbow(firecolour,VoidPart,"http://www.roblox.com/asset/?id=224413104",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.99,0),NumberSequenceKeypoint.new(1,1)}),NumberRange.new(10),"Top",NumberRange.new(2),Vector3.new(0,2,0),0,false,"FireEffect")
  868. VoidPart.FireEffect.Rate = 10
  869. local BlockMesh = Instance.new("BlockMesh")
  870. BlockMesh.Scale = Vector3.new(1.5,1,1.5)
  871. BlockMesh.Parent = VoidPart
  872. VoidPart.Parent = Void
  873. local Star = Instance.new("Decal", VoidPart)
  874. Star.Texture = "http://www.roblox.com/asset/?id=131735627"
  875. Star.Face = "Top"
  876. local Light = Instance.new("PointLight", VoidPart)
  877. Light.Color = Color3.new(1,1,1)
  878. Light.Brightness = 100
  879. Light.Range = 10
  880. table.insert(VoidParts, VoidPart)
  881. end
  882. spawn(function()
  883. while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do
  884. if Angle == 360 then
  885. Angle = 0
  886. end
  887. Angle = Angle + .05
  888. Counter = Counter + 1
  889. if Counter == 7 then
  890. Counter = 1
  891. end
  892. Void.VoidPart.Decal.Color3 = color3colour[Counter]
  893. Void.VoidPart.PointLight.Color = color3colour[Counter]
  894. local parentPos = chara.Torso.CFrame
  895. local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), (chara.Torso.Size.Y * 6.5), {Character})
  896. if Hit then
  897. if not Void.Parent then
  898. Void.Parent = Character
  899. end
  900. for i, v in pairs(VoidParts) do
  901. v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  902. end
  903. else
  904. Void.Parent = nil
  905. end
  906. wait()
  907. end
  908. end)
  909.  
  910.  
  911. dabbing=Instance.new('Sound', plr.Character.Torso)
  912. dabbing.Volume = 5
  913. dabbing.Pitch = 0.7
  914. dabbing.SoundId = 'rbxassetid://437235476'
  915.  
  916. function stopAnimations()
  917. for _,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  918. v:Stop()
  919. end
  920. end
  921. plr.Chatted:connect(function(msg)
  922. if action == "None" then
  923. if msg == "Agile" then
  924. Personality = "Agile"
  925. music:Play()
  926. music2:Stop()
  927. music3:Stop()
  928. music4:Stop()
  929. music5:Stop()
  930. max_sprint_time = 500
  931. sprint_time = 500
  932. humanoid.WalkSpeed = 100
  933. humanoid.JumpPower = 50
  934. end
  935. if msg == "roll" then
  936. action = "Rolling"
  937. end
  938. if msg == "Brave" then
  939. Personality = "Brave"
  940. music2:Play()
  941. music:Stop()
  942. music3:Stop()
  943. music4:Stop()
  944. music5:Stop()
  945. max_sprint_time = math.huge
  946. sprint_time = math.huge
  947. humanoid.JumpPower = 150
  948. humanoid.WalkSpeed = 100
  949. end
  950. if msg == "ff" then
  951. ff.Visible = true
  952. end
  953. if msg == "Shy" then
  954. Personality = "Shy"
  955. music3:Play()
  956. music2:Stop()
  957. music:Stop()
  958. music4:Stop()
  959. music5:Stop()
  960. max_sprint_time = 250
  961. sprint_time = 250
  962. humanoid.JumpPower = 150
  963. humanoid.WalkSpeed = 16
  964. end
  965. if msg == "/e hushchild" or msg == "/emote hushchild" then
  966. action = "Dancing"
  967. end
  968. if msg == "dance" or msg == "/emote dance" then
  969. action = "Dancing2"
  970. music4:Play()
  971. music3:Stop()
  972. music2:Stop()
  973. music:Stop()
  974. music5:Stop()
  975. end
  976. if msg == "dance2" or msg == "/emote dance2" then
  977. action = "Dancing3"
  978. music5:Play()
  979. music4:Stop()
  980. music3:Stop()
  981. music2:Stop()
  982. music:Stop()
  983. end
  984. end
  985. if msg == "ragdoll/" then
  986. Ragdoll()
  987. end
  988. end)
  989.  
  990.  
  991. ff = Instance.new("ForceField",char)
  992. ff.Visible = false
  993.  
  994. if Humanoid.Health <=50 then
  995. music5:Stop()
  996. music4:Stop()
  997. music3:Stop()
  998. music2:Stop()
  999. music:Stop()
  1000. Enraged:Play()
  1001. humanoid.WalkSpeed = 500
  1002. text.text = "Enraged"
  1003. end
  1004.  
  1005. humanoid.Jumping:connect(function()
  1006. if died then return end
  1007. if action == "Diving" or diving then return end
  1008. action = "Jumping"
  1009. Controllers.Parent = nil
  1010. end)
  1011.  
  1012. humanoid.Died:connect(function()
  1013. died = true
  1014. deathpos = torso.Position
  1015. WorkModel = Instance.new("Model", workspace)
  1016. WorkModel.Name = " "
  1017. wait(1/60)
  1018. humanoid.Parent = nil
  1019. if torso then
  1020. local Head = char:FindFirstChild("Head")
  1021. if Head then
  1022. local Neck = Instance.new("Weld")
  1023. Neck.Name = "Neck"
  1024. Neck.Part0 = torso
  1025. Neck.Part1 = Head
  1026. Neck.C0 = CFrame.new(0, 1.5, 0)
  1027. Neck.C1 = CFrame.new()
  1028. Neck.Parent = torso
  1029. end
  1030. local Limb = char:FindFirstChild("Right Arm")
  1031. if Limb then
  1032.  
  1033. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  1034. local Joint = Instance.new("Glue")
  1035. Joint.Name = "RightShoulder"
  1036. Joint.Part0 = torso
  1037. Joint.Part1 = Limb
  1038. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1039. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1040. Joint.Parent = torso
  1041.  
  1042. local B = Instance.new("Part")
  1043. B.TopSurface = 0
  1044. B.BottomSurface = 0
  1045. B.formFactor = "Symmetric"
  1046. B.Size = Vector3.new(1, 1, 1)
  1047. B.Transparency = 1
  1048. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1049. B.Parent = char
  1050. B.CanCollide = false
  1051. local W = Instance.new("Weld")
  1052. W.Part0 = Limb
  1053. W.Part1 = B
  1054. W.C0 = CFrame.new(0, -0.5, 0)
  1055. W.Parent = Limb
  1056.  
  1057. end
  1058. local Limb = char:FindFirstChild("Left Arm")
  1059. if Limb then
  1060.  
  1061. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  1062. local Joint = Instance.new("Glue")
  1063. Joint.Name = "LeftShoulder"
  1064. Joint.Part0 = torso
  1065. Joint.Part1 = Limb
  1066. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1067. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1068. Joint.Parent = torso
  1069.  
  1070. local B = Instance.new("Part")
  1071. B.TopSurface = 0
  1072. B.BottomSurface = 0
  1073. B.formFactor = "Symmetric"
  1074. B.Size = Vector3.new(1, 1, 1)
  1075. B.Transparency = 1
  1076. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1077. B.Parent = char
  1078. B.CanCollide = false
  1079. local W = Instance.new("Weld")
  1080. W.Part0 = Limb
  1081. W.Part1 = B
  1082. W.C0 = CFrame.new(0, -0.5, 0)
  1083. W.Parent = Limb
  1084.  
  1085. end
  1086. local Limb = char:FindFirstChild("Right Leg")
  1087. if Limb then
  1088.  
  1089. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  1090. local Joint = Instance.new("Glue")
  1091. Joint.Name = "RightHip"
  1092. Joint.Part0 = torso
  1093. Joint.Part1 = Limb
  1094. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1095. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1096. Joint.Parent = torso
  1097.  
  1098. local B = Instance.new("Part")
  1099. B.TopSurface = 0
  1100. B.BottomSurface = 0
  1101. B.formFactor = "Symmetric"
  1102. B.Size = Vector3.new(1, 1, 1)
  1103. B.Transparency = 1
  1104. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1105. B.Parent = char
  1106. B.CanCollide = false
  1107. local W = Instance.new("Weld")
  1108. W.Part0 = Limb
  1109. W.Part1 = B
  1110. W.C0 = CFrame.new(0, -0.5, 0)
  1111. W.Parent = Limb
  1112.  
  1113. end
  1114. local Limb = char:FindFirstChild("Left Leg")
  1115. if Limb then
  1116.  
  1117. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  1118. local Joint = Instance.new("Glue")
  1119. Joint.Name = "LeftHip"
  1120. Joint.Part0 = torso
  1121. Joint.Part1 = Limb
  1122. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1123. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1124. Joint.Parent = torso
  1125.  
  1126. local B = Instance.new("Part")
  1127. B.TopSurface = 0
  1128. B.BottomSurface = 0
  1129. B.formFactor = "Symmetric"
  1130. B.Size = Vector3.new(1, 1, 1)
  1131. B.Transparency = 1
  1132. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1133. B.Parent = char
  1134. B.CanCollide = false
  1135. local W = Instance.new("Weld")
  1136. W.Part0 = Limb
  1137. W.Part1 = B
  1138. W.C0 = CFrame.new(0, -0.5, 0)
  1139. W.Parent = Limb
  1140. end
  1141. for blood = 0, 6 do
  1142. local blood = Instance.new("Part", workspace)
  1143. blood.BrickColor = BrickColor.Red()
  1144. blood.FormFactor = "Custom"
  1145. blood.Size = Vector3.new(.2,.2,.2)
  1146. blood.Anchored = true
  1147. blood.TopSurface = "Smooth"
  1148. blood.BackSurface = "Smooth"
  1149. local bloodmesh = Instance.new("CylinderMesh", blood)
  1150. bloodmesh.Scale = Vector3.new(3, 0, 3)
  1151. local rayzb = Ray.new(torso.Position, Vector3.new(0, -50, 0) + Vector3.new(math.random(-6, 6), 0, math.random(-6, 6)))
  1152. local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
  1153. if hitzb then
  1154. blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
  1155. blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
  1156. coroutine.wrap(function()
  1157. for cframe = 0, math.random(16, 34) do
  1158. bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
  1159. wait()
  1160. end
  1161. end)()
  1162. else
  1163. blood:Destroy()
  1164. end
  1165. end
  1166. local BP = Instance.new("BodyPosition", torso)
  1167. BP.maxForce = Vector3.new(1,1,1)/0
  1168. BP.position = deathpos
  1169. for i,v in pairs(char:children()) do
  1170. if v:IsA("Part") then v.Parent = WorkModel end
  1171. end
  1172. wait(.3)
  1173. BP:Destroy()
  1174. end
  1175. end)
  1176.  
  1177. coroutine.wrap(function()
  1178. while wait() do
  1179. if divingnotallowed then
  1180. wait(.35)
  1181. divingnotallowed = false
  1182. end
  1183. end
  1184. end)()
  1185.  
  1186.  
  1187. local debounce = false
  1188. local tool = false
  1189. local dancing1 = false
  1190. while game:service'RunService'.Stepped:wait() do
  1191. if died then Controllers.Parent = ControllerService return end
  1192. angle = (angle % 100) + anglespeed/10
  1193. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*20))
  1194. local rscf = rsc0
  1195. local lscf = lsc0
  1196. local rlcf = rlc0
  1197. local llcf = llc0
  1198. local rjcf = rootc0
  1199. local ncf = neckc0
  1200. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -3.95, 0))
  1201. local hitz, enz = workspace:findPartOnRay(rayz, char)
  1202. local rayz1 = Ray.new(rootpart.Position, Vector3.new(-.5, -3.95, 0))
  1203. local hitz1, enz1 = workspace:findPartOnRay(rayz1, char)
  1204. local rayz2 = Ray.new(rootpart.Position, Vector3.new(.5, -3.95, 0))
  1205. local hitz2, enz2 = workspace:findPartOnRay(rayz2, char)
  1206. local rayz3 = Ray.new(rootpart.Position, Vector3.new(0, -3.95, -.5))
  1207. local hitz3, enz3 = workspace:findPartOnRay(rayz3, char)
  1208. local rayz4 = Ray.new(rootpart.Position, Vector3.new(0, -3.95, .5))
  1209. local hitz4, enz4 = workspace:findPartOnRay(rayz4, char)
  1210. if hitz or hitz1 or hitz2 or hitz3 or hitz4 and rayHit == false then
  1211. rayHit = true
  1212. Controllers.Parent = ControllerService
  1213. end
  1214. if diving then
  1215. action = "Diving"
  1216. end
  1217. for i,object in pairs(char:children()) do
  1218. if object:IsA("Tool") then
  1219. if not wldunknown then
  1220. wldunknown = Instance.new("Weld", rarm)
  1221. wldunknown.Name = "RightGrip"
  1222. wldunknown.Part0 = rarm
  1223. if object:findFirstChild("Handle") then
  1224. wldunknown.Part1 = object:findFirstChild("Handle")
  1225. end
  1226. end
  1227. tool = true
  1228. if not debounce then
  1229. for x,value in pairs(object:children()) do
  1230. if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
  1231. debounce = true
  1232. coroutine.wrap(function()
  1233. slashing = true
  1234. wait(.25)
  1235. slashing = false
  1236. debounce = false
  1237. end)()
  1238. value:Destroy()
  1239. end
  1240. end
  1241. end
  1242. elseif not object:IsA("Tool") then
  1243. if tool then
  1244. pcall(function()
  1245. wldunknown:Destroy()
  1246. wldunknown:Destroy()
  1247. end)
  1248. end
  1249. tool = false
  1250. end
  1251. end
  1252. if action == "Diving" then
  1253. anglespeed = 4
  1254. speed = 0.175
  1255. BodyGyro.Parent = nil
  1256. Controllers.Parent = nil
  1257. diving = true
  1258. ncf = neckc0 * CFrame.Angles(-math.rad(30) - math.rad(torso.Velocity.y)*1.2, 0, 0)
  1259. rjcf = rootc0 * CFrame.Angles(-math.rad(155), 0, 0)
  1260. rscf = rsc0 * CFrame.Angles(math.pi-math.rad(25), 0, 0)
  1261. lscf = lsc0 * CFrame.Angles(math.pi-math.rad(25), 0, 0)
  1262. rlcf = rlc0 * CFrame.Angles(0, 0, 0)
  1263. llcf = llc0 * CFrame.Angles(0, 0, 0)
  1264. if hitz and hitz1 and hitz2 and hitz3 and hitz4 then
  1265. action = "Rolling"
  1266. diving = false
  1267. end
  1268. elseif action == "Rolling" then
  1269. anglespeed = 3
  1270. speed = 0.2
  1271. BodyGyro.Parent = nil
  1272. Controllers.Parent = nil
  1273. for roll = 165, 360, 30 do
  1274. BodyVelo.Parent = torso
  1275. BodyVelo.velocity = rootpart.CFrame.lookVector * 50
  1276. Controllers.Parent = nil
  1277. ncf = neckc0 * CFrame.Angles(-math.pi/1.85, 0, 0)
  1278. rjcf = rootc0 * CFrame.new(0, -1.8, 0) * CFrame.Angles(-math.rad(roll), 0, 0)
  1279. rscf = rsc0 * CFrame.Angles(math.pi/2.5, 0, -math.rad(30))
  1280. lscf = lsc0 * CFrame.Angles(math.pi/2.5, 0, math.rad(30))
  1281. rlcf = rlc0 * CFrame.new(0, .6, -.75) * CFrame.Angles(-math.pi/2.5, 0, 0)
  1282. llcf = llc0 * CFrame.new(0, .6, -.75) * CFrame.Angles(-math.pi/2.5, 0, 0)
  1283. rm.C0 = clerp(rm.C0,rscf,speed)
  1284. lm.C0 = clerp(lm.C0,lscf,speed)
  1285. rj.C0 = clerp(rj.C0,rjcf,speed)
  1286. neck.C0 = clerp(neck.C0,ncf,speed)
  1287. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1288. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1289. wait()
  1290. end
  1291. BodyVelo.Parent = nil
  1292. action = "None"
  1293. Controllers.Parent = ControllerService
  1294. divingnotallowed = true
  1295. elseif action == "Dancing" then
  1296. if not dancing1 == true then
  1297. dancing1 = true
  1298. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then action = "None" end
  1299. anglespeed = 4
  1300. speed = 0.3
  1301. BodyGyro.Parent = nil
  1302. for waiting = 0, 35, 1 do
  1303. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then action = "None" return end
  1304. local angle = (angle % 100) + anglespeed/10
  1305. ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1306. rjcf = rootc0 * CFrame.Angles(0, math.rad(45), 0)
  1307. rscf = rsc0 * CFrame.Angles(math.pi/2.5+math.sin(waiting)*.5, 0, math.rad(2))
  1308. lscf = lsc0 * CFrame.Angles(math.pi/2.5+math.sin(waiting)*.5, 0, -math.rad(2))
  1309. rlcf = rlc0 * CFrame.Angles(math.pi/18, 0, math.rad(5))
  1310. llcf = llc0 * CFrame.Angles(-math.pi/14, 0, -math.rad(5))
  1311. rm.C0 = clerp(rm.C0,rscf,speed)
  1312. lm.C0 = clerp(lm.C0,lscf,speed)
  1313. rj.C0 = clerp(rj.C0,rjcf,speed)
  1314. neck.C0 = clerp(neck.C0,ncf,speed)
  1315. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1316. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1317. wait()
  1318. end
  1319. for waiting = 0, 35, 1 do
  1320. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then action = "None" return end
  1321. local angle = (angle % 100) + anglespeed/10
  1322. ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1323. rjcf = rootc0 * CFrame.Angles(0, -math.rad(45), 0)
  1324. rscf = rsc0 * CFrame.Angles(math.pi/2.5+math.sin(waiting)*.5, 0, math.rad(2))
  1325. lscf = lsc0 * CFrame.Angles(math.pi/2.5+math.sin(waiting)*.5, 0, -math.rad(2))
  1326. rlcf = rlc0 * CFrame.Angles(math.pi/18, 0, math.rad(5))
  1327. llcf = llc0 * CFrame.Angles(-math.pi/14, 0, -math.rad(5))
  1328. rm.C0 = clerp(rm.C0,rscf,speed)
  1329. lm.C0 = clerp(lm.C0,lscf,speed)
  1330. rj.C0 = clerp(rj.C0,rjcf,speed)
  1331. neck.C0 = clerp(neck.C0,ncf,speed)
  1332. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1333. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1334. wait()
  1335. end
  1336. for jumping = 0, 5, 1 do
  1337. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then action = "None" return end
  1338. local angle = (angle % 100) + anglespeed/10
  1339. ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1340. rjcf = rootc0 *CFrame.new(0, 2, 0) * CFrame.Angles(0, 0, 0)
  1341. rscf = rsc0 * CFrame.Angles(math.pi/1, 0, -math.rad(10))
  1342. lscf = lsc0 * CFrame.Angles(math.pi/1, 0, math.rad(10))
  1343. rlcf = rlc0 * CFrame.new(0, .25, -.15) * CFrame.Angles(-math.pi/22, 0, -math.rad(5))
  1344. llcf = llc0 * CFrame.Angles(math.pi/22, 0, -math.rad(5))
  1345. rm.C0 = clerp(rm.C0,rscf,speed)
  1346. lm.C0 = clerp(lm.C0,lscf,speed)
  1347. rj.C0 = clerp(rj.C0,rjcf,speed)
  1348. neck.C0 = clerp(neck.C0,ncf,speed)
  1349. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1350. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1351. wait()
  1352. end
  1353. dancing1 = false
  1354. end
  1355. elseif action == "Dancing2" then
  1356. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  1357. camera.CameraType = 5
  1358. action = "None"
  1359. end
  1360. anglespeed = 1
  1361. speed = 0.2
  1362. BodyGyro.Parent = nil
  1363. camera.CameraType = 6
  1364. camera:SetRoll(math.sin(angle)*.1)
  1365. ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1366. rjcf = rootc0 * CFrame.new(0, 0.75 + -math.abs(math.sin(angle)), 0) * CFrame.Angles(0, 0, math.sin(angle)*.1)
  1367. rscf = rsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.5, 0, math.rad(2))
  1368. lscf = lsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.5, 0, -math.rad(2))
  1369. rlcf = rlc0 * CFrame.Angles(math.sin(angle)*.25, 0, math.rad(5))
  1370. llcf = llc0 * CFrame.Angles(-math.sin(angle)*.25, 0, -math.rad(5))
  1371. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  1372. camera.CameraType = 5
  1373. end
  1374. elseif action == "Dancing3" then
  1375. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then action = "None" end
  1376. anglespeed = .9
  1377. BodyGyro.Parent = nil
  1378. speed = 0.2
  1379. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1380. rjcf = rootc0 * CFrame.Angles(math.pi, angle*3.6/2, 0)
  1381. rscf = rsc0 * CFrame.Angles(math.sin(angle)*.5, 0, math.rad(65))
  1382. lscf = lsc0 * CFrame.Angles(math.sin(angle)*.5, 0, -math.rad(65))
  1383. rlcf = rlc0 * CFrame.Angles(math.sin(angle)*.25, 0, math.rad(15))
  1384. llcf = llc0 * CFrame.Angles(-math.sin(angle)*.25, 0, -math.rad(15))
  1385. elseif action == "Jumping" then
  1386. if diving then action = "Diving" end
  1387. anglespeed = 1
  1388. speed = 0.175
  1389. BodyGyro.Parent = nil
  1390. rayHit = false
  1391. for waiting = 0, 8 do
  1392. rjcf = rootc0 * CFrame.Angles(0, 0, 0)
  1393. rscf = rsc0 * CFrame.Angles(-math.pi/10, 0, 0)
  1394. lscf = lsc0 * CFrame.Angles(-math.pi/10, 0, 0)
  1395. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
  1396. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  1397. rm.C0 = clerp(rm.C0,rscf,speed)
  1398. lm.C0 = clerp(lm.C0,lscf,speed)
  1399. rj.C0 = clerp(rj.C0,rjcf,speed)
  1400. neck.C0 = clerp(neck.C0,ncf,speed)
  1401. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1402. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1403. wait()
  1404. end
  1405. action = "None"
  1406. elseif action == "Climbing" then
  1407. anglespeed = 4
  1408. speed = 0.1
  1409. BodyGyro.cframe = torso.CFrame
  1410. ncf = neckc0 * CFrame.Angles(math.pi/3, 0, 0)
  1411. rjcf = rootc0
  1412. rscf = rsc0 * CFrame.new(0, -0.2 + -mvmnt*0.2, 0.45) * CFrame.Angles(math.pi/1.5, 0, -math.abs(mvmnt)*0.025)
  1413. lscf = lsc0 * CFrame.new(0, -0.2 + mvmnt*0.2, 0.45) * CFrame.Angles(math.pi/1.5, 0, math.abs(mvmnt)*0.025)
  1414. rlcf = rlc0 * CFrame.new(0, 0.3 + mvmnt*0.2, 0) * CFrame.Angles(math.pi/14, 0, 0)
  1415. llcf = llc0 * CFrame.new(0, 0.3 + -mvmnt*0.2, 0) * CFrame.Angles(math.pi/14, 0, 0)
  1416. elseif action == "Sliding" then
  1417. Controllers.Parent = nil
  1418. BodyGyro.Parent = nil
  1419. speed = 0.1
  1420. humanoid.WalkSpeed = humanoid.WalkSpeed - 0.4
  1421. ncf = neckc0 * CFrame.Angles(-math.pi/7, 0, 0)
  1422. rjcf = rootc0 * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.pi/2.35, math.rad(10), 0)
  1423. rscf = rsc0 * CFrame.Angles(-math.pi/2.5, 0, math.rad(5))
  1424. lscf = lsc0 * CFrame.Angles(-math.pi/1.25, 0, -math.rad(5))
  1425. rlcf = rlc0 * CFrame.Angles(-math.pi/25.5, 0, -math.rad(10))
  1426. llcf = llc0 * CFrame.new(0, .3, -.35) * CFrame.Angles(-math.pi/24.5, 0, 0)
  1427. if humanoid.WalkSpeed <= 1 then
  1428. action = "None"
  1429. if ctrl then
  1430. humanoid.WalkSpeed = 8
  1431. elseif not ctrl then
  1432. humanoid.WalkSpeed = 16
  1433. end
  1434. if sprinting then
  1435. humanoid.WalkSpeed = 28
  1436. end
  1437. Controllers.Parent = ControllerService
  1438. end
  1439. elseif action == "Swimming" then
  1440. anglespeed = 1/6
  1441. speed = 0.1
  1442.  
  1443. local rotpos = Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)
  1444. BodyGyro.cframe = CFrame.new(torso.Position,rotpos) * CFrame.Angles(math.pi/2.7, math.pi, 0)
  1445. ncf = neckc0 * CFrame.Angles(math.pi/2.7, 0, 0)
  1446. rjcf = rootc0
  1447. rscf = rsc0 * CFrame.Angles(math.pi, 0, math.abs(mvmnt)*0.25)
  1448. lscf = lsc0 * CFrame.Angles(math.pi, 0, -math.abs(mvmnt)*0.25)
  1449. rlcf = rlc0 * CFrame.new(0, 0.3-math.abs(mvmnt)*0.075, 0) * CFrame.Angles(-math.sin(angle)*0.25, 0, 0)
  1450. llcf = llc0 * CFrame.new(0, 0.3-math.abs(-mvmnt)*0.075, 0) * CFrame.Angles(math.sin(angle)*0.25, 0, 0)
  1451. elseif not hitz and not hitz1 and not hitz2 and not hitz3 and not hitz4 then
  1452. if action == "None" then
  1453. rayHit = false
  1454. BodyGyro.Parent = nil
  1455. Controllers.Parent = nil
  1456. speed = 0.1
  1457. anglespeed = 1/2
  1458. rjcf = rootc0 * CFrame.Angles(math.pi/18, 0, 0)
  1459. rscf = rsc0 * CFrame.Angles(0, 0, math.rad(165))
  1460. lscf = lsc0 * CFrame.Angles(0, 0, -math.rad(165))
  1461. rlcf = rlc0 * CFrame.new(0, 0.4, -0.3) * CFrame.Angles(-math.pi/14, 0, 0)
  1462. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  1463. end
  1464. elseif humanoid.Sit then
  1465. speed = 0.1
  1466. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1467. rjcf = rootc0 * CFrame.new(0, -.2, 0)
  1468. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, math.rad(5))
  1469. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, -math.rad(5))
  1470. rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
  1471. llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
  1472. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1473. if action == "None" then
  1474. BodyGyro.Parent = nil
  1475. speed = 0.3
  1476. anglespeed = .15
  1477. if ctrl then
  1478. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  1479. rjcf = rootc0 * CFrame.new(0, -1.25, 0)
  1480. rscf = rsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, math.rad(5))
  1481. lscf = lsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, -math.rad(5))
  1482. rlcf = rlc0 * CFrame.new(0, 1.25, -.85) * CFrame.Angles(0, 0, math.rad(2.5))
  1483. llcf = llc0 * CFrame.new(0, -.25, -.45) * CFrame.Angles(-math.pi/2, 0, -math.rad(2.5))
  1484. else
  1485. if Personality == "Agile" then
  1486. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  1487. rjcf = rootc0
  1488. rscf = rsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, math.rad(5))
  1489. lscf = lsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, -math.rad(5))
  1490. rlcf = rlc0 * CFrame.Angles(-math.rad(2.5), 0, math.rad(2.5))
  1491. llcf = llc0 * CFrame.Angles(math.rad(4.5), 0, -math.rad(2.5))
  1492. elseif Personality == "Shy" then
  1493. ncf = neckc0 * CFrame.Angles(-math.rad(10)+math.sin(angle)*0.075, 0, 0)
  1494. rjcf = rootc0 * CFrame.Angles(0, math.rad(10), 0)
  1495. rscf = rsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, -math.rad(2.5))
  1496. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, math.rad(2.5))
  1497. rlcf = rlc0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  1498. llcf = llc0 * CFrame.Angles(math.rad(4.5), 0, 0)
  1499. elseif Personality == "Brave" then
  1500. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  1501. rjcf = rootc0 * CFrame.new(0, -0.2, 0)
  1502. rscf = rsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, math.rad(5))
  1503. lscf = lsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, -math.rad(5))
  1504. rlcf = rlc0 * CFrame.Angles(-math.rad(15), 0, math.rad(2.5))
  1505. llcf = llc0 * CFrame.Angles(math.rad(15), 0, -math.rad(2.5))
  1506. end
  1507. end
  1508. if is_running then
  1509. coroutine.wrap(function()
  1510. is_running = false
  1511. for camerazoom = camera.FieldOfView, 70, -1 do
  1512. camera.FieldOfView = camerazoom
  1513. wait()
  1514. end
  1515. camera.FieldOfView = 70
  1516. end)()
  1517. end
  1518. if sprint_time <= 125 and not ctrl then
  1519. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1520. rjcf = rootc0 * CFrame.new(0, -1.9, 0) * CFrame.Angles(math.rad(10), 0, 0)
  1521. rscf = rsc0 * CFrame.Angles(-math.rad(10), 0, math.rad(5))
  1522. lscf = lsc0 * CFrame.Angles(-math.rad(10), 0, -math.rad(5))
  1523. rlcf = rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.rad(5.5))
  1524. llcf = llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.rad(5.5))
  1525. end
  1526. if tool then
  1527. if Personality == "Shy" then
  1528. rscf = rsc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(10))
  1529. else
  1530. rscf = rsc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  1531. end
  1532. end
  1533. if slashing then
  1534. rscf = rsc0 * CFrame.Angles(0, 0, 0)
  1535. end
  1536. end
  1537. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1538. if action == "None" then
  1539. BodyGyro.Parent = nil
  1540. speed = 0.2
  1541. anglespeed = 4
  1542. if ctrl then
  1543. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  1544. rjcf = rootc0 * CFrame.new(0, -.55, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  1545. rscf = rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/12, 0, math.rad(2))
  1546. lscf = lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/12, 0, -math.rad(2))
  1547. llcf = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(math.pi/5 - math.sin(angle)*.45, 0, 0)
  1548. rlcf = rlcf * CFrame.new(0, .5, -.65) * CFrame.Angles(math.pi/5 + math.sin(angle)*.45, 0, 0)
  1549. elseif not ctrl then
  1550. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1551. rjcf = rootc0
  1552. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.3, 0, 0)
  1553. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.3, 0, 0)
  1554. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  1555. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  1556. end
  1557. if is_running then
  1558. coroutine.wrap(function()
  1559. is_running = false
  1560. for camerazoom = camera.FieldOfView, 70, -1 do
  1561. camera.FieldOfView = camerazoom
  1562. wait()
  1563. end
  1564. camera.FieldOfView = 70
  1565. end)()
  1566. end
  1567. if tool then
  1568. rscf = rsc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  1569. end
  1570. if slashing then
  1571. rscf = rsc0 * CFrame.Angles(0, 0, 0)
  1572. end
  1573. end
  1574. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  1575. if action == "Dancing" then action = "None" end
  1576. if action == "None" then
  1577. BodyGyro.Parent = nil
  1578. if sprint_time > 1 then
  1579. sprint_time = sprint_time - .5
  1580. else
  1581. humanoid.WalkSpeed = 16
  1582. cmsg("No stamina left!")
  1583. end
  1584. speed = 0.3
  1585. anglespeed = 5
  1586. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1587. rjcf = rootc0 * CFrame.new(0, math.abs(mvmnt*.1), 0) * CFrame.Angles(-math.pi/12, math.sin(angle)*.1, 0)
  1588. rscf = rsc0 * CFrame.Angles(math.sin(angle)*2, 0, -math.sin(angle)*0.15 + math.rad(.5))
  1589. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*2, 0, -math.sin(angle)*0.15 + -math.rad(.5))
  1590. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1.8, 0, math.rad(.5))
  1591. llcf = llc0 * CFrame.Angles(math.sin(angle)*1.8, 0, -math.rad(.5))
  1592. is_running = true
  1593. if tool then
  1594. rscf = rsc0 * CFrame.Angles(-math.pi/2.75, 0, 0)
  1595. end
  1596. end
  1597. end
  1598. if action == "None" and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1599. if sprint_time >= max_sprint_time-.8 then sprint_time = max_sprint_time else
  1600. sprint_time = sprint_time + .5
  1601. end
  1602. elseif action == "None" and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1603. if sprint_time >= max_sprint_time-.9 then sprint_time = max_sprint_time else
  1604. sprint_time = sprint_time + .25
  1605. end
  1606. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 150 then
  1607. if action == "Dancing" then action = "None" end
  1608. if action == "None" then
  1609. BodyGyro.Parent = nil
  1610. if sprint_time > 30 then
  1611. sprint_time = sprint_time - 2
  1612. else
  1613. humanoid.WalkSpeed = 28
  1614. cmsg("TOO HOT!")
  1615. end
  1616. local expl = Instance.new("Part", workspace)
  1617. expl.Size = Vector3.new(0.2, 2, 0.2)
  1618. expl.Anchored = true
  1619. expl.Transparency = 0.25
  1620. expl.TopSurface = 0
  1621. expl.BottomSurface = 0
  1622. expl.Locked = true
  1623. expl.CanCollide = false
  1624. Instance.new("PointLight", expl).Color = expl.BrickColor.Color
  1625. expl.CFrame = torso.CFrame * CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/math.random(1, 8),math.pi/math.random(1, 8),math.pi/math.random(1, 8))
  1626. expl.BrickColor = BrickColor.new("Bright orange")
  1627. local mesh = Instance.new("SpecialMesh", expl)
  1628. mesh.MeshType = "Sphere"
  1629. coroutine.wrap(function()
  1630. for _ = 0, 15 do
  1631. mesh.Scale = mesh.Scale + Vector3.new(.15, .15, .15)
  1632. expl.Transparency = expl.Transparency + 0.075
  1633. wait()
  1634. end
  1635. expl:Destroy()
  1636. end)()
  1637. speed = 0.3
  1638. anglespeed = 7
  1639. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1640. rjcf = rootc0 * CFrame.Angles(-math.pi/12, math.sin(angle)*.1, 0)
  1641. rscf = rsc0 * CFrame.Angles(math.sin(angle)*2, 0, -math.sin(angle)*0.15 + math.rad(.5))
  1642. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*2, 0, -math.sin(angle)*0.15 + -math.rad(.5))
  1643. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1.8, 0, math.rad(.5))
  1644. llcf = llc0 * CFrame.Angles(math.sin(angle)*1.8, 0, -math.rad(.5))
  1645. is_running = true
  1646. if tool then
  1647. rscf = rsc0 * CFrame.Angles(-math.pi/2.75, 0, 0)
  1648. end
  1649. end
  1650. end
  1651.  
  1652. if action == "None" and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1653. if sprint_time >= max_sprint_time-.8 then sprint_time = 250 else
  1654. sprint_time = sprint_time + .15
  1655. end
  1656. elseif action == "None" and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1657. if sprint_time >= max_sprint_time-.9 then sprint_time = 250 else
  1658. sprint_time = sprint_time + .05
  1659. end
  1660. end
  1661.  
  1662. neck.C0 = clerp(neck.C0,ncf,speed)
  1663. rm.C0 = clerp(rm.C0,rscf,speed)
  1664. lm.C0 = clerp(lm.C0,lscf,speed)
  1665. rj.C0 = clerp(rj.C0,rjcf,speed)
  1666. neck.C0 = clerp(neck.C0,ncf,speed)
  1667. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1668. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1669. lastaction = action
  1670. end
  1671. end
Advertisement
Add Comment
Please, Sign In to add comment