Advertisement
Guest User

Nahid Jevil

a guest
Feb 20th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.29 KB | None | 0 0
  1. spawn(function()
  2. local plr = owner
  3. local char = plr.Character
  4. local hum = char:FindFirstChildOfClass("Humanoid")
  5. local idleanim = Instance.new("Animation")
  6. idleanim.Name = "Roblox Idle Animation"
  7. idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  8. local idleanimplay = hum:LoadAnimation(idleanim)
  9. idleanimplay:Play()
  10. wait(0.1)
  11. if char:FindFirstChild("Animate") then
  12. char.Animate:Destroy()
  13. end
  14. local remote = Instance.new("RemoteEvent", char)
  15. remote.Name = "ReplicationEvent"
  16. local client = NLS([==[
  17. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  18. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  19. spawn(function()
  20. while game:GetService("RunService").Heartbeat:Wait() do
  21. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  22. end
  23. end)
  24. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  25. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  26. remote:FireServer(1, input.KeyCode)
  27. end
  28. end)
  29. mouse.Button1Down:Connect(function()
  30. remote:FireServer(2)
  31. end)
  32. remote.OnClientEvent:Connect(function()
  33. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  34. end)
  35. ]==], char)
  36. local crabrave = Instance.new("Sound", char.Torso)
  37. local RS = char.Torso["Right Shoulder"]
  38. local LS = char.Torso["Left Shoulder"]
  39. local RH = char.Torso["Right Hip"]
  40. local LH = char.Torso["Left Hip"]
  41. local rootj = char.HumanoidRootPart.RootJoint
  42. local throwbutton = false
  43. local throw = false
  44. local normalanim = true
  45. local attackd = false
  46. local animpose = "Idle"
  47. local timepos = 0
  48. local sine = 0
  49. local RSnor = RS.C0
  50. local LSnor = LS.C0
  51. local RHnor = RH.C0
  52. local LHnor = LH.C0
  53. local rootjnor = rootj.C0
  54.  
  55. ---------------------------------
  56. --------------Set up-------------
  57. ---------------------------------
  58.  
  59. ---------------------------------
  60. -----------Wrapping up-----------
  61. ---------------------------------
  62.  
  63. while game:GetService("RunService").Heartbeat:Wait() do
  64. if normalanim then
  65. sine = sine + 1
  66. end
  67. if crabrave.Parent == char.Torso then
  68. crabrave.SoundId = "rbxassetid://0"
  69. crabrave.Playing = true
  70. crabrave.Volume = 1
  71. crabrave.Looped = true
  72. timepos = crabrave.TimePosition
  73. else
  74. crabrave = Instance.new("Sound", char.Torso)
  75. crabrave.TimePosition = timepos
  76. end
  77. if remote.Parent == char then
  78. remote.Name = "ReplicationEvent"
  79. else
  80. remote = Instance.new("RemoteEvent", char)
  81. end
  82. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  83. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  84. animpose = "Walking"
  85. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  86. animpose = "Jumping"
  87. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  88. animpose = "Falling"
  89. else
  90. animpose = "Idle"
  91. end
  92. if animpose == "Idle" and normalanim then
  93.  
  94. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  95. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  96. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  97. elseif animpose == "Walking" and normalanim then
  98.  
  99. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  100. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  101. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  102. elseif animpose == "Jumping" and normalanim then
  103.  
  104. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  105. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  106. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  107. elseif animpose == "Falling" and normalanim then
  108.  
  109. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  110. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  111. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  112. end
  113. end
  114. end)
  115.  
  116.  
  117. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  118. local Player,game,owner = owner,game
  119. local RealPlayer = Player
  120. do
  121. local rp = RealPlayer
  122. script.Parent = rp.Character
  123.  
  124. --RemoteEvent for communicating
  125. local Event = Instance.new("RemoteEvent")
  126. Event.Name = "UserInput_Event"
  127.  
  128. --Fake event to make stuff like Mouse.KeyDown work
  129. local function fakeEvent()
  130. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  131. t.connect = t.Connect
  132. return t
  133. end
  134.  
  135. --Creating fake input objects with fake variables
  136. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  137. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  138. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  139. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  140. end}
  141. --Merged 2 functions into one by checking amount of arguments
  142. CAS.UnbindAction = CAS.BindAction
  143.  
  144. --This function will trigger the events that have been :Connect()'ed
  145. local function te(self,ev,...)
  146. local t = m[ev]
  147. if t and t._fakeEvent then
  148. for _,f in pairs(t.Functions) do
  149. f(...)
  150. end
  151. end
  152. end
  153. m.TrigEvent = te
  154. UIS.TrigEvent = te
  155.  
  156. Event.OnServerEvent:Connect(function(plr,io)
  157. if plr~=rp then return end
  158. m.Target = io.Target
  159. m.Hit = io.Hit
  160. if not io.isMouse then
  161. local b = io.UserInputState == Enum.UserInputState.Begin
  162. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  163. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  164. end
  165. for _,t in pairs(CAS.Actions) do
  166. for _,k in pairs(t.Keys) do
  167. if k==io.KeyCode then
  168. t.Function(t.Name,io.UserInputState,io)
  169. end
  170. end
  171. end
  172. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  173. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  174. end
  175. end)
  176. Event.Parent = NLS([==[
  177. local Player = game:GetService("Players").LocalPlayer
  178. local Event = script:WaitForChild("UserInput_Event")
  179.  
  180. local Mouse = Player:GetMouse()
  181. local UIS = game:GetService("UserInputService")
  182. local input = function(io,a)
  183. if a then return end
  184. --Since InputObject is a client-side instance, we create and pass table instead
  185. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  186. end
  187. UIS.InputBegan:Connect(input)
  188. UIS.InputEnded:Connect(input)
  189.  
  190. local h,t
  191. --Give the server mouse data 30 times every second, but only if the values changed
  192. --If player is not moving their mouse, client won't fire events
  193. while wait(1/30) do
  194. if h~=Mouse.Hit or t~=Mouse.Target then
  195. h,t=Mouse.Hit,Mouse.Target
  196. Event:FireServer({isMouse=true,Target=t,Hit=h})
  197. end
  198. end]==],Player.Character)
  199.  
  200. ----Sandboxed game object that allows the usage of client-side methods and services
  201. --Real game object
  202. local _rg = game
  203.  
  204. --Metatable for fake service
  205. local fsmt = {
  206. __index = function(self,k)
  207. local s = rawget(self,"_RealService")
  208. if s then return s[k] end
  209. end,
  210. __newindex = function(self,k,v)
  211. local s = rawget(self,"_RealService")
  212. if s then s[k]=v end
  213. end,
  214. __call = function(self,...)
  215. local s = rawget(self,"_RealService")
  216. if s then return s(...) end
  217. end
  218. }
  219. local function FakeService(t,RealService)
  220. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  221. return setmetatable(t,fsmt)
  222. end
  223.  
  224. --Fake game object
  225. local g = {
  226. GetService = function(self,s)
  227. return self[s]
  228. end,
  229. Players = FakeService({
  230. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  231. },"Players"),
  232. UserInputService = FakeService(UIS,"UserInputService"),
  233. ContextActionService = FakeService(CAS,"ContextActionService"),
  234. }
  235. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  236. g.service = g.GetService
  237.  
  238. g.RunService = FakeService({
  239. RenderStepped = _rg:GetService("RunService").Heartbeat,
  240. BindToRenderStep = function(self,name,_,fun)
  241. self._btrs[name] = self.Heartbeat:Connect(fun)
  242. end,
  243. UnbindFromRenderStep = function(self,name)
  244. self._btrs[name]:Disconnect()
  245. end,
  246. },"RunService")
  247.  
  248. setmetatable(g,{
  249. __index=function(self,s)
  250. return _rg:GetService(s) or typeof(_rg[s])=="function"
  251. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  252. end,
  253. __newindex = fsmt.__newindex,
  254. __call = fsmt.__call
  255. })
  256. --Changing owner to fake player object to support owner:GetMouse()
  257. game,owner = g,g.Players.LocalPlayer
  258. end
  259.  
  260. Player = owner
  261. PlayerGui = Player.PlayerGui
  262. Cam = workspace.CurrentCamera
  263. Backpack = Player.Backpack
  264. Character = Player.Character
  265. Humanoid = Character.Humanoid
  266. Mouse = Player:GetMouse()
  267. RootPart = Character["HumanoidRootPart"]
  268. Torso = Character["Torso"]
  269. Head = Character["Head"]
  270. RightArm = Character["Right Arm"]
  271. LeftArm = Character["Left Arm"]
  272. RightLeg = Character["Right Leg"]
  273. LeftLeg = Character["Left Leg"]
  274. RootJoint = RootPart["RootJoint"]
  275. Neck = Torso["Neck"]
  276. RightShoulder = Torso["Right Shoulder"]
  277. LeftShoulder = Torso["Left Shoulder"]
  278. RightHip = Torso["Right Hip"]
  279. LeftHip = Torso["Left Hip"]
  280.  
  281. Character = Player.Character
  282. Humanoid = Character.Humanoid
  283.  
  284. ---------
  285. plr = game.Players.LocalPlayer
  286. chara = plr.Character
  287. mouse = plr:GetMouse()
  288. Create = Instance.new
  289. Huge = math.huge
  290.  
  291.  
  292.  
  293. Player = game:GetService("Players").LocalPlayer
  294. PlayerGui = Player.PlayerGui
  295. Cam = workspace.CurrentCamera
  296. Backpack = Player.Backpack
  297. Character = Player.Character
  298. char = Player.Character
  299. Humanoid = Character.Humanoid
  300. Mouse = Player:GetMouse()
  301. RootPart = Character["HumanoidRootPart"]
  302. Torso = Character["Torso"]
  303. Head = Character["Head"]
  304. RightArm = Character["Right Arm"]
  305. LeftArm = Character["Left Arm"]
  306. RightLeg = Character["Right Leg"]
  307. LeftLeg = Character["Left Leg"]
  308. RootJoint = RootPart["RootJoint"]
  309. Neck = Torso["Neck"]
  310. RightShoulder = Torso["Right Shoulder"]
  311. LeftShoulder = Torso["Left Shoulder"]
  312. RightHip = Torso["Right Hip"]
  313. LeftHip = Torso["Left Hip"]
  314.  
  315. local Orin = "http://www.roblox.com/asset/?id=7074786"
  316. Head.face.Texture = Orin
  317. function weld(a, b, acf)
  318. local w = Instance.new("Weld", a)
  319. w.Part0 = a
  320. w.Part1 = b
  321. w.C0 = acf
  322. end
  323.  
  324. local righteyebrickcolor = "Institutional white"
  325. local reye = Instance.new("Part", char)
  326. reye.CanCollide = false
  327. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  328. reye.Material = "Neon"
  329. reye.Size = Vector3.new(.25,.35,.25)
  330. weld(reye, char.Head, CFrame.new(-0.12,-0.2,0.55), CFrame.new(1,0,0))
  331. m1 = Instance.new("SpecialMesh", reye)
  332. m1.MeshType = "Sphere"
  333. m1.Scale = Vector3.new(0.9,0.9,0.9)
  334. reye.Locked = true
  335. reye.Name = "re"
  336.  
  337.  
  338. local righteyebrickcolor = "Really red"
  339. local reye = Instance.new("Part", char)
  340. reye.CanCollide = false
  341. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  342. reye.Material = "Neon"
  343. reye.Size = Vector3.new(.25,.35,.15)
  344. weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
  345. m1 = Instance.new("SpecialMesh", reye)
  346. m1.MeshType = "Sphere"
  347. m1.Scale = Vector3.new(0.9,0.9,0.9)
  348. reye.Locked = true
  349. reye.Name = "re"
  350.  
  351. Character.Head.face.Texture = "rbxassetid://411546407"
  352.  
  353.  
  354. local FavIDs = {
  355. 340106355, --Nefl Crystals
  356. 927529620, --Dimension
  357. 876981900, --Fantasy
  358. 398987889, --Ordinary Days
  359. 1117396305, --Oh wait, it's you.
  360. 885996042, --Action Winter Journey
  361. 919231299, --Sprawling Idiot Effigy
  362. 743466274, --Good Day Sunshine
  363. 727411183, --Knife Fight
  364. 1402748531, --The Earth Is Counting On You!
  365. 595230126 --Robot Language
  366. }
  367.  
  368.  
  369.  
  370. --The reality of my life isn't real but a Universe -makhail07
  371. wait(0.2)
  372. local plr = game:service'Players'.LocalPlayer
  373. print('Local User is '..plr.Name)
  374. print('SCRIPTNAME Loaded')
  375. print('SCRIPT DESCRIPTION')
  376. local char = plr.Character
  377. local hum = char.Humanoid
  378. local hed = char.Head
  379. local root = char.HumanoidRootPart
  380. local rootj = root.RootJoint
  381. local tors = char.Torso
  382. local ra = char["Right Arm"]
  383. local la = char["Left Arm"]
  384. local rl = char["Right Leg"]
  385. local ll = char["Left Leg"]
  386. local neck = tors["Neck"]
  387. local mouse = plr:GetMouse()
  388. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  389. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  390. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  391. local maincolor = BrickColor.new("Storm blue")
  392.  
  393. -------------------------------------------------------
  394. --Start Good Stuff--
  395. -------------------------------------------------------
  396. cam = game.Workspace.CurrentCamera
  397. CF = CFrame.new
  398. angles = CFrame.Angles
  399. attack = false
  400. Euler = CFrame.fromEulerAnglesXYZ
  401. Rad = math.rad
  402. IT = Instance.new
  403. BrickC = BrickColor.new
  404. Cos = math.cos
  405. Acos = math.acos
  406. Sin = math.sin
  407. Asin = math.asin
  408. Abs = math.abs
  409. Mrandom = math.random
  410. Floor = math.floor
  411. -------------------------------------------------------
  412. --End Good Stuff--
  413. -------------------------------------------------------
  414. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  415. RSH, LSH = nil, nil
  416. RW = Instance.new("Weld")
  417. LW = Instance.new("Weld")
  418. RH = tors["Right Hip"]
  419. LH = tors["Left Hip"]
  420. RSH = tors["Right Shoulder"]
  421. LSH = tors["Left Shoulder"]
  422. RSH.Parent = nil
  423. LSH.Parent = nil
  424. RW.Name = "RW"
  425. RW.Part0 = tors
  426. RW.C0 = CF(1.5, 0.5, 0)
  427. RW.C1 = CF(0, 0.5, 0)
  428. RW.Part1 = ra
  429. RW.Parent = tors
  430. LW.Name = "LW"
  431. LW.Part0 = tors
  432. LW.C0 = CF(-1.5, 0.5, 0)
  433. LW.C1 = CF(0, 0.5, 0)
  434. LW.Part1 = la
  435. LW.Parent = tors
  436. Effects = {}
  437. -------------------------------------------------------
  438. --Start HeartBeat--
  439. -------------------------------------------------------
  440. ArtificialHB = Instance.new("BindableEvent", script)
  441. ArtificialHB.Name = "Heartbeat"
  442. script:WaitForChild("Heartbeat")
  443.  
  444. frame = 1 / 60
  445. tf = 0
  446. allowframeloss = false
  447. tossremainder = false
  448.  
  449.  
  450. lastframe = tick()
  451. script.Heartbeat:Fire()
  452.  
  453.  
  454. game:GetService("RunService").Heartbeat:connect(function(s, p)
  455. tf = tf + s
  456. if tf >= frame then
  457. if allowframeloss then
  458. script.Heartbeat:Fire()
  459. lastframe = tick()
  460. else
  461. for i = 1, math.floor(tf / frame) do
  462. script.Heartbeat:Fire()
  463. end
  464. lastframe = tick()
  465. end
  466. if tossremainder then
  467. tf = 0
  468. else
  469. tf = tf - frame * math.floor(tf / frame)
  470. end
  471. end
  472. end)
  473. -------------------------------------------------------
  474. --End HeartBeat--
  475. -------------------------------------------------------
  476.  
  477. -------------------------------------------------------
  478. --Start Important Functions--
  479. -------------------------------------------------------
  480. function swait(num)
  481. if num == 0 or num == nil then
  482. game:service("RunService").Stepped:wait(0)
  483. else
  484. for i = 0, num do
  485. game:service("RunService").Stepped:wait(0)
  486. end
  487. end
  488. end
  489. function thread(f)
  490. coroutine.resume(coroutine.create(f))
  491. end
  492. function clerp(a, b, t)
  493. local qa = {
  494. QuaternionFromCFrame(a)
  495. }
  496. local qb = {
  497. QuaternionFromCFrame(b)
  498. }
  499. local ax, ay, az = a.x, a.y, a.z
  500. local bx, by, bz = b.x, b.y, b.z
  501. local _t = 1 - t
  502. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  503. end
  504. function QuaternionFromCFrame(cf)
  505. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  506. local trace = m00 + m11 + m22
  507. if trace > 0 then
  508. local s = math.sqrt(1 + trace)
  509. local recip = 0.5 / s
  510. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  511. else
  512. local i = 0
  513. if m00 < m11 then
  514. i = 1
  515. end
  516. if m22 > (i == 0 and m00 or m11) then
  517. i = 2
  518. end
  519. if i == 0 then
  520. local s = math.sqrt(m00 - m11 - m22 + 1)
  521. local recip = 0.5 / s
  522. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  523. elseif i == 1 then
  524. local s = math.sqrt(m11 - m22 - m00 + 1)
  525. local recip = 0.5 / s
  526. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  527. elseif i == 2 then
  528. local s = math.sqrt(m22 - m00 - m11 + 1)
  529. local recip = 0.5 / s
  530. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  531. end
  532. end
  533. end
  534. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  535. local xs, ys, zs = x + x, y + y, z + z
  536. local wx, wy, wz = w * xs, w * ys, w * zs
  537. local xx = x * xs
  538. local xy = x * ys
  539. local xz = x * zs
  540. local yy = y * ys
  541. local yz = y * zs
  542. local zz = z * zs
  543. 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))
  544. end
  545. function QuaternionSlerp(a, b, t)
  546. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  547. local startInterp, finishInterp
  548. if cosTheta >= 1.0E-4 then
  549. if 1 - cosTheta > 1.0E-4 then
  550. local theta = math.acos(cosTheta)
  551. local invSinTheta = 1 / Sin(theta)
  552. startInterp = Sin((1 - t) * theta) * invSinTheta
  553. finishInterp = Sin(t * theta) * invSinTheta
  554. else
  555. startInterp = 1 - t
  556. finishInterp = t
  557. end
  558. elseif 1 + cosTheta > 1.0E-4 then
  559. local theta = math.acos(-cosTheta)
  560. local invSinTheta = 1 / Sin(theta)
  561. startInterp = Sin((t - 1) * theta) * invSinTheta
  562. finishInterp = Sin(t * theta) * invSinTheta
  563. else
  564. startInterp = t - 1
  565. finishInterp = t
  566. end
  567. 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
  568. end
  569. function rayCast(Position, Direction, Range, Ignore)
  570. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  571. end
  572. local RbxUtility = LoadLibrary("RbxUtility")
  573. local Create = RbxUtility.Create
  574.  
  575. -------------------------------------------------------
  576. --Start Damage Function--
  577. -------------------------------------------------------
  578. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  579. if hit.Parent == nil then
  580. return
  581. end
  582. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  583. for _, v in pairs(hit.Parent:children()) do
  584. if v:IsA("Humanoid") then
  585. h = v
  586. end
  587. end
  588. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  589.  
  590. hit.Parent:FindFirstChild("Head"):BreakJoints()
  591. end
  592.  
  593. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  594. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  595. if hit.Parent.DebounceHit.Value == true then
  596. return
  597. end
  598. end
  599. if insta == true then
  600. hit.Parent:FindFirstChild("Head"):BreakJoints()
  601. end
  602. local c = Create("ObjectValue"){
  603. Name = "creator",
  604. Value = game:service("Players").LocalPlayer,
  605. Parent = h,
  606. }
  607. game:GetService("Debris"):AddItem(c, .5)
  608. if HitSound ~= nil and HitPitch ~= nil then
  609. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  610. end
  611. local Damage = math.random(minim, maxim)
  612. local blocked = false
  613. local block = hit.Parent:findFirstChild("Block")
  614. if block ~= nil then
  615. if block.className == "IntValue" then
  616. if block.Value > 0 then
  617. blocked = true
  618. block.Value = block.Value - 1
  619. print(block.Value)
  620. end
  621. end
  622. end
  623. if blocked == false then
  624. h.Health = h.Health - Damage
  625. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  626. else
  627. h.Health = h.Health - (Damage / 2)
  628. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  629. end
  630. if Type == "Knockdown" then
  631. local hum = hit.Parent.Humanoid
  632. hum.PlatformStand = true
  633. coroutine.resume(coroutine.create(function(HHumanoid)
  634. swait(1)
  635. HHumanoid.PlatformStand = false
  636. end), hum)
  637. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  638. local bodvol = Create("BodyVelocity"){
  639. velocity = angle * knockback,
  640. P = 5000,
  641. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  642. Parent = hit,
  643. }
  644. local rl = Create("BodyAngularVelocity"){
  645. P = 3000,
  646. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  647. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  648. Parent = hit,
  649. }
  650. game:GetService("Debris"):AddItem(bodvol, .5)
  651. game:GetService("Debris"):AddItem(rl, .5)
  652. elseif Type == "Normal" then
  653. local vp = Create("BodyVelocity"){
  654. P = 500,
  655. maxForce = Vector3.new(math.huge, 0, math.huge),
  656. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  657. }
  658. if knockback > 0 then
  659. vp.Parent = hit.Parent.Torso
  660. end
  661. game:GetService("Debris"):AddItem(vp, .5)
  662. elseif Type == "Up" then
  663. local bodyVelocity = Create("BodyVelocity"){
  664. velocity = Vector3.new(0, 20, 0),
  665. P = 5000,
  666. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  667. Parent = hit,
  668. }
  669. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  670. elseif Type == "DarkUp" then
  671. coroutine.resume(coroutine.create(function()
  672. for i = 0, 1, 0.1 do
  673. swait()
  674. Effects.Block.Create(BrickColor.new("Royal purple"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  675. end
  676. end))
  677. local bodyVelocity = Create("BodyVelocity"){
  678. velocity = Vector3.new(0, 20, 0),
  679. P = 5000,
  680. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  681. Parent = hit,
  682. }
  683. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  684. elseif Type == "Snare" then
  685. local bp = Create("BodyPosition"){
  686. P = 2000,
  687. D = 100,
  688. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  689. position = hit.Parent.Torso.Position,
  690. Parent = hit.Parent.Torso,
  691. }
  692. game:GetService("Debris"):AddItem(bp, 1)
  693. elseif Type == "Freeze" then
  694. local BodPos = Create("BodyPosition"){
  695. P = 50000,
  696. D = 1000,
  697. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  698. position = hit.Parent.Torso.Position,
  699. Parent = hit.Parent.Torso,
  700. }
  701. local BodGy = Create("BodyGyro") {
  702. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  703. P = 20e+003,
  704. Parent = hit.Parent.Torso,
  705. cframe = hit.Parent.Torso.CFrame,
  706. }
  707. hit.Parent.Torso.Anchored = true
  708. coroutine.resume(coroutine.create(function(Part)
  709. swait(1.5)
  710. Part.Anchored = false
  711. end), hit.Parent.Torso)
  712. game:GetService("Debris"):AddItem(BodPos, 3)
  713. game:GetService("Debris"):AddItem(BodGy, 3)
  714. end
  715. local debounce = Create("BoolValue"){
  716. Name = "DebounceHit",
  717. Parent = hit.Parent,
  718. Value = true,
  719. }
  720. game:GetService("Debris"):AddItem(debounce, Delay)
  721. c = Create("ObjectValue"){
  722. Name = "creator",
  723. Value = Player,
  724. Parent = h,
  725. }
  726. game:GetService("Debris"):AddItem(c, .5)
  727. end
  728. end
  729.  
  730. function damage(range,mindam,maxdam,pos)
  731. for i,v in ipairs(workspace:GetChildren()) do
  732. if v:IsA("Model") then
  733. if v.Name ~= Player.Name then
  734. if v:FindFirstChildOfClass("Humanoid") then
  735. if v:FindFirstChild("Head") then
  736. if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then
  737. if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else
  738. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam)
  739. end
  740. end
  741. end
  742. end
  743. end
  744. end
  745. end
  746. end
  747. -------------------------------------------------------
  748. --End Damage Function--
  749. -------------------------------------------------------
  750.  
  751. -------------------------------------------------------
  752. --Start Damage Function Customization--
  753. -------------------------------------------------------
  754. local RbxUtility = LoadLibrary("RbxUtility")
  755. local Create = RbxUtility.Create
  756. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher!
  757. local type = type
  758. local rng = Instance.new("Part", char)
  759. rng.Anchored = true
  760. rng.BrickColor = color
  761. rng.CanCollide = false
  762. rng.FormFactor = 3
  763. rng.Name = "Ring"
  764. rng.Material = "Neon"
  765. rng.Size = Vector3.new(1, 1, 1)
  766. rng.Transparency = 0
  767. rng.TopSurface = 0
  768. rng.BottomSurface = 0
  769. rng.CFrame = pos
  770. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  771. local rngm = Instance.new("SpecialMesh", rng)
  772. rngm.MeshType = "Brick"
  773. if rainbowmode == true then
  774. rng.Color = Color3.new(r/255,g/255,b/255)
  775. end
  776. local scaler2 = 1
  777. local speeder = FastSpeed/10
  778. if type == "Add" then
  779. scaler2 = 1*value
  780. elseif type == "Divide" then
  781. scaler2 = 1/value
  782. end
  783. coroutine.resume(coroutine.create(function()
  784. for i = 0,10/bonuspeed,0.1 do
  785. swait()
  786. if type == "Add" then
  787. scaler2 = scaler2 - 0.01*value/bonuspeed
  788. elseif type == "Divide" then
  789. scaler2 = scaler2 - 0.01/value*bonuspeed
  790. end
  791. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  792. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  793. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  794. end
  795. rng:Destroy()
  796. end))
  797. end
  798. function ShowDamage(Pos, Text, Time, Color)
  799. local Rate = (1 / 30)
  800. local Pos = (Pos or Vector3.new(0, 0, 0))
  801. local Text = (Text or "")
  802. local Time = (Time or 2)
  803. local Color = (Color or Color3.new(1, 0, 1))
  804. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  805. EffectPart.Anchored = true
  806. local BillboardGui = Create("BillboardGui"){
  807. Size = UDim2.new(3, 0, 3, 0),
  808. Adornee = EffectPart,
  809. Parent = EffectPart,
  810. }
  811. local TextLabel = Create("TextLabel"){
  812. BackgroundTransparency = 1,
  813. Size = UDim2.new(1, 0, 1, 0),
  814. Text = Text,
  815. Font = "Bodoni",
  816. TextColor3 = Color,
  817. TextScaled = true,
  818. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  819. Parent = BillboardGui,
  820. }
  821. game.Debris:AddItem(EffectPart, (Time))
  822. EffectPart.Parent = game:GetService("Workspace")
  823. delay(0, function()
  824. local Frames = (Time / Rate)
  825. for Frame = 1, Frames do
  826. wait(Rate)
  827. local Percent = (Frame / Frames)
  828. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  829. TextLabel.TextTransparency = Percent
  830. end
  831. if EffectPart and EffectPart.Parent then
  832. EffectPart:Destroy()
  833. end
  834. end)
  835. end
  836. -------------------------------------------------------
  837. --End Damage Function Customization--
  838. -------------------------------------------------------
  839.  
  840. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  841. for _, c in pairs(workspace:children()) do
  842. local hum = c:findFirstChild("Humanoid")
  843. if hum ~= nil then
  844. local head = c:findFirstChild("Head")
  845. if head ~= nil then
  846. local targ = head.Position - Part.Position
  847. local mag = targ.magnitude
  848. if magni >= mag and c.Name ~= plr.Name then
  849. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  850. end
  851. end
  852. end
  853. end
  854. end
  855.  
  856.  
  857. CFuncs = {
  858. Part = {
  859. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  860. local Part = Create("Part")({
  861. Parent = Parent,
  862. Reflectance = Reflectance,
  863. Transparency = Transparency,
  864. CanCollide = false,
  865. Locked = true,
  866. BrickColor = BrickColor.new(tostring(BColor)),
  867. Name = Name,
  868. Size = Size,
  869. Material = Material
  870. })
  871. RemoveOutlines(Part)
  872. return Part
  873. end
  874. },
  875. Mesh = {
  876. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  877. local Msh = Create(Mesh)({
  878. Parent = Part,
  879. Offset = OffSet,
  880. Scale = Scale
  881. })
  882. if Mesh == "SpecialMesh" then
  883. Msh.MeshType = MeshType
  884. Msh.MeshId = MeshId
  885. end
  886. return Msh
  887. end
  888. },
  889. Mesh = {
  890. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  891. local Msh = Create(Mesh)({
  892. Parent = Part,
  893. Offset = OffSet,
  894. Scale = Scale
  895. })
  896. if Mesh == "SpecialMesh" then
  897. Msh.MeshType = MeshType
  898. Msh.MeshId = MeshId
  899. end
  900. return Msh
  901. end
  902. },
  903. Weld = {
  904. Create = function(Parent, Part0, Part1, C0, C1)
  905. local Weld = Create("Weld")({
  906. Parent = Parent,
  907. Part0 = Part0,
  908. Part1 = Part1,
  909. C0 = C0,
  910. C1 = C1
  911. })
  912. return Weld
  913. end
  914. },
  915. Sound = {
  916. Create = function(id, par, vol, pit)
  917. coroutine.resume(coroutine.create(function()
  918. local S = Create("Sound")({
  919. Volume = vol,
  920. Pitch = pit or 1,
  921. SoundId = id,
  922. Parent = par or workspace
  923. })
  924. wait()
  925. S:play()
  926. game:GetService("Debris"):AddItem(S, 6)
  927. end))
  928. end
  929. },
  930. ParticleEmitter = {
  931. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  932. local fp = Create("ParticleEmitter")({
  933. Parent = Parent,
  934. Color = ColorSequence.new(Color1, Color2),
  935. LightEmission = LightEmission,
  936. Size = Size,
  937. Texture = Texture,
  938. Transparency = Transparency,
  939. ZOffset = ZOffset,
  940. Acceleration = Accel,
  941. Drag = Drag,
  942. LockedToPart = LockedToPart,
  943. VelocityInheritance = VelocityInheritance,
  944. EmissionDirection = EmissionDirection,
  945. Enabled = Enabled,
  946. Lifetime = LifeTime,
  947. Rate = Rate,
  948. Rotation = Rotation,
  949. RotSpeed = RotSpeed,
  950. Speed = Speed,
  951. VelocitySpread = VelocitySpread
  952. })
  953. return fp
  954. end
  955. }
  956. }
  957. function RemoveOutlines(part)
  958. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  959. end
  960. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  961. local Part = Create("Part")({
  962. formFactor = FormFactor,
  963. Parent = Parent,
  964. Reflectance = Reflectance,
  965. Transparency = Transparency,
  966. CanCollide = false,
  967. Locked = true,
  968. BrickColor = BrickColor.new(tostring(BColor)),
  969. Name = Name,
  970. Size = Size,
  971. Material = Material
  972. })
  973. RemoveOutlines(Part)
  974. return Part
  975. end
  976. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  977. local Msh = Create(Mesh)({
  978. Parent = Part,
  979. Offset = OffSet,
  980. Scale = Scale
  981. })
  982. if Mesh == "SpecialMesh" then
  983. Msh.MeshType = MeshType
  984. Msh.MeshId = MeshId
  985. end
  986. return Msh
  987. end
  988. function CreateWeld(Parent, Part0, Part1, C0, C1)
  989. local Weld = Create("Weld")({
  990. Parent = Parent,
  991. Part0 = Part0,
  992. Part1 = Part1,
  993. C0 = C0,
  994. C1 = C1
  995. })
  996. return Weld
  997. end
  998.  
  999.  
  1000. -------------------------------------------------------
  1001. --Start Effect Function--
  1002. -------------------------------------------------------
  1003. EffectModel = Instance.new("Model", char)
  1004. Effects = {
  1005. Block = {
  1006. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1007. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1008. prt.Anchored = true
  1009. prt.CFrame = cframe
  1010. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1011. game:GetService("Debris"):AddItem(prt, 10)
  1012. if Type == 1 or Type == nil then
  1013. table.insert(Effects, {
  1014. prt,
  1015. "Block1",
  1016. delay,
  1017. x3,
  1018. y3,
  1019. z3,
  1020. msh
  1021. })
  1022. elseif Type == 2 then
  1023. table.insert(Effects, {
  1024. prt,
  1025. "Block2",
  1026. delay,
  1027. x3,
  1028. y3,
  1029. z3,
  1030. msh
  1031. })
  1032. else
  1033. table.insert(Effects, {
  1034. prt,
  1035. "Block3",
  1036. delay,
  1037. x3,
  1038. y3,
  1039. z3,
  1040. msh
  1041. })
  1042. end
  1043. end
  1044. },
  1045. Sphere = {
  1046. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1047. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1048. prt.Anchored = true
  1049. prt.CFrame = cframe
  1050. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1051. game:GetService("Debris"):AddItem(prt, 10)
  1052. table.insert(Effects, {
  1053. prt,
  1054. "Cylinder",
  1055. delay,
  1056. x3,
  1057. y3,
  1058. z3,
  1059. msh
  1060. })
  1061. end
  1062. },
  1063. Cylinder = {
  1064. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1065. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1066. prt.Anchored = true
  1067. prt.CFrame = cframe
  1068. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1069. game:GetService("Debris"):AddItem(prt, 10)
  1070. table.insert(Effects, {
  1071. prt,
  1072. "Cylinder",
  1073. delay,
  1074. x3,
  1075. y3,
  1076. z3,
  1077. msh
  1078. })
  1079. end
  1080. },
  1081. Wave = {
  1082. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1083. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1084. prt.Anchored = true
  1085. prt.CFrame = cframe
  1086. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1087. game:GetService("Debris"):AddItem(prt, 10)
  1088. table.insert(Effects, {
  1089. prt,
  1090. "Cylinder",
  1091. delay,
  1092. x3 / 60,
  1093. y3 / 60,
  1094. z3 / 60,
  1095. msh
  1096. })
  1097. end
  1098. },
  1099. Ring = {
  1100. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1101. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1102. prt.Anchored = true
  1103. prt.CFrame = cframe
  1104. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1105. game:GetService("Debris"):AddItem(prt, 10)
  1106. table.insert(Effects, {
  1107. prt,
  1108. "Cylinder",
  1109. delay,
  1110. x3,
  1111. y3,
  1112. z3,
  1113. msh
  1114. })
  1115. end
  1116. },
  1117. Break = {
  1118. Create = function(brickcolor, cframe, x1, y1, z1)
  1119. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1120. prt.Anchored = true
  1121. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1122. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1123. local num = math.random(10, 50) / 1000
  1124. game:GetService("Debris"):AddItem(prt, 10)
  1125. table.insert(Effects, {
  1126. prt,
  1127. "Shatter",
  1128. num,
  1129. prt.CFrame,
  1130. math.random() - math.random(),
  1131. 0,
  1132. math.random(50, 100) / 100
  1133. })
  1134. end
  1135. },
  1136. Spiral = {
  1137. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1138. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1139. prt.Anchored = true
  1140. prt.CFrame = cframe
  1141. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1142. game:GetService("Debris"):AddItem(prt, 10)
  1143. table.insert(Effects, {
  1144. prt,
  1145. "Cylinder",
  1146. delay,
  1147. x3,
  1148. y3,
  1149. z3,
  1150. msh
  1151. })
  1152. end
  1153. },
  1154. Push = {
  1155. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1156. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1157. prt.Anchored = true
  1158. prt.CFrame = cframe
  1159. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1160. game:GetService("Debris"):AddItem(prt, 10)
  1161. table.insert(Effects, {
  1162. prt,
  1163. "Cylinder",
  1164. delay,
  1165. x3,
  1166. y3,
  1167. z3,
  1168. msh
  1169. })
  1170. end
  1171. }
  1172. }
  1173. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1174. local fp = IT("Part")
  1175. fp.formFactor = formfactor
  1176. fp.Parent = parent
  1177. fp.Reflectance = reflectance
  1178. fp.Transparency = transparency
  1179. fp.CanCollide = false
  1180. fp.Locked = true
  1181. fp.BrickColor = brickcolor
  1182. fp.Name = name
  1183. fp.Size = size
  1184. fp.Position = tors.Position
  1185. RemoveOutlines(fp)
  1186. fp.Material = "SmoothPlastic"
  1187. fp:BreakJoints()
  1188. return fp
  1189. end
  1190.  
  1191. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1192. local mesh = IT(Mesh)
  1193. mesh.Parent = part
  1194. if Mesh == "SpecialMesh" then
  1195. mesh.MeshType = meshtype
  1196. if meshid ~= "nil" then
  1197. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1198. end
  1199. end
  1200. mesh.Offset = offset
  1201. mesh.Scale = scale
  1202. return mesh
  1203. end
  1204.  
  1205. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1206. local type = type
  1207. local rng = Instance.new("Part", char)
  1208. rng.Anchored = true
  1209. rng.BrickColor = color
  1210. rng.CanCollide = false
  1211. rng.FormFactor = 3
  1212. rng.Name = "Ring"
  1213. rng.Material = "Neon"
  1214. rng.Size = Vector3.new(1, 1, 1)
  1215. rng.Transparency = 0
  1216. rng.TopSurface = 0
  1217. rng.BottomSurface = 0
  1218. rng.CFrame = pos
  1219. local rngm = Instance.new("SpecialMesh", rng)
  1220. rngm.MeshType = MType
  1221. rngm.Scale = scale
  1222. local scaler2 = 1
  1223. if type == "Add" then
  1224. scaler2 = 1 * value
  1225. elseif type == "Divide" then
  1226. scaler2 = 1 / value
  1227. end
  1228. coroutine.resume(coroutine.create(function()
  1229. for i = 0, 10 / bonuspeed, 0.1 do
  1230. swait()
  1231. if type == "Add" then
  1232. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1233. elseif type == "Divide" then
  1234. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1235. end
  1236. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1237. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1238. end
  1239. rng:Destroy()
  1240. end))
  1241. end
  1242.  
  1243. function Eviscerate(dude)
  1244. if dude.Name ~= char then
  1245. local bgf = IT("BodyGyro", dude.Head)
  1246. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1247. local val = IT("BoolValue", dude)
  1248. val.Name = "IsHit"
  1249. local ds = coroutine.wrap(function()
  1250. dude:WaitForChild("Head"):BreakJoints()
  1251. wait(0.5)
  1252. target = nil
  1253. coroutine.resume(coroutine.create(function()
  1254. for i, v in pairs(dude:GetChildren()) do
  1255. if v:IsA("Accessory") then
  1256. v:Destroy()
  1257. end
  1258. if v:IsA("Humanoid") then
  1259. v:Destroy()
  1260. end
  1261. if v:IsA("CharacterMesh") then
  1262. v:Destroy()
  1263. end
  1264. if v:IsA("Model") then
  1265. v:Destroy()
  1266. end
  1267. if v:IsA("Part") or v:IsA("MeshPart") then
  1268. for x, o in pairs(v:GetChildren()) do
  1269. if o:IsA("Decal") then
  1270. o:Destroy()
  1271. end
  1272. end
  1273. coroutine.resume(coroutine.create(function()
  1274. v.Material = "Neon"
  1275. v.CanCollide = false
  1276. local PartEmmit1 = IT("ParticleEmitter", v)
  1277. PartEmmit1.LightEmission = 1
  1278. PartEmmit1.Texture = "rbxassetid://284205403"
  1279. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1280. PartEmmit1.Rate = 150
  1281. PartEmmit1.Lifetime = NumberRange.new(1)
  1282. PartEmmit1.Size = NumberSequence.new({
  1283. NumberSequenceKeypoint.new(0, 0.75, 0),
  1284. NumberSequenceKeypoint.new(1, 0, 0)
  1285. })
  1286. PartEmmit1.Transparency = NumberSequence.new({
  1287. NumberSequenceKeypoint.new(0, 0, 0),
  1288. NumberSequenceKeypoint.new(1, 1, 0)
  1289. })
  1290. PartEmmit1.Speed = NumberRange.new(0, 0)
  1291. PartEmmit1.VelocitySpread = 30000
  1292. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1293. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1294. local BodPoss = IT("BodyPosition", v)
  1295. BodPoss.P = 3000
  1296. BodPoss.D = 1000
  1297. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1298. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1299. v.Color = maincolor.Color
  1300. coroutine.resume(coroutine.create(function()
  1301. for i = 0, 49 do
  1302. swait(1)
  1303. v.Transparency = v.Transparency + 0.08
  1304. end
  1305. wait(0.5)
  1306. PartEmmit1.Enabled = false
  1307. wait(3)
  1308. v:Destroy()
  1309. dude:Destroy()
  1310. end))
  1311. end))
  1312. end
  1313. end
  1314. end))
  1315. end)
  1316. ds()
  1317. end
  1318. end
  1319.  
  1320. function FindNearestHead(Position, Distance, SinglePlayer)
  1321. if SinglePlayer then
  1322. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1323. end
  1324. local List = {}
  1325. for i, v in pairs(workspace:GetChildren()) do
  1326. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1327. table.insert(List, v)
  1328. end
  1329. end
  1330. return List
  1331. end
  1332.  
  1333. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1334. local type = type
  1335. local rng = Instance.new("Part", char)
  1336. rng.Anchored = true
  1337. rng.BrickColor = color
  1338. rng.CanCollide = false
  1339. rng.FormFactor = 3
  1340. rng.Name = "Ring"
  1341. rng.Material = "Neon"
  1342. rng.Size = Vector3.new(1, 1, 1)
  1343. rng.Transparency = 0
  1344. rng.TopSurface = 0
  1345. rng.BottomSurface = 0
  1346. rng.CFrame = pos
  1347. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1348. local rngm = Instance.new("SpecialMesh", rng)
  1349. rngm.MeshType = MType
  1350. rngm.Scale = Vector3.new(x1, y1, z1)
  1351. local scaler2 = 1
  1352. local speeder = FastSpeed
  1353. if type == "Add" then
  1354. scaler2 = 1 * value
  1355. elseif type == "Divide" then
  1356. scaler2 = 1 / value
  1357. end
  1358. coroutine.resume(coroutine.create(function()
  1359. for i = 0, 10 / bonuspeed, 0.1 do
  1360. swait()
  1361. if type == "Add" then
  1362. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1363. elseif type == "Divide" then
  1364. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1365. end
  1366. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1367. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1368. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1369. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1370. end
  1371. rng:Destroy()
  1372. end))
  1373. end
  1374.  
  1375. function SoulSteal(dude)
  1376. if dude.Name ~= char then
  1377. local bgf = IT("BodyGyro", dude.Head)
  1378. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1379. local val = IT("BoolValue", dude)
  1380. val.Name = "IsHit"
  1381. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1382. local soulst = coroutine.wrap(function()
  1383. local soul = Instance.new("Part",dude)
  1384. soul.Size = Vector3.new(1,1,1)
  1385. soul.CanCollide = false
  1386. soul.Anchored = false
  1387. soul.Position = torso.Position
  1388. soul.Transparency = 1
  1389. local PartEmmit1 = IT("ParticleEmitter", soul)
  1390. PartEmmit1.LightEmission = 1
  1391. PartEmmit1.Texture = "rbxassetid://569507414"
  1392. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1393. PartEmmit1.Rate = 250
  1394. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1395. PartEmmit1.Size = NumberSequence.new({
  1396. NumberSequenceKeypoint.new(0, 1, 0),
  1397. NumberSequenceKeypoint.new(1, 0, 0)
  1398. })
  1399. PartEmmit1.Transparency = NumberSequence.new({
  1400. NumberSequenceKeypoint.new(0, 0, 0),
  1401. NumberSequenceKeypoint.new(1, 1, 0)
  1402. })
  1403. PartEmmit1.Speed = NumberRange.new(0, 0)
  1404. PartEmmit1.VelocitySpread = 30000
  1405. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1406. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1407. local BodPoss = IT("BodyPosition", soul)
  1408. BodPoss.P = 3000
  1409. BodPoss.D = 1000
  1410. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1411. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1412. wait(1.6)
  1413. soul.Touched:connect(function(hit)
  1414. if hit.Parent == char then
  1415. soul:Destroy()
  1416. end
  1417. end)
  1418. wait(1.2)
  1419. while soul do
  1420. swait()
  1421. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1422. BodPoss.Position = tors.Position
  1423. end
  1424. end)
  1425. soulst()
  1426. end
  1427. end
  1428. function FaceMouse()
  1429. local Cam = workspace.CurrentCamera
  1430. return {
  1431. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1432. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1433. }
  1434. end
  1435.  
  1436. BTAUNT = Instance.new("Sound", tors)
  1437. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2582332053"
  1438. BTAUNT.Volume = 2
  1439. BTAUNT.Pitch = 1
  1440. BTAUNT.Looped = true
  1441. BTAUNT.TimePosition = 0
  1442.  
  1443. BTAUNT3 = Instance.new("Sound", tors)
  1444. BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=157016540"
  1445. BTAUNT3.Volume = 10
  1446. BTAUNT3.Pitch = 1
  1447. BTAUNT3.Looped = false
  1448. BTAUNT3.TimePosition = 0
  1449.  
  1450. TEST = Instance.new("Sound", tors)
  1451. TEST.SoundId = "http://www.roblox.com/asset/?id=2544975373"
  1452. TEST.Volume = 25
  1453. TEST.Pitch = 1
  1454. TEST.Looped = false
  1455. TEST.TimePosition = 0
  1456. -------------------------------------------------------
  1457. --End Effect Function--
  1458. -------------------------------------------------------
  1459. function Cso(ID, PARENT, VOLUME, PITCH)
  1460. local NSound = nil
  1461. coroutine.resume(coroutine.create(function()
  1462. NSound = IT("Sound", PARENT)
  1463. NSound.Volume = VOLUME
  1464. NSound.Pitch = PITCH
  1465. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1466. swait()
  1467. NSound:play()
  1468. game:GetService("Debris"):AddItem(NSound, 50)
  1469. end))
  1470. return NSound
  1471. end
  1472. function CameraEnshaking(Length, Intensity)
  1473. coroutine.resume(coroutine.create(function()
  1474. local intensity = 1 * Intensity
  1475. local rotM = 0.01 * Intensity
  1476. for i = 0, Length, 0.1 do
  1477. swait()
  1478. intensity = intensity - 0.05 * Intensity / Length
  1479. rotM = rotM - 5.0E-4 * Intensity / Length
  1480. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1481. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1482. end
  1483. hum.CameraOffset = Vector3.new(0, 0, 0)
  1484. end))
  1485. end
  1486.  
  1487. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1488. local Part = Create("Part"){
  1489. Parent = Parent,
  1490. Reflectance = Reflectance,
  1491. Transparency = Transparency,
  1492. CanCollide = false,
  1493. Locked = true,
  1494. BrickColor = BrickColor.new(tostring(BColor)),
  1495. Name = Name,
  1496. Size = Size,
  1497. Material = Material,
  1498. }
  1499. RemoveOutlines(Part)
  1500. return Part
  1501. end
  1502.  
  1503. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1504. local Msh = Create(Mesh){
  1505. Parent = Part,
  1506. Offset = OffSet,
  1507. Scale = Scale,
  1508. }
  1509. if Mesh == "SpecialMesh" then
  1510. Msh.MeshType = MeshType
  1511. Msh.MeshId = MeshId
  1512. end
  1513. return Msh
  1514. end
  1515.  
  1516. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1517. local prt = CreatePart(workspace,"Neon",0,0,brickcolor,"Effect", Vector3.new(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1518. prt.Anchored = true
  1519. prt.CFrame = cframe
  1520. local msh = CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  1521. game:GetService("Debris"):AddItem(prt,2)
  1522. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1523. for i=0,1,delay do
  1524. swait()
  1525. Part.Transparency=i
  1526. Mesh.Scale=Mesh.Scale + Vector3.new(x3,y3,z3)
  1527. end
  1528. Part.Parent=nil
  1529. end),prt,msh,(math.random(0,1)+math.random())/5)
  1530. end
  1531. function getRegion(point,range,ignore)
  1532. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1533. end
  1534.  
  1535. function GetTorso(char)
  1536. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1537. end
  1538.  
  1539. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1540.  
  1541. NewInstance = function(instance,parent,properties)
  1542. local inst = Instance.new(instance)
  1543. inst.Parent = parent
  1544. if(properties)then
  1545. for i,v in next, properties do
  1546. pcall(function() inst[i] = v end)
  1547. end
  1548. end
  1549. return inst;
  1550. end
  1551.  
  1552. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1553. local part = Instance.new("Part")
  1554. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  1555. part.Material = material or Enum.Material.SmoothPlastic
  1556. part.TopSurface,part.BottomSurface=10,10
  1557. part.Size = size or Vector3.new(1,1,1)
  1558. part.CFrame = cframe or CF(0,0,0)
  1559. part.Anchored = anchored or true
  1560. part.CanCollide = cancollide or false
  1561. part.Parent = parent or char
  1562. return part
  1563. end
  1564. -------------------------------------------------------
  1565. --End Important Functions--
  1566. -------------------------------------------------------
  1567.  
  1568.  
  1569. -------------------------------------------------------
  1570. --Start Customization--
  1571. -------------------------------------------------------
  1572. local Player_Size = 1
  1573. if Player_Size ~= 1 then
  1574. root.Size = root.Size * Player_Size
  1575. tors.Size = tors.Size * Player_Size
  1576. hed.Size = hed.Size * Player_Size
  1577. ra.Size = ra.Size * Player_Size
  1578. la.Size = la.Size * Player_Size
  1579. rl.Size = rl.Size * Player_Size
  1580. ll.Size = ll.Size * Player_Size
  1581. ----------------------------------------------------------------------------------
  1582. rootj.Parent = root
  1583. neck.Parent = tors
  1584. RW.Parent = tors
  1585. LW.Parent = tors
  1586. RH.Parent = tors
  1587. LH.Parent = tors
  1588. ----------------------------------------------------------------------------------
  1589. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1590. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1591. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1592. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1593. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1594. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1595. ----------------------------------------------------------------------------------
  1596. 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))
  1597. 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))
  1598. 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))
  1599. 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))
  1600. --hat.Parent = Character
  1601. end
  1602. ----------------------------------------------------------------------------------
  1603. ----------------------------------------------------------------------------------
  1604. local equipped = false
  1605. local idle = 0
  1606. local change = 1
  1607. local val = 0
  1608. local toim = 0
  1609. local idleanim = 0.4
  1610. local sine = 0
  1611. local Sit = 1
  1612. ----------------------------------------------------------------------------------
  1613. hum.WalkSpeed = 8
  1614. hum.JumpPower = 57
  1615. hum.Animator.Parent = nil
  1616. ----------------------------------------------------------------------------------
  1617.  
  1618. -------------------------------------------------------
  1619. --End Customization--
  1620. -------------------------------------------------------
  1621. local Blobby = Instance.new("Part", char)
  1622. Blobby.Name = "Blob"
  1623. Blobby.CanCollide = false
  1624. Blobby.BrickColor = BrickColor.new("Really black")
  1625. Blobby.Transparency = 0
  1626. Blobby.Material = "Plastic"
  1627. Blobby.Size = Vector3.new(1, 1, 2)
  1628. Blobby.TopSurface = Enum.SurfaceType.Smooth
  1629. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  1630.  
  1631. local Weld = Instance.new("Weld", Blobby)
  1632. Weld.Part0 = ra
  1633. Weld.Part1 = Blobby
  1634. Weld.C1 = CFrame.new(0, 0.8, 0)
  1635. Weld.C0 = CFrame.Angles(Rad(-180),0,135)
  1636.  
  1637. local M2 = Instance.new("SpecialMesh")
  1638. M2.Parent = Blobby
  1639. M2.MeshId = "rbxassetid://28140935"
  1640. M2.TextureId = "rbxassetid://411546407"
  1641. M2.Scale = Vector3.new(1, 0.8, 1)
  1642.  
  1643. --[[local naeeym2 = Instance.new("BillboardGui",char)
  1644. naeeym2.AlwaysOnTop = true
  1645. naeeym2.Size = UDim2.new(5,35,2,15)
  1646. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1647. naeeym2.Adornee = hed
  1648. naeeym2.Name = "Name"
  1649. --naeeym2.PlayerToHideFrom = Player
  1650. local tecks2 = Instance.new("TextLabel",naeeym2)
  1651. tecks2.BackgroundTransparency = 1
  1652. tecks2.TextScaled = true
  1653. tecks2.BorderSizePixel = 0
  1654. tecks2.Text = "Fight Me"
  1655. tecks2.Font = Enum.Font.Bodoni
  1656. tecks2.TextSize = 30
  1657. tecks2.TextStrokeTransparency = 0
  1658. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1659. tecks2.TextStrokeColor3 = Color3.new(1, 1, 1)
  1660. tecks2.Size = UDim2.new(1,0,0.5,0)
  1661. tecks2.Parent = naeeym2]]
  1662. ----------------------------------------------------------------------------------
  1663. local AddInstance = function(Object, ...)
  1664. local Obj = Instance.new(Object)
  1665. for i,v in next,(...) do
  1666. Obj[i] = v
  1667. end
  1668. return Obj
  1669. end
  1670. ----------------------------------------------------
  1671. local Reaper = AddInstance("Part",{
  1672. Parent = hed,
  1673. CFrame = hed.CFrame,
  1674. formFactor = "Symmetric",
  1675. Size = Vector3.new(1, 1, 1),
  1676. CanCollide = false,
  1677. TopSurface = "Smooth",
  1678. BottomSurface = "Smooth",
  1679. Locked = true,
  1680. })
  1681. local Weld = AddInstance("Weld",{
  1682. Parent = Reaper,
  1683. Part0 = hed,
  1684. C0 = CFrame.new(0, 0.8, 0.4)*CFrame.Angles(0, 0, 0),
  1685. Part1 = Reaper,
  1686. })
  1687. local Mesh = AddInstance("SpecialMesh",{
  1688. Parent = Reaper,
  1689. MeshId = "rbxassetid://193760002",
  1690. TextureId = "rbxassetid://411546407",
  1691. Scale = Vector3.new(1.1, 1.1, 1.1),
  1692. VertexColor = Vector3.new(0.5, 0.5, 0.5),
  1693. })
  1694. -------------------------------------------------------
  1695. wait(1)
  1696. plr = game.Players.LocalPlayer
  1697. char = plr.Character
  1698. mouse = plr:GetMouse()
  1699. whitecolor = Color3.new(1,1,1)
  1700. epicmode = false
  1701. normal = true
  1702. for i,v in pairs(char:GetChildren()) do
  1703. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  1704. v:Destroy()
  1705. end
  1706. end
  1707. local shirt = Instance.new("Shirt",char)
  1708. shirt.ShirtTemplate = "rbxassetid://676428254"
  1709. local pants = Instance.new("Pants",char)
  1710. pants.PantsTemplate = "rbxassetid://676428351"
  1711. local bdycolors = char["Body Colors"]
  1712. bdycolors.HeadColor3 = whitecolor
  1713. bdycolors.LeftArmColor3 = whitecolor
  1714. bdycolors.LeftLegColor3 = whitecolor
  1715. bdycolors.RightArmColor3 = whitecolor
  1716. bdycolors.RightLegColor3 = whitecolor
  1717. bdycolors.TorsoColor3 = whitecolor
  1718. for i,v in pairs(char:GetChildren()) do
  1719. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  1720. v:Destroy()
  1721. end
  1722. end
  1723.  
  1724. -------------------------------------------------------
  1725. --Start Attacks N Stuff--
  1726. -------------------------------------------------------
  1727. local naeeym2 = Instance.new("BillboardGui",char)
  1728. naeeym2.AlwaysOnTop = true
  1729. naeeym2.Size = UDim2.new(5,35,2,35)
  1730. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1731. naeeym2.Adornee = hed
  1732. naeeym2.Name = "Name"
  1733.  
  1734. local tecks2 = Instance.new("TextLabel",naeeym2)
  1735. tecks2.BackgroundTransparency = 1
  1736. tecks2.TextScaled = true
  1737. tecks2.BorderSizePixel = 0
  1738. tecks2.Text = "nahid J҉ E҉ V҉ I҉ L҉"
  1739. tecks2.Font = "Fantasy"
  1740. tecks2.TextSize = 50
  1741. tecks2.TextStrokeTransparency = 0
  1742. tecks2.TextColor3 = BrickColor.new('Really black').Color
  1743. tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
  1744. tecks2.Size = UDim2.new(1,0,0.5,0)
  1745. tecks2.Parent = naeeym2
  1746. textfag = tecks2
  1747. tecks2.Text = "nahid J҉ E҉ V҉ I҉ L҉"
  1748. BTAUNT:Play()
  1749. coroutine.resume(coroutine.create(function()
  1750. while textfag ~= nil do
  1751. swait()
  1752. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  1753. textfag.Rotation = math.random(-3,3)
  1754. end
  1755. end))
  1756. function finalChaos()
  1757. attack = true
  1758. spawn(function()
  1759. local p = Instance.new("Part",char)
  1760. p.Anchored = true
  1761. p.CanCollide = false
  1762. p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
  1763. local m = Instance.new("SpecialMesh",p)
  1764. m.MeshId = "https://roblox.com/asset/?id=28140935"
  1765. m.Scale = Vector3.new(2,2,2)
  1766. for i=1,30 do
  1767. p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
  1768. p.CFrame = p.CFrame * CFrame.Angles(0.5,0,0)
  1769. wait()
  1770. end
  1771. local beam = Instance.new("Part",char)
  1772. beam.Anchored = true
  1773. beam.CanCollide = false
  1774. beam.BrickColor = BrickColor.new("Reall black")
  1775. beam.Material = Enum.Material.Neon
  1776. beam.Size = Vector3.new(1,1,1)
  1777. beam.Position = p.Position+Vector3.new(0,1000,0)
  1778. beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
  1779. local m = Instance.new("SpecialMesh",beam)
  1780. m.MeshType = "Cylinder"
  1781. m.Scale = Vector3.new(2000,15,15)
  1782. damage(6,20,35,p.Position)
  1783. p.Transparency = 1
  1784. CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
  1785. for i=1,10 do
  1786. m.Scale = m.Scale-Vector3.new(0,1,1)
  1787. beam.Transparency = i / 10
  1788. wait()
  1789. end
  1790. p:Destroy()
  1791. end)
  1792. attack = false
  1793. end
  1794. function Attack()
  1795. attack = true
  1796. for i = 0, 2.6, 0.1 do
  1797. swait()
  1798. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
  1799. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
  1800. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
  1801. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
  1802. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  1803. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
  1804. end
  1805. Cso("2545012765", tors, 10, 1)
  1806. CameraEnshaking(2, 15)
  1807. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1808. Effects.Wave.Create(BrickColor.new("Really bkack"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1809. Effects.Wave.Create(BrickColor.new("White"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1810. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do
  1811. if v:FindFirstChild("Head") then
  1812. Eviscerate(v)
  1813. end
  1814. end
  1815. for i = 0, 3, 0.1 do
  1816. swait()
  1817. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1818. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
  1819. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
  1820. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
  1821. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
  1822. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
  1823. end
  1824. attack = false
  1825. end
  1826. function Taunt2()
  1827. attack = true
  1828. hum.WalkSpeed = 0
  1829. CFuncs.Sound.Create("rbxassetid://2545008459", head, 100, 1)
  1830. for i = 0, 2, 0.1 do
  1831. swait()
  1832. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  1833. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1834. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1835. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1836. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1837. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1838. end
  1839. for i = 0, 6, 0.1 do
  1840. swait()
  1841. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  1842. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  1843. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1844. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1845. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1846. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1847. end
  1848. for i = 0, 2, 0.1 do
  1849. swait()
  1850. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  1851. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1852. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1853. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1854. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1855. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1856. end
  1857. attack = false
  1858. hum.WalkSpeed = 20
  1859. end
  1860. function icando()
  1861. attack = true
  1862. hum.WalkSpeed = 0
  1863. TEST:Remove()
  1864. TEST:Play()
  1865. repeat
  1866. for i = 0,4,0.1 do
  1867. swait()
  1868. TEST.Parent = tors
  1869. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1870. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
  1871. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1872. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1873. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
  1874. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
  1875. end
  1876. until TEST.Playing == false
  1877. TEST:Stop()
  1878. TEST:Play()
  1879. TEST:Remove()
  1880. print('I CAN DO ANYTHING')
  1881. attack = false
  1882. hum.WalkSpeed = 20
  1883. end
  1884. function Chain2()
  1885. if Mouse.Target.Parent ~= char and Mouse.Target.Parent.Parent ~= char and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1886. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1887. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1888. local HEAD = HUM.Parent:FindFirstChild("Head")
  1889. local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm")
  1890. local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm")
  1891. if HEAD and TORSO and HUM.Health > 0 then
  1892. local GYRO = IT("BodyGyro",root)
  1893. GYRO.D = 275
  1894. GYRO.P = 20000
  1895. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1896. attack = true
  1897. hum.WalkSpeed = 0
  1898. local hit,pos,hummie;
  1899. local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1900. Hook2.Transparency = 1
  1901. local A2 = NewInstance("Attachment",Hook2)
  1902. local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1903. local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1904. for i = 0, 2.3, .1 do
  1905. swait()
  1906. GYRO.cframe = CF(root.Position,TORSO.Position)
  1907. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1908. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1909. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1910. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1911. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1912. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1913. end
  1914. Cso("169105657", ra, 7, 1.2)
  1915. for i = 0, 5, .1 do
  1916. if(hit)then break end
  1917. swait()
  1918. GYRO.cframe = CF(root.Position,TORSO.Position)
  1919. Hook2.CFrame = TORSO.CFrame
  1920. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(7), Rad(0), Rad(0)), 0.15)
  1921. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1922. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1923. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1924. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1925. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1926. end
  1927. Cso("169105657", ra, 5, .8)
  1928. Cso("2545211765", char, 7, 1)
  1929. GYRO:remove()
  1930. TORSO:BreakJoints()
  1931. for i = 0, 6, .1 do
  1932. swait()
  1933. Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
  1934. if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new()
  1935. end
  1936. if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then
  1937. break
  1938. end
  1939. Chain2.TextureLength = 4
  1940. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1941. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1942. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(90)), 0.15)
  1943. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1944. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1945. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1946. end
  1947. hum.WalkSpeed = 16
  1948. attack = false
  1949. Hook2:Destroy()
  1950. end
  1951. end
  1952. end
  1953. -------------------------------------------------------
  1954. --End Attacks N Stuff--
  1955. -------------------------------------------------------
  1956. mouse.KeyDown:connect(function(key)
  1957. if attack == false then
  1958. if key == 'z' then
  1959. finalChaos()
  1960. elseif key == 'q' then
  1961. icando()
  1962. elseif key == 'e' then
  1963. Taunt2()
  1964. elseif key == 'x' then
  1965. Chain2()
  1966. end
  1967. end
  1968. end)
  1969.  
  1970.  
  1971.  
  1972.  
  1973. mouse.Button1Down:connect(function(key)
  1974. if attack == false then
  1975. Attack()
  1976. end
  1977. end)
  1978.  
  1979. -------------------------------------------------------
  1980. --Start Animations--
  1981. -------------------------------------------------------
  1982. print("By Makhail07")
  1983. while true do
  1984. swait()
  1985. sine = sine + change
  1986. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1987. local velderp = root.Velocity.y
  1988. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1989. if equipped == true or equipped == false then
  1990. if attack == false then
  1991. idle = idle + 1
  1992. else
  1993. idle = 0
  1994. end
  1995. if 1 < root.Velocity.y and hitfloor == nil then
  1996. Anim = "Jump"
  1997. if attack == false then
  1998. 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)
  1999. 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)
  2000. 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)
  2001. 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)
  2002. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  2003. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  2004. end
  2005. elseif -1 > root.Velocity.y and hitfloor == nil then
  2006. Anim = "Fall"
  2007. if attack == false then
  2008. 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)
  2009. 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)
  2010. 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)
  2011. 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)
  2012. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  2013. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  2014. end
  2015. elseif torvel < 1 and hitfloor ~= nil then
  2016. Anim = "Idle"
  2017. change = 1
  2018. if attack == false then
  2019. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2020. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2021. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9.5), Rad(0), Rad(0)), 0.15)
  2022. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  2023. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1)
  2024. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2025. end
  2026. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  2027. Anim = "Walk"
  2028. change = 1
  2029. if attack == false then
  2030. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15)
  2031. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  2032. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2033. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2034. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1)
  2035. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2036. end
  2037. elseif torvel >= 25 and hitfloor ~= nil then
  2038. Anim = "Sprint"
  2039. change = 1.35
  2040. if attack == false then
  2041. 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)
  2042. 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)
  2043. 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)
  2044. LH.C0 = clerp(LH.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)) + ll.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)
  2045. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  2046. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  2047. end
  2048. end
  2049. end
  2050. if 0 < #Effects then
  2051. for e = 1, #Effects do
  2052. if Effects[e] ~= nil then
  2053. local Thing = Effects[e]
  2054. if Thing ~= nil then
  2055. local Part = Thing[1]
  2056. local Mode = Thing[2]
  2057. local Delay = Thing[3]
  2058. local IncX = Thing[4]
  2059. local IncY = Thing[5]
  2060. local IncZ = Thing[6]
  2061. if 1 >= Thing[1].Transparency then
  2062. if Thing[2] == "Block1" then
  2063. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2064. local Mesh = Thing[1].Mesh
  2065. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2066. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2067. elseif Thing[2] == "Block2" then
  2068. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2069. local Mesh = Thing[7]
  2070. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2071. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2072. elseif Thing[2] == "Block3" then
  2073. 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)
  2074. local Mesh = Thing[7]
  2075. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2076. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2077. elseif Thing[2] == "Cylinder" then
  2078. local Mesh = Thing[1].Mesh
  2079. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2080. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2081. elseif Thing[2] == "Blood" then
  2082. local Mesh = Thing[7]
  2083. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2084. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2085. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2086. elseif Thing[2] == "Elec" then
  2087. local Mesh = Thing[1].Mesh
  2088. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2089. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2090. elseif Thing[2] == "Disappear" then
  2091. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2092. elseif Thing[2] == "Shatter" then
  2093. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2094. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2095. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2096. Thing[6] = Thing[6] + Thing[5]
  2097. end
  2098. else
  2099. Part.Parent = nil
  2100. table.remove(Effects, e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement