Advertisement
EnderPlayBro

Untitled

May 2nd, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.79 KB | None | 0 0
  1. Player = game:GetService("Players").EnderPlayBro
  2. PlayerGui = Player.PlayerGui
  3. Cam = workspace.CurrentCamera
  4. Backpack = Player.Backpack
  5. Character = Player.Character
  6. Humanoid = Character.Humanoid
  7. RootPart = Character["HumanoidRootPart"]
  8. Torso = Character["Torso"]
  9. Head = Character["Head"]
  10. RightArm = Character["Right Arm"]
  11. LeftArm = Character["Left Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LeftLeg = Character["Left Leg"]
  14. RootJoint = RootPart["RootJoint"]
  15. Neck = Torso["Neck"]
  16. mouse = Player:GetMouse()
  17. RightShoulder = Torso["Right Shoulder"]
  18. LeftShoulder = Torso["Left Shoulder"]
  19. RightHip = Torso["Right Hip"]
  20. LeftHip = Torso["Left Hip"]
  21.  
  22. Character = Player.Character
  23. Humanoid = Character.Humanoid
  24.  
  25. local plr = game:service'Players'.EnderPlayBro
  26. local char = plr.Character
  27. local hum = char.Humanoid
  28. local hed = char.Head
  29. local root = char.HumanoidRootPart
  30. local rootj = root.RootJoint
  31. local tors = char.Torso
  32. local ra = char["Right Arm"]
  33. local la = char["Left Arm"]
  34. local rl = char["Right Leg"]
  35. local ll = char["Left Leg"]
  36. local neck = tors["Neck"]
  37. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  38. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  39. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  40.  
  41. -------------------------------------------------------
  42. --Start Good Stuff--
  43. -------------------------------------------------------
  44. cam = game.Workspace.CurrentCamera
  45. CF = CFrame.new
  46. angles = CFrame.Angles
  47. attack = false
  48. Euler = CFrame.fromEulerAnglesXYZ
  49. Rad = math.rad
  50. IT = Instance.new
  51. BrickC = BrickColor.new
  52. Cos = math.cos
  53. Acos = math.acos
  54. Sin = math.sin
  55. Asin = math.asin
  56. Abs = math.abs
  57. Mrandom = math.random
  58. Floor = math.floor
  59. -------------------------------------------------------
  60. --End Good Stuff--
  61. -------------------------------------------------------
  62. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  63. RSH, LSH = nil, nil
  64. RW = Instance.new("Weld")
  65. LW = Instance.new("Weld")
  66. RH = tors["Right Hip"]
  67. LH = tors["Left Hip"]
  68. RSH = tors["Right Shoulder"]
  69. LSH = tors["Left Shoulder"]
  70. RSH.Parent = nil
  71. LSH.Parent = nil
  72. RW.Name = "RW"
  73. RW.Part0 = tors
  74. RW.C0 = CF(1.5, 0.5, 0)
  75. RW.C1 = CF(0, 0.5, 0)
  76. RW.Part1 = ra
  77. RW.Parent = tors
  78. LW.Name = "LW"
  79. LW.Part0 = tors
  80. LW.C0 = CF(-1.5, 0.5, 0)
  81. LW.C1 = CF(0, 0.5, 0)
  82. LW.Part1 = la
  83. LW.Parent = tors
  84. Effects = {}
  85. --------------------------------------------------------------
  86. ArtificialHB = Instance.new("BindableEvent", script)
  87. ArtificialHB.Name = "Heartbeat"
  88. script:WaitForChild("Heartbeat")
  89.  
  90. frame = 1 / 60
  91. tf = 0
  92. allowframeloss = false
  93. tossremainder = false
  94.  
  95.  
  96. lastframe = tick()
  97. script.Heartbeat:Fire()
  98.  
  99.  
  100. game:GetService("RunService").Heartbeat:connect(function(s, p)
  101. tf = tf + s
  102. if tf >= frame then
  103. if allowframeloss then
  104. script.Heartbeat:Fire()
  105. lastframe = tick()
  106. else
  107. for i = 1, math.floor(tf / frame) do
  108. script.Heartbeat:Fire()
  109. end
  110. lastframe = tick()
  111. end
  112. if tossremainder then
  113. tf = 0
  114. else
  115. tf = tf - frame * math.floor(tf / frame)
  116. end
  117. end
  118. end)
  119. -------------------------------------------------------
  120. --End HeartBeat--
  121. -------------------------------------------------------
  122.  
  123. -------------------------------------------------------
  124. --Start Important Functions--
  125. -------------------------------------------------------
  126. function swait(num)
  127. if num == 0 or num == nil then
  128. game:service("RunService").Stepped:wait(0)
  129. else
  130. for i = 0, num do
  131. game:service("RunService").Stepped:wait(0)
  132. end
  133. end
  134. end
  135. function thread(f)
  136. coroutine.resume(coroutine.create(f))
  137. end
  138. function clerp(a, b, t)
  139. local qa = {
  140. QuaternionFromCFrame(a)
  141. }
  142. local qb = {
  143. QuaternionFromCFrame(b)
  144. }
  145. local ax, ay, az = a.x, a.y, a.z
  146. local bx, by, bz = b.x, b.y, b.z
  147. local _t = 1 - t
  148. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  149. end
  150. function QuaternionFromCFrame(cf)
  151. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  152. local trace = m00 + m11 + m22
  153. if trace > 0 then
  154. local s = math.sqrt(1 + trace)
  155. local recip = 0.5 / s
  156. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  157. else
  158. local i = 0
  159. if m00 < m11 then
  160. i = 1
  161. end
  162. if m22 > (i == 0 and m00 or m11) then
  163. i = 2
  164. end
  165. if i == 0 then
  166. local s = math.sqrt(m00 - m11 - m22 + 1)
  167. local recip = 0.5 / s
  168. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  169. elseif i == 1 then
  170. local s = math.sqrt(m11 - m22 - m00 + 1)
  171. local recip = 0.5 / s
  172. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  173. elseif i == 2 then
  174. local s = math.sqrt(m22 - m00 - m11 + 1)
  175. local recip = 0.5 / s
  176. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  177. end
  178. end
  179. end
  180. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  181. local xs, ys, zs = x + x, y + y, z + z
  182. local wx, wy, wz = w * xs, w * ys, w * zs
  183. local xx = x * xs
  184. local xy = x * ys
  185. local xz = x * zs
  186. local yy = y * ys
  187. local yz = y * zs
  188. local zz = z * zs
  189. 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))
  190. end
  191. function QuaternionSlerp(a, b, t)
  192. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  193. local startInterp, finishInterp
  194. if cosTheta >= 1.0E-4 then
  195. if 1 - cosTheta > 1.0E-4 then
  196. local theta = math.acos(cosTheta)
  197. local invSinTheta = 1 / Sin(theta)
  198. startInterp = Sin((1 - t) * theta) * invSinTheta
  199. finishInterp = Sin(t * theta) * invSinTheta
  200. else
  201. startInterp = 1 - t
  202. finishInterp = t
  203. end
  204. elseif 1 + cosTheta > 1.0E-4 then
  205. local theta = math.acos(-cosTheta)
  206. local invSinTheta = 1 / Sin(theta)
  207. startInterp = Sin((t - 1) * theta) * invSinTheta
  208. finishInterp = Sin(t * theta) * invSinTheta
  209. else
  210. startInterp = t - 1
  211. finishInterp = t
  212. end
  213. 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
  214. end
  215. function rayCast(Position, Direction, Range, Ignore)
  216. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  217. end
  218. local RbxUtility = LoadLibrary("RbxUtility")
  219. local Create = RbxUtility.Create
  220.  
  221. plr = game.Players.EnderPlayBro
  222. char = plr.Character
  223. epicmode = false
  224. normal = true
  225. for i,v in pairs(char:GetChildren()) do
  226. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  227. v:Destroy()
  228. end
  229. end
  230. for i,v in pairs(char:GetChildren()) do
  231. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  232. v:Destroy()
  233. end
  234. end
  235. ------------------------------------------------------------
  236. Character = Player.Character
  237. Head = Character["Head"]
  238.  
  239. local BC = char["Body Colors"]
  240. BC.HeadColor = BrickColor.new("Cool yellow")
  241. BC.LeftArmColor = BrickColor.new("Cool yellow")
  242. BC.LeftLegColor = BrickColor.new("Dark blue")
  243. BC.RightArmColor = BrickColor.new("Cool yellow")
  244. BC.RightLegColor = BrickColor.new("Dark blue")
  245. BC.TorsoColor = BrickColor.new("Dark blue")
  246. -----------------------------------------------------------
  247. local Orin = "http://www.roblox.com/asset/?id=7074786"
  248. Head.face.Texture = Orin
  249. function weld(a, b, acf)
  250. local w = Instance.new("Weld", a)
  251. w.Part0 = a
  252. w.Part1 = b
  253. w.C0 = acf
  254. end
  255. ------------------------------------------------------------------------------------------------------------------
  256. local Player_Size = 1
  257. if Player_Size ~= 1 then
  258. root.Size = root.Size * Player_Size
  259. tors.Size = tors.Size * Player_Size
  260. hed.Size = hed.Size * Player_Size
  261. ra.Size = ra.Size * Player_Size
  262. la.Size = la.Size * Player_Size
  263. rl.Size = rl.Size * Player_Size
  264. ll.Size = ll.Size * Player_Size
  265. ----------------------------------------------------------------------------------
  266. rootj.Parent = root
  267. neck.Parent = tors
  268. RW.Parent = tors
  269. LW.Parent = tors
  270. RH.Parent = tors
  271. LH.Parent = tors
  272. ----------------------------------------------------------------------------------
  273. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  274. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  275. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  276. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  277. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  278. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  279. ----------------------------------------------------------------------------------
  280. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  281. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  282. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  283. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  284. --hat.Parent = Character
  285. end
  286. ----------------------------------------------------------------------------------
  287. ----------------------------------------------------------------------------------
  288. local equipped = false
  289. local idle = 0
  290. local change = 1
  291. local val = 0
  292. local toim = 0
  293. local idleanim = 0.4
  294. local sine = 0
  295. local Sit = 1
  296. ----------------------------------------------------------------------------------
  297. hum.WalkSpeed = 16
  298. hum.JumpPower = 57
  299. hum.Animator.Parent = nil
  300. ---------------------------------------------------------------------
  301. local Blobby = Instance.new("Part", char)
  302. Blobby.Name = "Blob"
  303. Blobby.CanCollide = false
  304. Blobby.BrickColor = BrickColor.new("Really black")
  305. Blobby.Transparency = 0
  306. Blobby.Material = "Plastic"
  307. Blobby.Size = Vector3.new(1, 1, 2)
  308. Blobby.TopSurface = Enum.SurfaceType.Smooth
  309. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  310.  
  311. local Weld = Instance.new("Weld", Blobby)
  312. Weld.Part0 = ra
  313. Weld.Part1 = Blobby
  314. Weld.C1 = CFrame.new(-1.5, 0, 0)
  315. Weld.C0 = CFrame.Angles(Rad(-86),20.5,0)
  316.  
  317. local M2 = Instance.new("SpecialMesh")
  318. M2.Parent = Blobby
  319. M2.MeshId = "rbxassetid://462324407"
  320. M2.TextureId = "rbxassetid://462324410"
  321. M2.Scale = Vector3.new(0.01, 0.01, 0.01)
  322.  
  323. BTAUNT = Instance.new("Sound", tors)
  324. BTAUNT.SoundId = "rbxassetid://1846774541"
  325. BTAUNT.Volume = 1
  326. BTAUNT.Pitch = 1
  327. BTAUNT.Looped = true
  328. BTAUNT:Play()
  329. ------------------------------------------------------
  330. local blastsound = Instance.new("Sound",char.Torso)
  331. blastsound.Name = "blast_sound"
  332. blastsound.SoundId = "rbxassetid://1583819337"
  333. blastsound.Volume = 4
  334.  
  335. function shot()
  336. attack = true
  337. Cos("898163129", Blobby, 10, 1)
  338. hum.WalkSpeed = 1
  339. for i = 0,20, 0.1 do
  340. swait()
  341. rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  342. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  343. RH.C0=clerp(RH.C0,CF(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  344. LH.C0=clerp(LH.C0,CF(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  345. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.1)
  346. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  347. end
  348. wait(0.9)
  349. blastsound:Play()
  350. local blast = Instance.new("Part",Blobby)
  351. blast.Size = Vector3.new(0.2, 16.36, 0.2)
  352. blast.Transparency = 1
  353. blast.Material = "Neon"
  354. blast.Color = Color3.new(20,20,20)
  355. blast.CanCollide = false
  356. local blastweld = Instance.new("Weld",blast)
  357. blastweld.Part0 = blast
  358. blastweld.Part1 = Blobby
  359. blastweld.C0 = CFrame.new(2,0,0)
  360. blast.Touched:connect(function(part)
  361. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  362. Cos("304063043", tors, 10, 1)
  363. end)
  364. wait(0.3)
  365. blast:Destroy()
  366. end
  367. -------------------------------------------------------
  368. mouse.Button1Down:connect(function(key)
  369. if attack == false then
  370. shot()
  371. end
  372. end)
  373.  
  374. --------------------------------------------------------
  375. while true do
  376. swait()
  377. sine = sine + change
  378. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  379. local velderp = root.Velocity.y
  380. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  381. if equipped == true or equipped == false then
  382. if attack == false then
  383. idle = idle + 1
  384. else
  385. idle = 0
  386. end
  387. if 1 < root.Velocity.y and hitfloor == nil then
  388. Anim = "Jump"
  389. if attack == false then
  390. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  391. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  392. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  393. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  394. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 + 1.5 * Sin(sine / 12))), 0.1)
  395. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(20 + 1.5 * Sin(sine / 12))), 0.1)
  396. end
  397. elseif -1 > root.Velocity.y and hitfloor == nil then
  398. Anim = "Fall"
  399. if attack == false then
  400. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  401. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  402. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  403. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  404. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 - 1.5 * Sin(sine / 12))), 0.1)
  405. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 - 1.5 * Sin(sine / 12))), 0.1)
  406. end
  407. elseif torvel < 1 and hitfloor ~= nil then
  408. Anim = "Idle"
  409. change = 1
  410. if attack == false then
  411. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.2* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  412. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(1 - 2.5 * Sin(sine / 19)), Rad(0), Rad(0)), 0.3)
  413. RH.C0 = clerp(RH.C0, CF(1, -1 - 0.2 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.08)
  414. LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.2 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.08)
  415. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 + 1.5 * Sin(sine / 12))), 0.1)
  416. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(40 + 1.5 * Sin(sine / 12))), 0.1)
  417. end
  418. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  419. Anim = "Walk"
  420. change = 1
  421. if attack == false then
  422. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  423. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  424. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  425. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  426. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 + 1.5 * Sin(sine / 12))), 0.1)
  427. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(20 + 1.5 * Sin(sine / 12))), 0.1)
  428. end
  429. elseif torvel >= 25 and hitfloor ~= nil then
  430. Anim = "Sprint"
  431. change = 1.35
  432. if attack == false then
  433. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  434. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  435. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  436. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-30 + 1.5 * Sin(sine / 12))), 0.1)
  437. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, -.6* Player_Size) * angles(Rad(50 + 1.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(20 + 1.5 * Sin(sine / 12))), 0.1)
  438. end
  439. end
  440. end
  441. if 0 < #Effects then
  442. for e = 1, #Effects do
  443. if Effects[e] ~= nil then
  444. local Thing = Effects[e]
  445. if Thing ~= nil then
  446. local Part = Thing[1]
  447. local Mode = Thing[2]
  448. local Delay = Thing[3]
  449. local IncX = Thing[4]
  450. local IncY = Thing[5]
  451. local IncZ = Thing[6]
  452. if 1 >= Thing[1].Transparency then
  453. if Thing[2] == "Block1" then
  454. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  455. local Mesh = Thing[1].Mesh
  456. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  457. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  458. elseif Thing[2] == "Block2" then
  459. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  460. local Mesh = Thing[7]
  461. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  462. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  463. elseif Thing[2] == "Block3" then
  464. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  465. local Mesh = Thing[7]
  466. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  467. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  468. elseif Thing[2] == "Cylinder" then
  469. local Mesh = Thing[1].Mesh
  470. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  471. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  472. elseif Thing[2] == "Blood" then
  473. local Mesh = Thing[7]
  474. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  475. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  476. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  477. elseif Thing[2] == "Elec" then
  478. local Mesh = Thing[1].Mesh
  479. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  480. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  481. elseif Thing[2] == "Disappear" then
  482. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  483. elseif Thing[2] == "Shatter" then
  484. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  485. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  486. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  487. Thing[6] = Thing[6] + Thing[5]
  488. end
  489. else
  490. Part.Parent = nil
  491. table.remove(Effects, e)
  492. end
  493. end
  494. end
  495. end
  496. end
  497. end
  498. --------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement