Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Sans?
  2.  
  3. Player = game:GetService("Players").LocalPlayer
  4. PlayerGui = Player.PlayerGui
  5. Cam = workspace.CurrentCamera
  6. Backpack = Player.Backpack
  7. Character = Player.Character
  8. Humanoid = Character.Humanoid
  9. Mouse = Player:GetMouse()
  10. RootPart = Character["HumanoidRootPart"]
  11. Torso = Character["Torso"]
  12. Head = Character["Head"]
  13. RightArm = Character["Right Arm"]
  14. LeftArm = Character["Left Arm"]
  15. RightLeg = Character["Right Leg"]
  16. LeftLeg = Character["Left Leg"]
  17. RootJoint = RootPart["RootJoint"]
  18. Neck = Torso["Neck"]
  19. RightShoulder = Torso["Right Shoulder"]
  20. LeftShoulder = Torso["Left Shoulder"]
  21. RightHip = Torso["Right Hip"]
  22. LeftHip = Torso["Left Hip"]
  23. local sick = Instance.new("Sound",Character)
  24. sick.SoundId = "rbxassetid://531711813"
  25. sick.Looped = true
  26. sick.Pitch = 1
  27. sick.Volume = 1
  28. Head:ClearAllChildren()
  29.  
  30. local tor = Instance.new("CharacterMesh")
  31. tor.Parent = Character
  32. tor.Name = "Bones"
  33. tor.BodyPart = "Torso"
  34. tor.MeshId = "36780113"
  35. tor.OverlayTextureId = "36780292"
  36.  
  37. local tor = Instance.new("CharacterMesh")
  38. tor.Parent = Character
  39. tor.Name = "Bones"
  40. tor.BodyPart = "LeftLeg"
  41. tor.MeshId = "36780079"
  42. tor.OverlayTextureId = "36780292"
  43.  
  44. local tor = Instance.new("CharacterMesh")
  45. tor.Parent = Character
  46. tor.Name = "Bones"
  47. tor.BodyPart = "RightLeg"
  48. tor.MeshId = "36780195"
  49. tor.OverlayTextureId = "36780292"
  50.  
  51. local tor = Instance.new("CharacterMesh")
  52. tor.Parent = Character
  53. tor.Name = "Bones"
  54. tor.BodyPart = "RightArm"
  55. tor.MeshId = "36780156"
  56. tor.OverlayTextureId = "36780292"
  57.  
  58. local tor = Instance.new("CharacterMesh")
  59. tor.Parent = Character
  60. tor.Name = "Bones"
  61. tor.BodyPart = "LeftArm"
  62. tor.MeshId = "36780032"
  63. tor.OverlayTextureId = "36780292"
  64.  
  65. local tor = Instance.new("SpecialMesh")
  66. tor.Scale = Vector3.new(1,1,1)
  67. tor.MeshType = "FileMesh"
  68. tor.MeshId = "http://www.roblox.com/asset/?id=36869983"
  69. tor.TextureId = "rbxassetid://36869975"
  70. tor.Parent = Head
  71.  
  72. prepareCharacter = function()
  73. local transPoints = {
  74. NumberSequenceKeypoint.new(0,.819,.0375),
  75. NumberSequenceKeypoint.new(.207,.594,.0187),
  76. NumberSequenceKeypoint.new(.4,.55,.031),
  77. NumberSequenceKeypoint.new(.57,.619,.05),
  78. NumberSequenceKeypoint.new(.76,.8,.0375),
  79. NumberSequenceKeypoint.new(1,1,0),
  80. }
  81. local sizePoints = {
  82. NumberSequenceKeypoint.new(0,.687,0),
  83. NumberSequenceKeypoint.new(.111,.875,0),
  84. NumberSequenceKeypoint.new(.327,1.19,0),
  85. NumberSequenceKeypoint.new(.646,1.56,0),
  86. NumberSequenceKeypoint.new(.805,1.37,0),
  87. NumberSequenceKeypoint.new(.905,1.06,0),
  88. NumberSequenceKeypoint.new(.968,.938,0),
  89. NumberSequenceKeypoint.new(.984,1.13,0),
  90. NumberSequenceKeypoint.new(1,1.62,0),
  91. }
  92. local Size = NumberSequence.new(sizePoints)
  93. local Transparency = NumberSequence.new(transPoints)
  94. rayModel = Instance.new("Model",c)
  95. efxBlock = Instance.new("Part",c)
  96. efxBlock.BrickColor = BrickColor.new("Cyan")
  97. efxBlock.Material = "Neon"
  98. efxBlock.FormFactor = "Custom"
  99. efxBlock.Transparency = .3
  100. efxBlock.Size = Vector3.new(.3,.3,.3)
  101. local mesh = Instance.new("SpecialMesh",efxBlock)
  102. mesh.MeshType = Enum.MeshType.Sphere
  103. mesh.Scale = Vector3.new(1,1,1)
  104. light = Instance.new("PointLight",c.Head)
  105. light.Range = 10
  106. light.Color = Color3.new(0,200/255,1)
  107. light.Shadows = false
  108. local particles = Instance.new("ParticleEmitter",efxBlock)
  109. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  110. particles.LightEmission = .95
  111. particles.Size = Size
  112. particles.Name = "Fire"
  113. particles.Transparency = Transparency
  114. particles.LockedToPart = true
  115. particles.VelocityInheritance = .5
  116. particles.LockedToPart = true
  117. particles.Rate = 70
  118. particles.Texture = "rbxassetid://56561915"
  119. particles.Lifetime = NumberRange.new(2,2)
  120. particles.RotSpeed = NumberRange.new(100,100)
  121. particles.Speed = NumberRange.new(7,7)
  122. script.Parent = efxBlock
  123. fire = particles
  124. local offset = Vector3.new(-0.11, .23, -0.5)
  125. local weld = Instance.new("Weld",c.Head)
  126. weld.Part0 = c.Head
  127. weld.Part1 = efxBlock
  128. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  129. efxBlock.Parent = c
  130. local music = Instance.new("Sound",c)
  131. music.SoundId = "rbxassetid://316012176"
  132. music.Looped = true
  133. music.Volume = 0
  134. fight = music
  135. local music2 = Instance.new("Sound",c)
  136. music2.SoundId = "rbxassetid://316014309"
  137. music2.Looped = true
  138. music2.Volume = 0
  139. sans = music2
  140. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  141. pointGyro.P = 1e7
  142. pointGyro.D = 1e3
  143. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  144. animator = c.Humanoid:FindFirstChild("Animator")
  145. if animator then
  146. animator:Destroy()
  147. end
  148. c.Torso.roblox:Destroy()
  149. for i,v in pairs (c.Head:children()) do
  150. if v.ClassName == "Sound" then
  151. v:Destroy()
  152. end
  153. end
  154. for i = 1,#Joints do
  155. Joints[i].C1 = CFrame.new(Vector3.new())
  156. end
  157. human.WalkSpeed = 0
  158. human.JumpPower = 0
  159. end
  160.  
  161. uinps.InputBegan:connect(function(InputObject)
  162. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  163. Debounces.isPassive = not Debounces.isPassive
  164. end
  165. end)
  166.  
  167. setJointCFrames = function(table)
  168. for i = 1,#table do
  169. JointTargets[i] = table[i]
  170. end
  171. AnimationCycles = 0
  172. end
  173.  
  174. setLerp = function(speed)
  175. AnimStat.lerpSpeed = speed
  176. end
  177.  
  178. setTween = function(tween)
  179. AnimStat.lerpTween = tween
  180. end
  181.  
  182. takeDamage = function(position,damage,distance,platformStand)
  183. for i,v in pairs (pls:children()) do
  184. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  185. local torso = v.Character:FindFirstChild("Torso")
  186. if torso and (torso.Position - position).magnitude < distance then
  187. v.Character.Humanoid:TakeDamage(damage)
  188. if platformStand == true then
  189. v.Character.PlatformStand = platformStand
  190. end
  191. end
  192. end
  193. end
  194. end
  195.  
  196.  
  197. prepareCharacter()
  198.  
  199. local IDs = {133830212,235845120}
  200. local p=game:service("Players").LocalPlayer
  201. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  202. local Player = game:service'Players'.localPlayer
  203. Character = Player.Character
  204. Head = Character["Head"]
  205. local char=p.Character
  206. Humanoid = Character.Humanoid
  207. local hum=char.Humanoid
  208. local chara = Player.Character
  209. hum.MaxHealth= math.huge
  210. hum.Health=hum.MaxHealth
  211. function swait(num)
  212. if num==0 or num==nil then
  213. game:service'RunService'.Stepped:wait(0)
  214. else
  215. for i=0,num do
  216. game:service'RunService'.Stepped:wait(0)
  217. end
  218. end
  219. end
  220. do
  221. local filteredMessages = { ['____'] = '___' };
  222. local onPropertyChanged = function (obj)
  223. if (obj:isDescendantOf (workspace)) then
  224. local objText = obj.Text;
  225.  
  226. if (objText ~= '___' and objText:find '(%S)') then
  227. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  228. obj.Text = filteredMessages [objText];
  229. elseif (not filteredMessages [objText]) then
  230. obj.Text = '___';
  231.  
  232. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  233.  
  234. filteredMessages [objText] = filtered;
  235. filteredMessages [filtered] = filtered;
  236.  
  237. obj.Text = filtered;
  238. end;
  239. end;
  240. end;
  241. end;
  242.  
  243. local newInstance = Instance.new;
  244. Instance = {
  245. new = function (class, parent)
  246. local obj = newInstance (class, parent);
  247.  
  248. if (pcall (function()return obj.Text;end)) then
  249. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  250. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  251. end;
  252.  
  253. return obj;
  254. end;
  255. };
  256. end;
  257. plr = game.Players.LocalPlayer
  258. mouse = plr:GetMouse()
  259. part = nil
  260. bp = nil
  261. particles = nil
  262. base = Instance.new("ScreenGui",plr.PlayerGui)
  263. bbg = Instance.new("BillboardGui",plr.Character.Head)
  264. bbg.Size = UDim2.new(0,200,0,50)
  265. bbg.StudsOffset = Vector3.new(0,1.5,3)
  266. bbgTl = Instance.new("TextLabel",bbg)
  267. bbgTl.BackgroundTransparency = 1
  268. bbgTl.Size = UDim2.new(10,0,1,0)
  269. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  270. bbgTl.Font = "Cartoon"
  271. bbgTl.Text = " "
  272. bbgTl.TextSize = 42
  273. bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
  274. bbgTl.TextStrokeTransparency = 0
  275. bbgTl.TextWrapped = true
  276. plr.Chatted:connect(function(msg)
  277. bbgTl.Text = msg
  278. wait(5)
  279. if bbgTl.Text == msg then
  280. bbgTl.Text = " "
  281. while true do
  282. bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  283. wait(.1)
  284. end
  285. end
  286. end)
  287. function thread(f)
  288. coroutine.resume(coroutine.create(f))
  289. end
  290. function clerp(a, b, t)
  291. local qa = {
  292. QuaternionFromCFrame(a)
  293. }
  294. local qb = {
  295. QuaternionFromCFrame(b)
  296. }
  297. local ax, ay, az = a.x, a.y, a.z
  298. local bx, by, bz = b.x, b.y, b.z
  299. local _t = 1 - t
  300. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  301. end
  302. function QuaternionFromCFrame(cf)
  303. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  304. local trace = m00 + m11 + m22
  305. if trace > 0 then
  306. local s = math.sqrt(1 + trace)
  307. local recip = 0.5 / s
  308. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  309. else
  310. local i = 0
  311. if m00 < m11 then
  312. i = 1
  313. end
  314. if m22 > (i == 0 and m00 or m11) then
  315. i = 2
  316. end
  317. if i == 0 then
  318. local s = math.sqrt(m00 - m11 - m22 + 1)
  319. local recip = 0.5 / s
  320. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  321. elseif i == 1 then
  322. local s = math.sqrt(m11 - m22 - m00 + 1)
  323. local recip = 0.5 / s
  324. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  325. elseif i == 2 then
  326. local s = math.sqrt(m22 - m00 - m11 + 1)
  327. local recip = 0.5 / s
  328. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  329. end
  330. end
  331. end
  332. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  333. local xs, ys, zs = x + x, y + y, z + z
  334. local wx, wy, wz = w * xs, w * ys, w * zs
  335. local xx = x * xs
  336. local xy = x * ys
  337. local xz = x * zs
  338. local yy = y * ys
  339. local yz = y * zs
  340. local zz = z * zs
  341. 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))
  342. end
  343. function QuaternionSlerp(a, b, t)
  344. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  345. local startInterp, finishInterp
  346. if cosTheta >= 1.0E-4 then
  347. if 1 - cosTheta > 1.0E-4 then
  348. local theta = math.acos(cosTheta)
  349. local invSinTheta = 1 / math.sin(theta)
  350. startInterp = math.sin((1 - t) * theta) * invSinTheta
  351. finishInterp = math.sin(t * theta) * invSinTheta
  352. else
  353. startInterp = 1 - t
  354. finishInterp = t
  355. end
  356. elseif 1 + cosTheta > 1.0E-4 then
  357. local theta = math.acos(-cosTheta)
  358. local invSinTheta = 1 / math.sin(theta)
  359. startInterp = math.sin((t - 1) * theta) * invSinTheta
  360. finishInterp = math.sin(t * theta) * invSinTheta
  361. else
  362. startInterp = t - 1
  363. finishInterp = t
  364. end
  365. 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
  366. end
  367. function rayCast(Position, Direction, Range, Ignore)
  368. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  369. end
  370.  
  371. wait()
  372. local plr = game:service'Players'.LocalPlayer
  373. local char = plr.Character
  374. local hum = char.Humanoid
  375. local ra = char["Right Arm"]
  376. local la= char["Left Arm"]
  377. local rl= char["Right Leg"]
  378. local ll = char["Left Leg"]
  379. local hed = char.Head
  380. local root = char.HumanoidRootPart
  381. local rootj = root.RootJoint
  382. local tors = char.Torso
  383. local mouse = plr:GetMouse()
  384. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  385. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  386. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  387. local maincolor = BrickColor.new("Magenta")
  388. cf = CFrame.new
  389. angles = CFrame.Angles
  390. attack = false
  391. euler=CFrame.fromEulerAnglesXYZ
  392. equipped = false
  393. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  394. RSH, LSH = nil, nil
  395. RW = Instance.new("Weld")
  396. LW = Instance.new("Weld")
  397. RH = tors["Right Hip"]
  398. LH = tors["Left Hip"]
  399. RSH = tors["Right Shoulder"]
  400. LSH = tors["Left Shoulder"]
  401. RSH.Parent = nil
  402. LSH.Parent = nil
  403. RW.Name = "RW"
  404. RW.Part0 = tors
  405. RW.C0 = CFrame.new(1.5, 0.5, 0)
  406. RW.C1 = CFrame.new(0, 0.5, 0)
  407. RW.Part1 = ra
  408. RW.Parent = tors
  409. LW.Name = "LW"
  410. LW.Part0 = tors
  411. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  412. LW.C1 = CFrame.new(0, 0.5, 0)
  413. LW.Part1 = la
  414. LW.Parent = tors
  415. print('User is '..plr.Name)
  416. Effects = {}
  417.  
  418.  
  419. ArtificialHB = Instance.new("BindableEvent", script)
  420. ArtificialHB.Name = "Heartbeat"
  421.  
  422. script:WaitForChild("Heartbeat")
  423.  
  424. frame = 1 / 60
  425. tf = 0
  426. allowframeloss = false
  427. tossremainder = false
  428. lastframe = tick()
  429. script.Heartbeat:Fire()
  430.  
  431. game:GetService("RunService").Heartbeat:connect(function(s, p)
  432. tf = tf + s
  433. if tf >= frame then
  434. if allowframeloss then
  435. script.Heartbeat:Fire()
  436. lastframe = tick()
  437. else
  438. for i = 1, math.floor(tf / frame) do
  439. script.Heartbeat:Fire()
  440. end
  441. lastframe = tick()
  442. end
  443. if tossremainder then
  444. tf = 0
  445. else
  446. tf = tf - frame * math.floor(tf / frame)
  447. end
  448. end
  449. end)
  450. local RbxUtility = LoadLibrary("RbxUtility")
  451. local Create = RbxUtility.Create
  452.  
  453. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  454. if hit.Parent == nil then
  455. return
  456. end
  457. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  458. for _, v in pairs(hit.Parent:children()) do
  459. if v:IsA("Humanoid") then
  460. h = v
  461. end
  462. end
  463. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  464. warn'No R15 allowed'
  465. hit.Parent:FindFirstChild("Head"):BreakJoints()
  466. end
  467.  
  468. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  469. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  470. if hit.Parent.DebounceHit.Value == true then
  471. return
  472. end
  473. end
  474. if insta == true then
  475. hit.Parent:FindFirstChild("Head"):BreakJoints()
  476. end
  477. local c = Create("ObjectValue"){
  478. Name = "creator",
  479. Value = game:service("Players").LocalPlayer,
  480. Parent = h,
  481. }
  482. game:GetService("Debris"):AddItem(c, .5)
  483. if HitSound ~= nil and HitPitch ~= nil then
  484. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  485. end
  486. local Damage = math.random(minim, maxim)
  487. local blocked = false
  488. local block = hit.Parent:findFirstChild("Block")
  489. if block ~= nil then
  490. if block.className == "IntValue" then
  491. if block.Value > 0 then
  492. blocked = true
  493. block.Value = block.Value - 1
  494. print(block.Value)
  495. end
  496. end
  497. end
  498. if blocked == false then
  499. h.Health = h.Health - Damage
  500. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  501. else
  502. h.Health = h.Health - (Damage / 2)
  503. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  504. end
  505. if Type == "Knockdown" then
  506. local hum = hit.Parent.Humanoid
  507. hum.PlatformStand = true
  508. coroutine.resume(coroutine.create(function(HHumanoid)
  509. swait(1)
  510. HHumanoid.PlatformStand = false
  511. end), hum)
  512. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  513. local bodvol = Create("BodyVelocity"){
  514. velocity = angle * knockback,
  515. P = 5000,
  516. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  517. Parent = hit,
  518. }
  519. local rl = Create("BodyAngularVelocity"){
  520. P = 3000,
  521. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  522. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  523. Parent = hit,
  524. }
  525. game:GetService("Debris"):AddItem(bodvol, .5)
  526. game:GetService("Debris"):AddItem(rl, .5)
  527. elseif Type == "Normal" then
  528. local vp = Create("BodyVelocity"){
  529. P = 500,
  530. maxForce = Vector3.new(math.huge, 0, math.huge),
  531. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  532. }
  533. if knockback > 0 then
  534. vp.Parent = hit.Parent.Torso
  535. end
  536. game:GetService("Debris"):AddItem(vp, .5)
  537. elseif Type == "Up" then
  538. local bodyVelocity = Create("BodyVelocity"){
  539. velocity = Vector3.new(0, 20, 0),
  540. P = 5000,
  541. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  542. Parent = hit,
  543. }
  544. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  545. elseif Type == "DarkUp" then
  546. coroutine.resume(coroutine.create(function()
  547. for i = 0, 1, 0.1 do
  548. swait()
  549. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  550. end
  551. end))
  552. local bodyVelocity = Create("BodyVelocity"){
  553. velocity = Vector3.new(0, 20, 0),
  554. P = 5000,
  555. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  556. Parent = hit,
  557. }
  558. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  559. elseif Type == "Snare" then
  560. local bp = Create("BodyPosition"){
  561. P = 2000,
  562. D = 100,
  563. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  564. position = hit.Parent.Torso.Position,
  565. Parent = hit.Parent.Torso,
  566. }
  567. game:GetService("Debris"):AddItem(bp, 1)
  568. elseif Type == "Freeze" then
  569. local BodPos = Create("BodyPosition"){
  570. P = 50000,
  571. D = 1000,
  572. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  573. position = hit.Parent.Torso.Position,
  574. Parent = hit.Parent.Torso,
  575. }
  576. local BodGy = Create("BodyGyro") {
  577. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  578. P = 20e+003,
  579. Parent = hit.Parent.Torso,
  580. cframe = hit.Parent.Torso.CFrame,
  581. }
  582. hit.Parent.Torso.Anchored = true
  583. coroutine.resume(coroutine.create(function(Part)
  584. swait(1.5)
  585. Part.Anchored = false
  586. end), hit.Parent.Torso)
  587. game:GetService("Debris"):AddItem(BodPos, 3)
  588. game:GetService("Debris"):AddItem(BodGy, 3)
  589. end
  590. local debounce = Create("BoolValue"){
  591. Name = "DebounceHit",
  592. Parent = hit.Parent,
  593. Value = true,
  594. }
  595. game:GetService("Debris"):AddItem(debounce, Delay)
  596. c = Create("ObjectValue"){
  597. Name = "creator",
  598. Value = Player,
  599. Parent = h,
  600. }
  601. game:GetService("Debris"):AddItem(c, .5)
  602. end
  603. end
  604.  
  605. function ShowDamage(Pos, Text, Time, Color)
  606. local Rate = (1 / 30)
  607. local Pos = (Pos or Vector3.new(0, 0, 0))
  608. local Text = (Text or "")
  609. local Time = (Time or 2)
  610. local Color = (Color or Color3.new(1, 0, 1))
  611. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  612. EffectPart.Anchored = true
  613. local BillboardGui = Create("BillboardGui"){
  614. Size = UDim2.new(3, 0, 3, 0),
  615. Adornee = EffectPart,
  616. Parent = EffectPart,
  617. }
  618. local TextLabel = Create("TextLabel"){
  619. BackgroundTransparency = 1,
  620. Size = UDim2.new(1, 0, 1, 0),
  621. Text = Text,
  622. Font = "Highway",
  623. TextColor3 = Color,
  624. TextScaled = true,
  625. Parent = BillboardGui,
  626. }
  627. game.Debris:AddItem(EffectPart, (Time))
  628. EffectPart.Parent = game:GetService("Workspace")
  629. delay(0, function()
  630. local Frames = (Time / Rate)
  631. for Frame = 1, Frames do
  632. wait(Rate)
  633. local Percent = (Frame / Frames)
  634. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  635. TextLabel.TextTransparency = Percent
  636. end
  637. if EffectPart and EffectPart.Parent then
  638. EffectPart:Destroy()
  639. end
  640. end)
  641. end
  642. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  643. for _, c in pairs(workspace:children()) do
  644. local hum = c:findFirstChild("Humanoid")
  645. if hum ~= nil then
  646. local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
  647. if head ~= nil then
  648. local targ = head.Position - Part.Position
  649. local mag = targ.magnitude
  650. if mag <= Magnitude and c.Name ~= plr.Name then
  651. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
  652. end
  653. end
  654. end
  655. end
  656. end
  657. CFuncs = {
  658. Part = {
  659. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  660. local Part = Create("Part")({
  661. Parent = Parent,
  662. Reflectance = Reflectance,
  663. Transparency = Transparency,
  664. CanCollide = false,
  665. Locked = true,
  666. BrickColor = BrickColor.new(tostring(BColor)),
  667. Name = Name,
  668. Size = Size,
  669. Material = Material
  670. })
  671. RemoveOutlines(Part)
  672. return Part
  673. end
  674. },
  675. Mesh = {
  676. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  677. local Msh = Create(Mesh)({
  678. Parent = Part,
  679. Offset = OffSet,
  680. Scale = Scale
  681. })
  682. if Mesh == "SpecialMesh" then
  683. Msh.MeshType = MeshType
  684. Msh.MeshId = MeshId
  685. end
  686. return Msh
  687. end
  688. },
  689. Mesh = {
  690. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  691. local Msh = Create(Mesh)({
  692. Parent = Part,
  693. Offset = OffSet,
  694. Scale = Scale
  695. })
  696. if Mesh == "SpecialMesh" then
  697. Msh.MeshType = MeshType
  698. Msh.MeshId = MeshId
  699. end
  700. return Msh
  701. end
  702. },
  703. Weld = {
  704. Create = function(Parent, Part0, Part1, C0, C1)
  705. local Weld = Create("Weld")({
  706. Parent = Parent,
  707. Part0 = Part0,
  708. Part1 = Part1,
  709. C0 = C0,
  710. C1 = C1
  711. })
  712. return Weld
  713. end
  714. },
  715. Sound = {
  716. Create = function(id, par, vol, pit)
  717. coroutine.resume(coroutine.create(function()
  718. local S = Create("Sound")({
  719. Volume = vol,
  720. Pitch = pit or 1,
  721. SoundId = id,
  722. Parent = par or workspace
  723. })
  724. wait()
  725. S:play()
  726. game:GetService("Debris"):AddItem(S, 6)
  727. end))
  728. end
  729. },
  730. ParticleEmitter = {
  731. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  732. local fp = Create("ParticleEmitter")({
  733. Parent = Parent,
  734. Color = ColorSequence.new(Color1, Color2),
  735. LightEmission = LightEmission,
  736. Size = Size,
  737. Texture = Texture,
  738. Transparency = Transparency,
  739. ZOffset = ZOffset,
  740. Acceleration = Accel,
  741. Drag = Drag,
  742. LockedToPart = LockedToPart,
  743. VelocityInheritance = VelocityInheritance,
  744. EmissionDirection = EmissionDirection,
  745. Enabled = Enabled,
  746. Lifetime = LifeTime,
  747. Rate = Rate,
  748. Rotation = Rotation,
  749. RotSpeed = RotSpeed,
  750. Speed = Speed,
  751. VelocitySpread = VelocitySpread
  752. })
  753. return fp
  754. end
  755. }
  756. }
  757. function RemoveOutlines(part)
  758. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  759. end
  760. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  761. local Part = Create("Part")({
  762. formFactor = FormFactor,
  763. Parent = Parent,
  764. Reflectance = Reflectance,
  765. Transparency = Transparency,
  766. CanCollide = false,
  767. Locked = true,
  768. BrickColor = BrickColor.new(tostring(BColor)),
  769. Name = Name,
  770. Size = Size,
  771. Material = Material
  772. })
  773. RemoveOutlines(Part)
  774. return Part
  775. end
  776. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  777. local Msh = Create(Mesh)({
  778. Parent = Part,
  779. Offset = OffSet,
  780. Scale = Scale
  781. })
  782. if Mesh == "SpecialMesh" then
  783. Msh.MeshType = MeshType
  784. Msh.MeshId = MeshId
  785. end
  786. return Msh
  787. end
  788. function CreateWeld(Parent, Part0, Part1, C0, C1)
  789. local Weld = Create("Weld")({
  790. Parent = Parent,
  791. Part0 = Part0,
  792. Part1 = Part1,
  793. C0 = C0,
  794. C1 = C1
  795. })
  796. return Weld
  797. end
  798. EffectModel = Instance.new("Model", char)
  799. Effects = {
  800. Block = {
  801. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  802. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  803. prt.Anchored = true
  804. prt.CFrame = cframe
  805. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  806. game:GetService("Debris"):AddItem(prt, 10)
  807. if Type == 1 or Type == nil then
  808. table.insert(Effects, {
  809. prt,
  810. "Block1",
  811. delay,
  812. x3,
  813. y3,
  814. z3,
  815. msh
  816. })
  817. elseif Type == 2 then
  818. table.insert(Effects, {
  819. prt,
  820. "Block2",
  821. delay,
  822. x3,
  823. y3,
  824. z3,
  825. msh
  826. })
  827. else
  828. table.insert(Effects, {
  829. prt,
  830. "Block3",
  831. delay,
  832. x3,
  833. y3,
  834. z3,
  835. msh
  836. })
  837. end
  838. end
  839. },
  840. Sphere = {
  841. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  842. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  843. prt.Anchored = true
  844. prt.CFrame = cframe
  845. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  846. game:GetService("Debris"):AddItem(prt, 10)
  847. table.insert(Effects, {
  848. prt,
  849. "Cylinder",
  850. delay,
  851. x3,
  852. y3,
  853. z3,
  854. msh
  855. })
  856. end
  857. },
  858. Cylinder = {
  859. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  860. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  861. prt.Anchored = true
  862. prt.CFrame = cframe
  863. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  864. game:GetService("Debris"):AddItem(prt, 10)
  865. table.insert(Effects, {
  866. prt,
  867. "Cylinder",
  868. delay,
  869. x3,
  870. y3,
  871. z3,
  872. msh
  873. })
  874. end
  875. },
  876. Wave = {
  877. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  878. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  879. prt.Anchored = true
  880. prt.CFrame = cframe
  881. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  882. game:GetService("Debris"):AddItem(prt, 10)
  883. table.insert(Effects, {
  884. prt,
  885. "Cylinder",
  886. delay,
  887. x3 / 60,
  888. y3 / 60,
  889. z3 / 60,
  890. msh
  891. })
  892. end
  893. },
  894. Ring = {
  895. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  896. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  897. prt.Anchored = true
  898. prt.CFrame = cframe
  899. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  900. game:GetService("Debris"):AddItem(prt, 10)
  901. table.insert(Effects, {
  902. prt,
  903. "Cylinder",
  904. delay,
  905. x3,
  906. y3,
  907. z3,
  908. msh
  909. })
  910. end
  911. },
  912. Break = {
  913. Create = function(brickcolor, cframe, x1, y1, z1)
  914. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  915. prt.Anchored = true
  916. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  917. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  918. local num = math.random(10, 50) / 1000
  919. game:GetService("Debris"):AddItem(prt, 10)
  920. table.insert(Effects, {
  921. prt,
  922. "Shatter",
  923. num,
  924. prt.CFrame,
  925. math.random() - math.random(),
  926. 0,
  927. math.random(50, 100) / 100
  928. })
  929. end
  930. }
  931. }
  932. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  933. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  934. prt.Anchored = true
  935. prt.CFrame = cframe
  936. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  937. game:GetService("Debris"):AddItem(prt, 10)
  938. if Type == 1 or Type == nil then
  939. table.insert(Effects, {
  940. prt,
  941. "Block1",
  942. delay,
  943. x3,
  944. y3,
  945. z3,
  946. msh
  947. })
  948. elseif Type == 2 then
  949. table.insert(Effects, {
  950. prt,
  951. "Block2",
  952. delay,
  953. x3,
  954. y3,
  955. z3,
  956. msh
  957. })
  958. elseif Type == 3 then
  959. table.insert(Effects, {
  960. prt,
  961. "Block3",
  962. delay,
  963. x3,
  964. y3,
  965. z3,
  966. msh
  967. })
  968. end
  969. end
  970. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  971. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  972. prt.Anchored = true
  973. prt.CFrame = cframe
  974. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  975. game:GetService("Debris"):AddItem(prt, 10)
  976. table.insert(Effects, {
  977. prt,
  978. "Cylinder",
  979. delay,
  980. x3,
  981. y3,
  982. z3,
  983. msh
  984. })
  985. end
  986. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  987. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  988. prt.Anchored = true
  989. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  990. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  991. game:GetService("Debris"):AddItem(prt, 10)
  992. table.insert(Effects, {
  993. prt,
  994. "Cylinder",
  995. delay,
  996. x3,
  997. y3,
  998. z3,
  999. msh
  1000. })
  1001. end
  1002. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1003. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1004. prt.Anchored = true
  1005. prt.CFrame = cframe
  1006. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1007. game:GetService("Debris"):AddItem(prt, 10)
  1008. table.insert(Effects, {
  1009. prt,
  1010. "Cylinder",
  1011. delay,
  1012. x3,
  1013. y3,
  1014. z3,
  1015. msh
  1016. })
  1017. end
  1018. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1019. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1020. prt.Anchored = true
  1021. prt.CFrame = cframe
  1022. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1023. game:GetService("Debris"):AddItem(prt, 10)
  1024. table.insert(Effects, {
  1025. prt,
  1026. "Cylinder",
  1027. delay,
  1028. x3,
  1029. y3,
  1030. z3,
  1031. msh
  1032. })
  1033. end
  1034. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1035. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1036. prt.Anchored = true
  1037. prt.CFrame = cframe
  1038. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1039. game:GetService("Debris"):AddItem(prt, 10)
  1040. table.insert(Effects, {
  1041. prt,
  1042. "Cylinder",
  1043. delay,
  1044. x3,
  1045. y3,
  1046. z3,
  1047. msh
  1048. })
  1049. end
  1050. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1051. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1052. prt.Anchored = true
  1053. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1054. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1055. local num = math.random(10, 50) / 1000
  1056. game:GetService("Debris"):AddItem(prt, 10)
  1057. table.insert(Effects, {
  1058. prt,
  1059. "Shatter",
  1060. num,
  1061. prt.CFrame,
  1062. math.random() - math.random(),
  1063. 0,
  1064. math.random(50, 100) / 100
  1065. })
  1066. end
  1067. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1068. local fp=Instance.new("Part")
  1069. fp.formFactor=formfactor
  1070. fp.Parent=parent
  1071. fp.Reflectance=reflectance
  1072. fp.Transparency=transparency
  1073. fp.CanCollide=false
  1074. fp.Locked=true
  1075. fp.BrickColor=brickcolor
  1076. fp.Name=name
  1077. fp.Size=size
  1078. fp.Position=tors.Position
  1079. RemoveOutlines(fp)
  1080. fp.Material="SmoothPlastic"
  1081. fp:BreakJoints()
  1082. return fp
  1083. end
  1084.  
  1085. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1086. local mesh=Instance.new(Mesh)
  1087. mesh.Parent=part
  1088. if Mesh=="SpecialMesh" then
  1089. mesh.MeshType=meshtype
  1090. if meshid~="nil" then
  1091. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1092. end
  1093. end
  1094. mesh.Offset=offset
  1095. mesh.Scale=scale
  1096. return mesh
  1097. end
  1098. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1099. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  1100. prt.Anchored=true
  1101. prt.Material = "Neon"
  1102. prt.CFrame=cframe
  1103. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1104. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  1105. game:GetService("Debris"):AddItem(prt,5)
  1106. coroutine.resume(coroutine.create(function(Part,Mesh)
  1107. for i=0,1,delay do
  1108. swait()
  1109. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1110. Part.Transparency=i
  1111. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  1112. end
  1113. Part.Parent=nil
  1114. end),prt,msh)
  1115. end
  1116. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1117. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  1118. prt.Anchored=true
  1119. prt.Material = "Neon"
  1120. prt.CFrame=cframe
  1121. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  1122. game:GetService("Debris"):AddItem(prt,5)
  1123. coroutine.resume(coroutine.create(function(Part,Mesh)
  1124. local rtype = rottype
  1125. for i=0,1,delay do
  1126. swait()
  1127. if rtype == 1 then
  1128. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1129. elseif rtype == 2 then
  1130. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1131. end
  1132. prt.Transparency=i
  1133. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  1134. end
  1135. Part.Parent=nil
  1136. end),prt,msh)
  1137. end
  1138.  
  1139.  
  1140.  
  1141. New = function(Object, Parent, Name, Data)
  1142. local Object = Instance.new(Object)
  1143. for Index, Value in pairs(Data or {}) do
  1144. Object[Index] = Value
  1145. end
  1146. Object.Parent = Parent
  1147. Object.Name = Name
  1148. return Object
  1149. end
  1150.  
  1151. RubiksCube = New("Model",char,"RubiksCube",{})
  1152.  
  1153. local NewInstance = function(instance,parent,properties)
  1154. local inst = Instance.new(instance,parent)
  1155. if(properties)then
  1156. for i,v in next, properties do
  1157. pcall(function() inst[i] = v end)
  1158. end
  1159. end
  1160. return inst;
  1161. end
  1162. local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
  1163.  
  1164. function intro()
  1165. attack = true
  1166. for i = 0,2,0.1 do
  1167. swait()
  1168. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  1169. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  1170. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3)
  1171. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1172. end
  1173. end
  1174.  
  1175. local mouse = game.Players.LocalPlayer:GetMouse()
  1176. local running = false
  1177.  
  1178. function getTool()
  1179. for _, kid in ipairs(script.Parent:GetChildren()) do
  1180. if kid.className == "Tool" then return kid end
  1181. end
  1182. return nil
  1183. end
  1184.  
  1185.  
  1186. mouse.KeyDown:connect(function (key) -- Run function
  1187. key = string.lower(key)
  1188. if string.byte(key) == 48 then
  1189. running = true
  1190. local keyConnection = mouse.KeyUp:connect(function (key)
  1191. if string.byte(key) == 48 then
  1192. running = false
  1193. end
  1194. end)
  1195. for i = 1,5 do
  1196. game.Workspace.CurrentCamera.FieldOfView = (100+(i*2))
  1197. wait()
  1198. end
  1199. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
  1200. repeat wait () until running == false
  1201. keyConnection:disconnect()
  1202. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  1203. for i = 1,5 do
  1204. game.Workspace.CurrentCamera.FieldOfView = (110-(i*2))
  1205. wait()
  1206. end
  1207. end
  1208. end)
  1209. local idle=0
  1210. local sine = 0
  1211. local change = 1
  1212. local val = 0
  1213. toim = 0
  1214. hum.Animator.Parent = nil
  1215. idleanim=.4
  1216. while true do
  1217. swait()
  1218. sine = sine + change
  1219. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1220. local velderp=root.Velocity.y
  1221. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1222. if equipped==true or equipped==false then
  1223. if attack==false then
  1224. idle=idle+1
  1225. else
  1226. idle=0
  1227. end
  1228. if root.Velocity.y > 1 and hitfloor==nil then
  1229. Anim="Jump"
  1230. if attack==false then
  1231. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1232. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1233. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1234. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1235. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1236. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1237. end
  1238. elseif root.Velocity.y < -1 and hitfloor==nil then
  1239. Anim="Fall"
  1240. if attack==false then
  1241. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1242. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1243. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1244. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1245. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1246. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1247. end
  1248. elseif torvel<1 and hitfloor~=nil then
  1249. Anim="Idle"
  1250. change = 2
  1251.  
  1252. if attack==false then
  1253. 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)
  1254. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1255. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1256. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1257. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3)
  1258. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1)
  1259. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1)
  1260. end
  1261.  
  1262. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1263. Anim="Walk"
  1264. change = 1
  1265. if attack==false then
  1266. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1267. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1268. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1269. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1270. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1271. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1272. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1)
  1273. end
  1274. elseif torvel>=22 and hitfloor~=nil then
  1275. Anim="Run"
  1276. change = 2
  1277. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1278. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1279. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
  1280. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
  1281. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1282. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1283. HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15)
  1284.  
  1285. end
  1286. end
  1287. if 0 < #Effects then
  1288. for e = 1, #Effects do
  1289. if Effects[e] ~= nil then
  1290. local Thing = Effects[e]
  1291. if Thing ~= nil then
  1292. local Part = Thing[1]
  1293. local Mode = Thing[2]
  1294. local Delay = Thing[3]
  1295. local IncX = Thing[4]
  1296. local IncY = Thing[5]
  1297. local IncZ = Thing[6]
  1298. if 1 >= Thing[1].Transparency then
  1299. if Thing[2] == "Block1" then
  1300. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1301. local Mesh = Thing[1].Mesh
  1302. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1303. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1304. elseif Thing[2] == "Block2" then
  1305. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1306. local Mesh = Thing[7]
  1307. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1308. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1309. elseif Thing[2] == "Block3" then
  1310. 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)
  1311. local Mesh = Thing[7]
  1312. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1313. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1314. elseif Thing[2] == "Cylinder" then
  1315. local Mesh = Thing[1].Mesh
  1316. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1317. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1318. elseif Thing[2] == "Blood" then
  1319. local Mesh = Thing[7]
  1320. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1321. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1322. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1323. elseif Thing[2] == "Elec" then
  1324. local Mesh = Thing[1].Mesh
  1325. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1326. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1327. elseif Thing[2] == "Disappear" then
  1328. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1329. elseif Thing[2] == "Shatter" then
  1330. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1331. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1332. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1333. Thing[6] = Thing[6] + Thing[5]
  1334. end
  1335.  
  1336. end
  1337. end
  1338. end
  1339. end
  1340. end
  1341. end
  1342.  
  1343. --Mkay. Bye!
  1344. --Wazzup...
  1345. --Nop. Not the end.
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360. --JUST FREACKING GO DOWN. YEET.
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403. ParticleSettings = {
  1404. Lifetime = 1,
  1405. Texture = 'rbxassetid://1209757190',
  1406. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  1407. Color1 = ColorSequence.new(BrickColor.new('Pastel yellow').Color,BrickColor.new('Institutional white').Color),
  1408. Color2 = ColorSequence.new(BrickColor.new('Institutional white').Color,BrickColor.new('New Yeller').Color),
  1409. AllBody = true,
  1410. UpperBodyOnly = false,
  1411. LowerBodyOnly = false,
  1412. Accessories = true,
  1413. Extras = true,
  1414. }
  1415. m = game:service'Players'.LocalPlayer:GetMouse()
  1416. local p=game:service("Players").LocalPlayer
  1417. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  1418. local char=p.Character
  1419. script.Parent=char
  1420. local tor=char.Torso
  1421. local hed=char.Head
  1422. local larm=char:FindFirstChild("Left Arm")
  1423. local rarm=char:FindFirstChild("Right Arm")
  1424. local lleg=char:FindFirstChild("Left Leg")
  1425. local rleg=char:FindFirstChild("Right Leg")
  1426. local hum=char.Humanoid
  1427. local cam=workspace.CurrentCamera
  1428. local root=char.HumanoidRootPart
  1429. local mouse=p:GetMouse()
  1430. local hb=game:service("RunService").Heartbeat
  1431. local rs=game:service("RunService").Stepped
  1432. hum.MaxHealth= math.huge
  1433. hum.Health=hum.MaxHealth
  1434. local hair4 = Instance.new("Part",char)
  1435. hair4.Material="Neon"
  1436. hair4.CanCollide=false
  1437. hair4.Size=Vector3.new(.5,2,0)
  1438. hair4.BrickColor=BrickColor.Red()
  1439. hair4.Transparency=1
  1440.  
  1441.  
  1442.  
  1443. local w = Instance.new("Weld",hair4)
  1444. w.Part1=hair4
  1445. w.Part0=tor
  1446. w.C0=CFrame.new(-0.7,0,0.15)
  1447.  
  1448. local hair3 = Instance.new("Part",char)
  1449. hair3.Material="Neon"
  1450. hair3.CanCollide=false
  1451. hair3.Size=Vector3.new(.5,2,0)
  1452. hair3.BrickColor=BrickColor.Red()
  1453. hair3.Transparency=1
  1454.  
  1455.  
  1456.  
  1457. local w = Instance.new("Weld",hair3)
  1458. w.Part1=hair3
  1459. w.Part0=tor
  1460. w.C0=CFrame.new(0.7,0,0.15)
  1461.  
  1462. local bladee = Instance.new("ParticleEmitter",hair4)
  1463. bladee.Texture = "http://www.roblox.com/asset/?id=298984512"
  1464. bladee.LightEmission = 0.625
  1465. bladee.EmissionDirection = "Left"
  1466. bladee.LockedToPart = true
  1467. bladee.Color = ParticleSettings.Color2
  1468. bladee.Rate = 100000
  1469. bladee.Lifetime = NumberRange.new(.5)
  1470. bladee.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  1471. bladee.Speed = NumberRange.new(5)
  1472. bladee.Acceleration = Vector3.new(-30,40,0)
  1473.  
  1474. local bladee3 = Instance.new("ParticleEmitter",hair3)
  1475. bladee3.Texture = "http://www.roblox.com/asset/?id=298984512"
  1476. bladee3.LightEmission = 0.625
  1477. bladee3.EmissionDirection = "Right"
  1478. bladee3.LockedToPart = true
  1479. bladee3.Color = ParticleSettings.Color2
  1480. bladee3.Rate = 100000
  1481. bladee3.Lifetime = NumberRange.new(.5)
  1482. bladee3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  1483. bladee3.Speed = NumberRange.new(5)
  1484. bladee3.Acceleration = Vector3.new(30,40,0)
  1485. m.KeyDown:connect(function(k)
  1486. if k == "e" then
  1487. if (hum ~= nil) then
  1488. hum.Sit = true
  1489. end
  1490. end
  1491. end)
  1492.  
  1493. --Okay... It iz teh end.
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566. --OH FU**! WHY ISN'T IT THE END YET? >:(
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597. --end ;~;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement