Advertisement
Saadastic

Untitled

Mar 14th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.53 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. m = game.Players.LocalPlayer
  146. char = m.Character
  147. local txt = Instance.new("BillboardGui", char)
  148. txt.Adornee = char.Head
  149. txt.Name = "_status"
  150. txt.Size = UDim2.new(2, 0, 1.2, 0)
  151. txt.StudsOffset = Vector3.new(-9, 8, 0)
  152. local text = Instance.new("TextLabel", txt)
  153. text.Size = UDim2.new(10, 0, 7, 0)
  154. text.FontSize = "Size24"
  155. text.TextScaled = true
  156. text.TextTransparency = 0
  157. text.BackgroundTransparency = 1
  158. text.TextTransparency = 0
  159. text.TextStrokeTransparency = 0
  160. text.Font = "Bodoni"
  161. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  162. v = Instance.new("Part")
  163. v.Name = "ColorBrick"
  164. v.Parent = m.Character
  165. v.FormFactor = "Symmetric"
  166. v.Anchored = true
  167. v.CanCollide = false
  168. v.BottomSurface = "Smooth"
  169. v.TopSurface = "Smooth"
  170. v.Size = Vector3.new(10, 5, 3)
  171. v.Transparency = 1
  172. v.CFrame = char.Torso.CFrame
  173. v.BrickColor = BrickColor.new("Really red")
  174. v.Transparency = 1
  175. v.Shape = "Block"
  176. spawn(function()
  177. local TweenService = game:GetService("TweenService")
  178. local Colours = {Color3.fromRGB(1,0,0),Color3.fromRGB(1,0,0),Color3.fromRGB(1,0,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0)}
  179. local Int = 0
  180. while wait(0.5) do
  181. if Int == #Colours then Int = 0 end
  182. Int = Int+1
  183. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  184. end
  185. end)
  186. text.Text = "Sadly!"
  187.  
  188. script.Name = "Banisher Gun V3 / 1"
  189. --//====================================================\\--
  190. --|| CREATED BY SHACKLUSTER
  191. --\\====================================================//--
  192.  
  193. script:ClearAllChildren()
  194. wait(0.2)
  195.  
  196. Player = game:GetService("Players").LocalPlayer
  197. PlayerGui = Player.PlayerGui
  198. Cam = workspace.CurrentCamera
  199. Backpack = Player.Backpack
  200. Character = Player.Character
  201. Humanoid = Character.Humanoid
  202. Mouse = Player:GetMouse()
  203. RootPart = Character["HumanoidRootPart"]
  204. Torso = Character["Torso"]
  205. Head = Character["Head"]
  206. RightArm = Character["Right Arm"]
  207. LeftArm = Character["Left Arm"]
  208. RightLeg = Character["Right Leg"]
  209. LeftLeg = Character["Left Leg"]
  210. RootJoint = RootPart["RootJoint"]
  211. Neck = Torso["Neck"]
  212. RightShoulder = Torso["Right Shoulder"]
  213. LeftShoulder = Torso["Left Shoulder"]
  214. RightHip = Torso["Right Hip"]
  215. LeftHip = Torso["Left Hip"]
  216. local TIME = 0
  217. local sick = Instance.new("Sound",Torso)
  218.  
  219. IT = Instance.new
  220. CF = CFrame.new
  221. VT = Vector3.new
  222. RAD = math.rad
  223. C3 = Color3.new
  224. UD2 = UDim2.new
  225. BRICKC = BrickColor.new
  226. ANGLES = CFrame.Angles
  227. EULER = CFrame.fromEulerAnglesXYZ
  228. COS = math.cos
  229. ACOS = math.acos
  230. SIN = math.sin
  231. ASIN = math.asin
  232. ABS = math.abs
  233. MRANDOM = math.random
  234. FLOOR = math.floor
  235. local BODY = {}
  236.  
  237. --//=================================\\
  238. --|| USEFUL VALUES
  239. --\\=================================//
  240.  
  241. Animation_Speed = 3
  242. local FORCERESET = false
  243. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  244. local Speed = 16
  245. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  246. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  247. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  248. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  249. local DAMAGEMULTIPLIER = 1
  250. local ANIM = "Idle"
  251. local ATTACK = false
  252. local EQUIPPED = false
  253. local HOLD = false
  254. local COMBO = 1
  255. local Rooted = false
  256. local SINE = 0
  257. local KEYHOLD = false
  258. local CHANGE = 2 / Animation_Speed
  259. local WALKINGANIM = false
  260. local VALUE1 = false
  261. local VALUE2 = false
  262. local ROBLOXIDLEANIMATION = IT("Animation")
  263. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  264. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  265. --ROBLOXIDLEANIMATION.Parent = Humanoid
  266. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  267. WEAPONGUI.Name = "BanishV3Gui"
  268. local Weapon = IT("Model")
  269. Weapon.Name = "Adds"
  270. local Effects = IT("Folder", Weapon)
  271. Effects.Name = "Effects"
  272. local ANIMATOR = Humanoid.Animator
  273. local ANIMATE = Character:FindFirstChild("Animate")
  274. local UNANCHOR = true
  275. local TOBANISH = {}
  276. script.Parent = PlayerGui
  277.  
  278. --//=================================\\
  279. --\\=================================//
  280.  
  281.  
  282. --//=================================\\
  283. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  284. --\\=================================//
  285.  
  286. ArtificialHB = Instance.new("BindableEvent", script)
  287. ArtificialHB.Name = "ArtificialHB"
  288.  
  289. script:WaitForChild("ArtificialHB")
  290.  
  291. frame = Frame_Speed
  292. tf = 0
  293. allowframeloss = false
  294. tossremainder = false
  295. lastframe = tick()
  296. script.ArtificialHB:Fire()
  297.  
  298. game:GetService("RunService").Heartbeat:connect(function(s, p)
  299. tf = tf + s
  300. if tf >= frame then
  301. if allowframeloss then
  302. script.ArtificialHB:Fire()
  303. lastframe = tick()
  304. else
  305. for i = 1, math.floor(tf / frame) do
  306. script.ArtificialHB:Fire()
  307. end
  308. lastframe = tick()
  309. end
  310. if tossremainder then
  311. tf = 0
  312. else
  313. tf = tf - frame * math.floor(tf / frame)
  314. end
  315. end
  316. end)
  317.  
  318. --//=================================\\
  319. --\\=================================//
  320.  
  321. --//=================================\\
  322. --|| SOME FUNCTIONS
  323. --\\=================================//
  324.  
  325. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  326. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  327. end
  328.  
  329. function PositiveAngle(NUMBER)
  330. if NUMBER >= 0 then
  331. NUMBER = 0
  332. end
  333. return NUMBER
  334. end
  335.  
  336. function NegativeAngle(NUMBER)
  337. if NUMBER <= 0 then
  338. NUMBER = 0
  339. end
  340. return NUMBER
  341. end
  342.  
  343. function Swait(NUMBER)
  344. if NUMBER == 0 or NUMBER == nil then
  345. ArtificialHB.Event:wait()
  346. else
  347. for i = 1, NUMBER do
  348. ArtificialHB.Event:wait()
  349. end
  350. end
  351. end
  352.  
  353. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  354. local NEWMESH = IT(MESH)
  355. if MESH == "SpecialMesh" then
  356. NEWMESH.MeshType = MESHTYPE
  357. if MESHID ~= "nil" and MESHID ~= "" then
  358. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  359. end
  360. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  361. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  362. end
  363. end
  364. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  365. NEWMESH.Scale = SCALE
  366. NEWMESH.Parent = PARENT
  367. return NEWMESH
  368. end
  369.  
  370. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  371. local NEWPART = IT("Part")
  372. NEWPART.formFactor = FORMFACTOR
  373. NEWPART.Reflectance = REFLECTANCE
  374. NEWPART.Transparency = TRANSPARENCY
  375. NEWPART.CanCollide = false
  376. NEWPART.Locked = true
  377. NEWPART.Anchored = true
  378. if ANCHOR == false then
  379. NEWPART.Anchored = false
  380. end
  381. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  382. NEWPART.Name = NAME
  383. NEWPART.Size = SIZE
  384. NEWPART.Position = Torso.Position
  385. NEWPART.Material = MATERIAL
  386. NEWPART:BreakJoints()
  387. NEWPART.Parent = PARENT
  388. return NEWPART
  389. end
  390.  
  391. local function weldBetween(a, b)
  392. local weldd = Instance.new("ManualWeld")
  393. weldd.Part0 = a
  394. weldd.Part1 = b
  395. weldd.C0 = CFrame.new()
  396. weldd.C1 = b.CFrame:inverse() * a.CFrame
  397. weldd.Parent = a
  398. return weldd
  399. end
  400.  
  401.  
  402. function QuaternionFromCFrame(cf)
  403. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  404. local trace = m00 + m11 + m22
  405. if trace > 0 then
  406. local s = math.sqrt(1 + trace)
  407. local recip = 0.5 / s
  408. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  409. else
  410. local i = 0
  411. if m11 > m00 then
  412. i = 1
  413. end
  414. if m22 > (i == 0 and m00 or m11) then
  415. i = 2
  416. end
  417. if i == 0 then
  418. local s = math.sqrt(m00 - m11 - m22 + 1)
  419. local recip = 0.5 / s
  420. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  421. elseif i == 1 then
  422. local s = math.sqrt(m11 - m22 - m00 + 1)
  423. local recip = 0.5 / s
  424. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  425. elseif i == 2 then
  426. local s = math.sqrt(m22 - m00 - m11 + 1)
  427. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  428. end
  429. end
  430. end
  431.  
  432. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  433. local xs, ys, zs = x + x, y + y, z + z
  434. local wx, wy, wz = w * xs, w * ys, w * zs
  435. local xx = x * xs
  436. local xy = x * ys
  437. local xz = x * zs
  438. local yy = y * ys
  439. local yz = y * zs
  440. local zz = z * zs
  441. 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))
  442. end
  443.  
  444. function QuaternionSlerp(a, b, t)
  445. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  446. local startInterp, finishInterp;
  447. if cosTheta >= 0.0001 then
  448. if (1 - cosTheta) > 0.0001 then
  449. local theta = ACOS(cosTheta)
  450. local invSinTheta = 1 / SIN(theta)
  451. startInterp = SIN((1 - t) * theta) * invSinTheta
  452. finishInterp = SIN(t * theta) * invSinTheta
  453. else
  454. startInterp = 1 - t
  455. finishInterp = t
  456. end
  457. else
  458. if (1 + cosTheta) > 0.0001 then
  459. local theta = ACOS(-cosTheta)
  460. local invSinTheta = 1 / SIN(theta)
  461. startInterp = SIN((t - 1) * theta) * invSinTheta
  462. finishInterp = SIN(t * theta) * invSinTheta
  463. else
  464. startInterp = t - 1
  465. finishInterp = t
  466. end
  467. end
  468. 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
  469. end
  470.  
  471. function Clerp(a, b, t)
  472. local qa = {QuaternionFromCFrame(a)}
  473. local qb = {QuaternionFromCFrame(b)}
  474. local ax, ay, az = a.x, a.y, a.z
  475. local bx, by, bz = b.x, b.y, b.z
  476. local _t = 1 - t
  477. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  478. end
  479.  
  480. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  481. local frame = IT("Frame")
  482. frame.BackgroundTransparency = TRANSPARENCY
  483. frame.BorderSizePixel = BORDERSIZEPIXEL
  484. frame.Position = POSITION
  485. frame.Size = SIZE
  486. frame.BackgroundColor3 = COLOR
  487. frame.BorderColor3 = BORDERCOLOR
  488. frame.Name = NAME
  489. frame.Parent = PARENT
  490. return frame
  491. end
  492.  
  493. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  494. local label = IT("TextLabel")
  495. label.BackgroundTransparency = 1
  496. label.Size = UD2(1, 0, 1, 0)
  497. label.Position = UD2(0, 0, 0, 0)
  498. label.TextColor3 = TEXTCOLOR
  499. label.TextStrokeTransparency = STROKETRANSPARENCY
  500. label.TextTransparency = TRANSPARENCY
  501. label.FontSize = TEXTFONTSIZE
  502. label.Font = TEXTFONT
  503. label.BorderSizePixel = BORDERSIZEPIXEL
  504. label.TextScaled = false
  505. label.Text = TEXT
  506. label.Name = NAME
  507. label.Parent = PARENT
  508. return label
  509. end
  510.  
  511. function NoOutlines(PART)
  512. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  513. end
  514.  
  515. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  516. local NEWWELD = IT(TYPE)
  517. NEWWELD.Part0 = PART0
  518. NEWWELD.Part1 = PART1
  519. NEWWELD.C0 = C0
  520. NEWWELD.C1 = C1
  521. NEWWELD.Parent = PARENT
  522. return NEWWELD
  523. end
  524.  
  525. local S = IT("Sound")
  526. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  527. local NEWSOUND = nil
  528. coroutine.resume(coroutine.create(function()
  529. NEWSOUND = S:Clone()
  530. NEWSOUND.Parent = PARENT
  531. NEWSOUND.Volume = VOLUME
  532. NEWSOUND.Pitch = PITCH
  533. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  534. NEWSOUND:play()
  535. if DOESLOOP == true then
  536. NEWSOUND.Looped = true
  537. else
  538. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  539. NEWSOUND:remove()
  540. end
  541. end))
  542. return NEWSOUND
  543. end
  544.  
  545. function CFrameFromTopBack(at, top, back)
  546. local right = top:Cross(back)
  547. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  548. end
  549.  
  550. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  551. function WACKYEFFECT(Table)
  552. local TYPE = (Table.EffectType or "Sphere")
  553. local SIZE = (Table.Size or VT(1,1,1))
  554. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  555. local TRANSPARENCY = (Table.Transparency or 0)
  556. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  557. local CFRAME = (Table.CFrame or Torso.CFrame)
  558. local MOVEDIRECTION = (Table.MoveToPos or nil)
  559. local ROTATION1 = (Table.RotationX or 0)
  560. local ROTATION2 = (Table.RotationY or 0)
  561. local ROTATION3 = (Table.RotationZ or 0)
  562. local MATERIAL = (Table.Material or "Neon")
  563. local COLOR = (Table.Color or C3(1,1,1))
  564. local TIME = (Table.Time or 45)
  565. local SOUNDID = (Table.SoundID or nil)
  566. local SOUNDPITCH = (Table.SoundPitch or nil)
  567. local SOUNDVOLUME = (Table.SoundVolume or nil)
  568. coroutine.resume(coroutine.create(function()
  569. local PLAYSSOUND = false
  570. local SOUND = nil
  571. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  572. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  573. PLAYSSOUND = true
  574. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  575. end
  576. EFFECT.Color = COLOR
  577. local MSH = nil
  578. if TYPE == "Sphere" then
  579. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  580. elseif TYPE == "Block" then
  581. MSH = IT("BlockMesh",EFFECT)
  582. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  583. elseif TYPE == "Wave" then
  584. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  585. elseif TYPE == "Ring" then
  586. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  587. elseif TYPE == "Slash" then
  588. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  589. elseif TYPE == "Round Slash" then
  590. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  591. elseif TYPE == "Swirl" then
  592. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  593. elseif TYPE == "Skull" then
  594. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  595. elseif TYPE == "Crystal" then
  596. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  597. end
  598. if MSH ~= nil then
  599. local MOVESPEED = nil
  600. if MOVEDIRECTION ~= nil then
  601. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  602. end
  603. local GROWTH = SIZE - ENDSIZE
  604. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  605. if TYPE == "Block" then
  606. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  607. else
  608. EFFECT.CFrame = CFRAME
  609. end
  610. for LOOP = 1, TIME+1 do
  611. Swait()
  612. MSH.Scale = MSH.Scale - GROWTH/TIME
  613. if TYPE == "Wave" then
  614. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  615. end
  616. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  617. if TYPE == "Block" then
  618. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  619. else
  620. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  621. end
  622. if MOVEDIRECTION ~= nil then
  623. local ORI = EFFECT.Orientation
  624. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  625. EFFECT.Orientation = ORI
  626. end
  627. end
  628. if PLAYSSOUND == false then
  629. EFFECT:remove()
  630. else
  631. SOUND.Stopped:Connect(function()
  632. EFFECT:remove()
  633. end)
  634. end
  635. else
  636. if PLAYSSOUND == false then
  637. EFFECT:remove()
  638. else
  639. repeat Swait() until SOUND.Playing == false
  640. EFFECT:remove()
  641. end
  642. end
  643. end))
  644. end
  645.  
  646. function MakeForm(PART,TYPE)
  647. if TYPE == "Cyl" then
  648. local MSH = IT("CylinderMesh",PART)
  649. elseif TYPE == "Ball" then
  650. local MSH = IT("SpecialMesh",PART)
  651. MSH.MeshType = "Sphere"
  652. elseif TYPE == "Wedge" then
  653. local MSH = IT("SpecialMesh",PART)
  654. MSH.MeshType = "Wedge"
  655. end
  656. end
  657.  
  658. function SpawnTrail(FROM,TO,BIG)
  659. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  660. MakeForm(TRAIL,"Cyl")
  661. local DIST = (FROM - TO).Magnitude
  662. if BIG == true then
  663. TRAIL.Size = VT(0.5,DIST,0.5)
  664. else
  665. TRAIL.Size = VT(0.25,DIST,0.25)
  666. end
  667. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  668. coroutine.resume(coroutine.create(function()
  669. for i = 1, 5 do
  670. Swait()
  671. TRAIL.Transparency = TRAIL.Transparency + 0.1
  672. end
  673. TRAIL:remove()
  674. end))
  675. end
  676.  
  677. Debris = game:GetService("Debris")
  678.  
  679. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  680. local DIRECTION = CF(StartPos,EndPos).lookVector
  681. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  682. end
  683.  
  684. function turnto(position)
  685. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  686. end
  687. local asd = Instance.new("ParticleEmitter")
  688. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  689. asd.LightEmission = .1
  690. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  691. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  692. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  693. asd.Transparency = bbb
  694. asd.Size = aaa
  695. asd.ZOffset = .9
  696. asd.Acceleration = Vector3.new(0, -15, 0)
  697. asd.LockedToPart = false
  698. asd.EmissionDirection = "Back"
  699. asd.Lifetime = NumberRange.new(1, 2)
  700. asd.Rotation = NumberRange.new(-100, 100)
  701. asd.RotSpeed = NumberRange.new(-100, 100)
  702. asd.Speed = NumberRange.new(10)
  703. asd.Enabled = false
  704. asd.VelocitySpread = 999
  705.  
  706. function getbloody(victim,amount)
  707. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  708. PART.CFrame = victim.CFrame
  709. local HITPLAYERSOUNDS = {"356551938","264486467"}
  710. Debris:AddItem(PART,5)
  711. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  712. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  713. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  714. local prtcl = asd:Clone()
  715. prtcl.Parent = PART
  716. prtcl:Emit(amount*10)
  717. end
  718.  
  719. local Particle = IT("ParticleEmitter",nil)
  720. Particle.Enabled = false
  721. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  722. Particle.LightEmission = 0.5
  723. Particle.Rate = 150
  724. Particle.ZOffset = 1
  725. Particle.Rotation = NumberRange.new(-180, 180)
  726. Particle.RotSpeed = NumberRange.new(-180, 180)
  727. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  728. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  729.  
  730. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  731. function ParticleEmitter(Table)
  732. local PRTCL = Particle:Clone()
  733. local Speed = Table.Speed or 5
  734. local Drag = Table.Drag or 0
  735. local Size1 = Table.Size1 or 1
  736. local Size2 = Table.Size2 or 5
  737. local Lifetime1 = Table.Lifetime1 or 1
  738. local Lifetime2 = Table.Lifetime2 or 1.5
  739. local Parent = Table.Parent or Torso
  740. local Emit = Table.Emit or 100
  741. local Offset = Table.Offset or 360
  742. local Acel = Table.Acel or VT(0,0,0)
  743. local Enabled = Table.Enabled or false
  744. PRTCL.Parent = Parent
  745. PRTCL.Size = NumberSequence.new(Size1,Size2)
  746. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  747. PRTCL.Speed = NumberRange.new(Speed)
  748. PRTCL.VelocitySpread = Offset
  749. PRTCL.Drag = Drag
  750. PRTCL.Acceleration = Acel
  751. if Enabled == false then
  752. PRTCL:Emit(Emit)
  753. Debris:AddItem(PRTCL,Lifetime2)
  754. else
  755. PRTCL.Enabled = true
  756. end
  757. return PRTCL
  758. end
  759.  
  760. --//=================================\\
  761. --|| WEAPON CREATION
  762. --\\=================================//
  763.  
  764. local A = IT("Attachment",LeftArm)
  765. A.Position = VT(1,1.3,0)
  766. A.Orientation = VT(-0.098, -89.999, 0.227)
  767. local B = IT("Attachment",LeftArm)
  768. B.Position = VT(-1.3,-0.6,0)
  769. B.Orientation = VT(-88.911, -68.808, 158.782)
  770. local ChainLink = IT("Beam",LeftArm)
  771. ChainLink.Texture = "rbxassetid://73042633"
  772. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  773. ChainLink.TextureSpeed = 1
  774. ChainLink.FaceCamera = true
  775. ChainLink.Width0 = 1
  776. ChainLink.Width1 = 1
  777. ChainLink.TextureLength = 3
  778. ChainLink.Attachment0 = A
  779. ChainLink.Attachment1 = B
  780. ChainLink.CurveSize0 = 1.6
  781. ChainLink.CurveSize1 = 1.6
  782. ChainLink.FaceCamera = true
  783. ChainLink.Transparency = NumberSequence.new(0)
  784. local ChainLink = IT("Beam",LeftArm)
  785. ChainLink.Texture = "rbxassetid://73042633"
  786. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  787. ChainLink.TextureSpeed = 1
  788. ChainLink.FaceCamera = true
  789. ChainLink.Width0 = 1
  790. ChainLink.Width1 = 1
  791. ChainLink.TextureLength = 3
  792. ChainLink.Attachment0 = B
  793. ChainLink.Attachment1 = A
  794. ChainLink.CurveSize0 = 1.6
  795. ChainLink.CurveSize1 = 1.6
  796. ChainLink.FaceCamera = true
  797. ChainLink.Transparency = NumberSequence.new(0)
  798. local A = IT("Attachment",RightArm)
  799. A.Position = VT(1.3,-0.85,0)
  800. A.Orientation = VT(-0.098, -89.999, 0.227)
  801. local B = IT("Attachment",RightArm)
  802. B.Position = VT(-1,2,0)
  803. B.Orientation = VT(-88.911, -68.808, 158.782)
  804. local ChainLink = IT("Beam",RightArm)
  805. ChainLink.Texture = "rbxassetid://73042633"
  806. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  807. ChainLink.TextureSpeed = 1
  808. ChainLink.FaceCamera = true
  809. ChainLink.Width0 = 1
  810. ChainLink.Width1 = 1
  811. ChainLink.TextureLength = 3
  812. ChainLink.Attachment0 = A
  813. ChainLink.Attachment1 = B
  814. ChainLink.CurveSize0 = 1.3
  815. ChainLink.CurveSize1 = 1.3
  816. ChainLink.FaceCamera = true
  817. ChainLink.Transparency = NumberSequence.new(0)
  818. local ChainLink = IT("Beam",RightArm)
  819. ChainLink.Texture = "rbxassetid://73042633"
  820. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  821. ChainLink.TextureSpeed = 1
  822. ChainLink.FaceCamera = true
  823. ChainLink.Width0 = 1
  824. ChainLink.Width1 = 1
  825. ChainLink.TextureLength = 3
  826. ChainLink.Attachment0 = B
  827. ChainLink.Attachment1 = A
  828. ChainLink.CurveSize0 = 1.3
  829. ChainLink.CurveSize1 = 1.3
  830. ChainLink.FaceCamera = true
  831. ChainLink.Transparency = NumberSequence.new(0)
  832.  
  833.  
  834. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
  835. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  836. MakeForm(Part,"Wedge")
  837.  
  838. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
  839. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  840. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  841. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
  842. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  843. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
  844. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
  845. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  846. local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
  847. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  848.  
  849. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  850. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  851. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0))
  852. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  853.  
  854. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  855. function WACKYEFFECT(Table)
  856. local TYPE = (Table.EffectType or "Sphere")
  857. local SIZE = (Table.Size or VT(1,1,1))
  858. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  859. local TRANSPARENCY = (Table.Transparency or 0)
  860. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  861. local CFRAME = (Table.CFrame or Torso.CFrame)
  862. local MOVEDIRECTION = (Table.MoveToPos or nil)
  863. local ROTATION1 = (Table.RotationX or 0)
  864. local ROTATION2 = (Table.RotationY or 0)
  865. local ROTATION3 = (Table.RotationZ or 0)
  866. local MATERIAL = (Table.Material or "Neon")
  867. local COLOR = (Table.Color or C3(1,1,1))
  868. local TIME = (Table.Time or 45)
  869. local SOUNDID = (Table.SoundID or nil)
  870. local SOUNDPITCH = (Table.SoundPitch or nil)
  871. local SOUNDVOLUME = (Table.SoundVolume or nil)
  872. coroutine.resume(coroutine.create(function()
  873. local PLAYSSOUND = false
  874. local SOUND = nil
  875. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  876. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  877. PLAYSSOUND = true
  878. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  879. end
  880. EFFECT.Color = COLOR
  881. local MSH = nil
  882. if TYPE == "Sphere" then
  883. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  884. elseif TYPE == "Block" then
  885. MSH = IT("BlockMesh",EFFECT)
  886. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  887. elseif TYPE == "Wave" then
  888. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  889. elseif TYPE == "Ring" then
  890. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  891. elseif TYPE == "Slash" then
  892. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  893. elseif TYPE == "Round Slash" then
  894. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  895. elseif TYPE == "Swirl" then
  896. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  897. elseif TYPE == "Skull" then
  898. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  899. elseif TYPE == "Crystal" then
  900. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  901. end
  902. if MSH ~= nil then
  903. local MOVESPEED = nil
  904. if MOVEDIRECTION ~= nil then
  905. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  906. end
  907. local GROWTH = SIZE - ENDSIZE
  908. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  909. if TYPE == "Block" then
  910. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  911. else
  912. EFFECT.CFrame = CFRAME
  913. end
  914. for LOOP = 1, TIME+1 do
  915. Swait()
  916. MSH.Scale = MSH.Scale - GROWTH/TIME
  917. if TYPE == "Wave" then
  918. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  919. end
  920. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  921. if TYPE == "Block" then
  922. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  923. else
  924. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  925. end
  926. if MOVEDIRECTION ~= nil then
  927. local ORI = EFFECT.Orientation
  928. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  929. EFFECT.Orientation = ORI
  930. end
  931. end
  932. if PLAYSSOUND == false then
  933. EFFECT:remove()
  934. else
  935. SOUND.Stopped:Connect(function()
  936. EFFECT:remove()
  937. end)
  938. end
  939. else
  940. if PLAYSSOUND == false then
  941. EFFECT:remove()
  942. else
  943. repeat Swait() until SOUND.Playing == false
  944. EFFECT:remove()
  945. end
  946. end
  947. end))
  948. end
  949.  
  950. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  951. PRT.Color = C3(0,0,0)
  952. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  953. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  954. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  955. PRT.Color = C3(0,0,0)
  956. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  957. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  958. for i = 1, 16 do
  959. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  960. FACE.Color = C3(0,0,0)
  961. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  962. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  963. end
  964. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15,0.15,0.15),false)
  965. MakeForm(EYE,"Ball")
  966. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  967. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15,0.15,0.15),false)
  968. MakeForm(EYE2,"Ball")
  969. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  970.  
  971. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  972. function ParticleEmitter(Table)
  973. local PRTCL = Particle:Clone()
  974. local Speed = Table.Speed or 5
  975. local Drag = Table.Drag or 0
  976. local Size1 = Table.Size1 or 1
  977. local Size2 = Table.Size2 or 5
  978. local Lifetime1 = Table.Lifetime1 or 1
  979. local Lifetime2 = Table.Lifetime2 or 1.5
  980. local Parent = Table.Parent or Torso
  981. local Emit = Table.Emit or 100
  982. local Offset = Table.Offset or 360
  983. local Acel = Table.Acel or VT(0,0,0)
  984. local Enabled = Table.Enabled or false
  985. PRTCL.Parent = Parent
  986. PRTCL.Size = NumberSequence.new(Size1,Size2)
  987. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  988. PRTCL.Speed = NumberRange.new(Speed)
  989. PRTCL.VelocitySpread = Offset
  990. PRTCL.Drag = Drag
  991. PRTCL.Acceleration = Acel
  992. if Enabled == false then
  993. PRTCL:Emit(Emit)
  994. Debris:AddItem(PRTCL,Lifetime2)
  995. else
  996. PRTCL.Enabled = true
  997. end
  998. return PRTCL
  999. end
  1000.  
  1001. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1002. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1003.  
  1004. for _, c in pairs(Weapon:GetDescendants()) do
  1005. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1006. c.Material = "Glass"
  1007. c.Color = C3(0,0,0)
  1008. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1009. c.Color = C3(1,0,0)
  1010. c.Material = "Neon"
  1011. end
  1012. end
  1013.  
  1014. Weapon.Parent = Character
  1015. for _, c in pairs(Weapon:GetChildren()) do
  1016. if c.ClassName == "Part" then
  1017. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1018. end
  1019. end
  1020.  
  1021. local SKILLTEXTCOLOR = C3(1,0,0)
  1022. local SKILLFONT = "Antique"
  1023. local SKILLTEXTSIZE = 7
  1024.  
  1025. Humanoid.Died:connect(function()
  1026. ATTACK = true
  1027. end)
  1028.  
  1029. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1030. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1031. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1032. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1033. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1034. ]]
  1035. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] ", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1036. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1037. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1038. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1039. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1040. ]]
  1041. function printbye(Name)
  1042. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1043. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1044. end
  1045.  
  1046. workspace.ChildAdded:connect(function(instance)
  1047. for BANISH = 1, #TOBANISH do
  1048. if TOBANISH[BANISH] ~= nil then
  1049. if instance.Name == TOBANISH[BANISH] then
  1050. coroutine.resume(coroutine.create(function()
  1051. printbye(instance.Name)
  1052. instance:ClearAllChildren()
  1053. Debris:AddItem(instance,0.0005)
  1054. end))
  1055. end
  1056. end
  1057. end
  1058. end)
  1059.  
  1060. --//=================================\\
  1061. --|| DAMAGING
  1062. --\\=================================//
  1063.  
  1064.  
  1065. function BulletDetection(FROM,TO,BRUTAL)
  1066. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1067. coroutine.resume(coroutine.create(function()
  1068. if AIMHIT ~= nil then
  1069. if AIMHIT.Parent ~= Character then
  1070. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1071. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1072. if BRUTAL == true then
  1073. Kill(AIMHIT.Parent)
  1074. else
  1075. getbloody(AIMHIT,15)
  1076. AIMHIT.Parent:BreakJoints()
  1077. if AIMHIT.Name == "Head" then
  1078. AIMHIT.Name = "HEADSHOT"
  1079. AIMHIT:remove()
  1080. end
  1081. end
  1082. else
  1083. if BRUTAL == true then
  1084. Kill(AIMHIT.Parent.Parent)
  1085. else
  1086. AIMHIT.Parent.Parent:BreakJoints()
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end))
  1093. SpawnTrail(FROM,AIMPOS)
  1094. return AIMHIT,AIMPOS,NORMAL
  1095. end
  1096.  
  1097. function Banish(Foe)
  1098. if Foe then
  1099. coroutine.resume(coroutine.create(function()
  1100. --if game.Players:FindFirstChild(Foe.Name) then
  1101. table.insert(TOBANISH,Foe.Name)
  1102. printbye(Foe.Name)
  1103. --end
  1104. Foe.Archivable = true
  1105. local CLONE = Foe:Clone()
  1106. Foe:Destroy()
  1107. CLONE.Parent = Effects
  1108. CLONE:BreakJoints()
  1109. local MATERIALS = {"Glass","Neon"}
  1110. for _, c in pairs(CLONE:GetDescendants()) do
  1111. if c:IsA("BasePart") then
  1112. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1113. CreateSound(340722848, c, 10, 1, false)
  1114. end
  1115. c.Anchored = true
  1116. c.Transparency = c.Transparency + 0.2
  1117. c.Material = MATERIALS[MRANDOM(1,2)]
  1118. c.Color = C3(0,1,0)
  1119. if c.ClassName == "MeshPart" then
  1120. c.TextureID = ""
  1121. end
  1122. if c:FindFirstChildOfClass("SpecialMesh") then
  1123. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1124. end
  1125. if c:FindFirstChildOfClass("Decal") then
  1126. c:FindFirstChildOfClass("Decal"):remove()
  1127. end
  1128. c.Name = "Banished"
  1129. c.CanCollide = false
  1130. else
  1131. c:remove()
  1132. end
  1133. end
  1134. local A = false
  1135. for i = 1, 35 do
  1136. if A == false then
  1137. A = true
  1138. elseif A == true then
  1139. A = false
  1140. end
  1141. for _, c in pairs(CLONE:GetDescendants()) do
  1142. if c:IsA("BasePart") then
  1143. c.Anchored = true
  1144. c.Material = MATERIALS[MRANDOM(1,2)]
  1145. c.Transparency = c.Transparency + 0.8/35
  1146. if A == false then
  1147. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1148. elseif A == true then
  1149. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1150. end
  1151. end
  1152. end
  1153. Swait()
  1154. end
  1155. CLONE:remove()
  1156. end))
  1157. end
  1158. end
  1159.  
  1160. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1161. local CHILDREN = workspace:GetDescendants()
  1162. for index, CHILD in pairs(CHILDREN) do
  1163. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1164. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1165. if HUM then
  1166. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1167. if TORSO then
  1168. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1169. if ISBANISH == true then
  1170. Banish(CHILD)
  1171. else
  1172. if ISBANISH == "Gravity" then
  1173. HUM.PlatformStand = true
  1174. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1175. local grav = Instance.new("BodyPosition",TORSO)
  1176. grav.D = 15
  1177. grav.P = 20000
  1178. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1179. grav.position = TORSO.Position
  1180. grav.Name = "V3BanishForce"..Player.Name
  1181. else
  1182. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1183. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1184. end
  1185. else
  1186. HUM.PlatformStand = false
  1187. end
  1188. end
  1189. elseif ISBANISH == "Gravity" then
  1190. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1191. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1192. HUM.PlatformStand = false
  1193. end
  1194. end
  1195. end
  1196. end
  1197. end
  1198. end
  1199. end
  1200.  
  1201. function Kill(Char)
  1202. local NewCharacter = IT("Model",Effects)
  1203. NewCharacter.Name = "Ow im ded ;-;"
  1204. for _, c in pairs(Char:GetDescendants()) do
  1205. if c:IsA("BasePart") and c.Transparency == 0 then
  1206. if c.Parent == Char then
  1207. getbloody(c,5)
  1208. end
  1209. c:BreakJoints()
  1210. c.Material = "Glass"
  1211. c.Color = C3(0.5,0,0)
  1212. c.CanCollide = true
  1213. c.Transparency = 0.3
  1214. if c:FindFirstChildOfClass("SpecialMesh") then
  1215. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1216. end
  1217. if c.Name == "Head" then
  1218. c:ClearAllChildren()
  1219. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1220. end
  1221. if c.ClassName == "MeshPart" then
  1222. c.TextureID = ""
  1223. end
  1224. if c:FindFirstChildOfClass("BodyPosition") then
  1225. c:FindFirstChildOfClass("BodyPosition"):remove()
  1226. end
  1227. if c:FindFirstChildOfClass("ParticleEmitter") then
  1228. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1229. end
  1230. c.Parent = NewCharacter
  1231. c.Name = "DeadPart"
  1232. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1233. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1234. end
  1235. end
  1236. Char:remove()
  1237. Debris:AddItem(NewCharacter,5)
  1238. end
  1239.  
  1240. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1241. local CHILDREN = workspace:GetDescendants()
  1242. for index, CHILD in pairs(CHILDREN) do
  1243. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1244. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1245. if HUM then
  1246. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1247. if TORSO then
  1248. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1249. if BRUTAL == true then
  1250. Kill(CHILD)
  1251. else
  1252. CHILD:BreakJoints()
  1253. end
  1254. end
  1255. end
  1256. end
  1257. end
  1258. end
  1259. end
  1260.  
  1261. function BulletDetection(FROM,TO,BRUTAL)
  1262. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1263. coroutine.resume(coroutine.create(function()
  1264. if AIMHIT ~= nil then
  1265. if AIMHIT.Parent ~= Character then
  1266. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1267. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1268. if BRUTAL == true then
  1269. Kill(AIMHIT.Parent)
  1270. else
  1271. getbloody(AIMHIT,15)
  1272. AIMHIT.Parent:BreakJoints()
  1273. if AIMHIT.Name == "Head" then
  1274. AIMHIT.Name = "HEADSHOT"
  1275. AIMHIT:remove()
  1276. end
  1277. end
  1278. else
  1279. if BRUTAL == true then
  1280. Kill(AIMHIT.Parent.Parent)
  1281. else
  1282. AIMHIT.Parent.Parent:BreakJoints()
  1283. end
  1284. end
  1285. end
  1286. end
  1287. end
  1288. end))
  1289. SpawnTrail(FROM,AIMPOS)
  1290. return AIMHIT,AIMPOS,NORMAL
  1291. end
  1292.  
  1293. function Banish(Foe)
  1294. if Foe then
  1295. coroutine.resume(coroutine.create(function()
  1296. --if game.Players:FindFirstChild(Foe.Name) then
  1297. table.insert(TOBANISH,Foe.Name)
  1298. printbye(Foe.Name)
  1299. --end
  1300. Foe.Archivable = true
  1301. local CLONE = Foe:Clone()
  1302. Foe:Destroy()
  1303. CLONE.Parent = Effects
  1304. CLONE:BreakJoints()
  1305. local MATERIALS = {"Glass","Neon"}
  1306. for _, c in pairs(CLONE:GetDescendants()) do
  1307. if c:IsA("BasePart") then
  1308. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1309. CreateSound(340722848, c, 10, 1, false)
  1310. end
  1311. c.Anchored = true
  1312. c.Transparency = c.Transparency + 0.2
  1313. c.Material = MATERIALS[MRANDOM(1,2)]
  1314. c.Color = C3(1,0,0)
  1315. if c.ClassName == "MeshPart" then
  1316. c.TextureID = ""
  1317. end
  1318. if c:FindFirstChildOfClass("SpecialMesh") then
  1319. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1320. end
  1321. if c:FindFirstChildOfClass("Decal") then
  1322. c:FindFirstChildOfClass("Decal"):remove()
  1323. end
  1324. c.Name = "Banished"
  1325. c.CanCollide = false
  1326. else
  1327. c:remove()
  1328. end
  1329. end
  1330. local A = false
  1331. for i = 1, 35 do
  1332. if A == false then
  1333. A = true
  1334. elseif A == true then
  1335. A = false
  1336. end
  1337. for _, c in pairs(CLONE:GetDescendants()) do
  1338. if c:IsA("BasePart") then
  1339. c.Anchored = true
  1340. c.Material = MATERIALS[MRANDOM(1,2)]
  1341. c.Transparency = c.Transparency + 0.8/35
  1342. if A == false then
  1343. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1344. elseif A == true then
  1345. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1346. end
  1347. end
  1348. end
  1349. Swait()
  1350. end
  1351. CLONE:remove()
  1352. end))
  1353. end
  1354. end
  1355.  
  1356. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1357. local CHILDREN = workspace:GetDescendants()
  1358. for index, CHILD in pairs(CHILDREN) do
  1359. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1360. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1361. if HUM then
  1362. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1363. if TORSO then
  1364. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1365. if ISBANISH == true then
  1366. Banish(CHILD)
  1367. else
  1368. if ISBANISH == "Gravity" then
  1369. HUM.PlatformStand = true
  1370. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1371. local grav = Instance.new("BodyPosition",TORSO)
  1372. grav.D = 15
  1373. grav.P = 20000
  1374. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1375. grav.position = TORSO.Position
  1376. grav.Name = "V3BanishForce"..Player.Name
  1377. else
  1378. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1379. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1380. end
  1381. else
  1382. HUM.PlatformStand = false
  1383. end
  1384. end
  1385. elseif ISBANISH == "Gravity" then
  1386. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1387. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1388. HUM.PlatformStand = false
  1389. end
  1390. end
  1391. end
  1392. end
  1393. end
  1394. end
  1395. end
  1396.  
  1397. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1398. local CHILDREN = workspace:GetDescendants()
  1399. for index, CHILD in pairs(CHILDREN) do
  1400. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1401. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1402. if HUM then
  1403. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1404. if TORSO then
  1405. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1406. if BRUTAL == true then
  1407. Kill(CHILD)
  1408. else
  1409. CHILD:BreakJoints()
  1410. end
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417.  
  1418. function Kill(Char)
  1419. local NewCharacter = IT("Model",Effects)
  1420. NewCharacter.Name = "Ow im ded ;-;"
  1421. for _, c in pairs(Char:GetDescendants()) do
  1422. if c:IsA("BasePart") and c.Transparency == 0 then
  1423. if c.Parent == Char then
  1424. getbloody(c,5)
  1425. end
  1426. c:BreakJoints()
  1427. c.Material = "Glass"
  1428. c.Color = C3(1,0,0)
  1429. c.CanCollide = true
  1430. c.Transparency = 0.3
  1431. if c:FindFirstChildOfClass("SpecialMesh") then
  1432. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1433. end
  1434. if c.Name == "Head" then
  1435. c:ClearAllChildren()
  1436. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1437. end
  1438. if c.ClassName == "MeshPart" then
  1439. c.TextureID = ""
  1440. end
  1441. if c:FindFirstChildOfClass("BodyPosition") then
  1442. c:FindFirstChildOfClass("BodyPosition"):remove()
  1443. end
  1444. if c:FindFirstChildOfClass("ParticleEmitter") then
  1445. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1446. end
  1447. c.Parent = NewCharacter
  1448. c.Name = "DeadPart"
  1449. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1450. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1451. end
  1452. end
  1453. Char:remove()
  1454. Debris:AddItem(NewCharacter,5)
  1455. end
  1456.  
  1457. function ApplyClock(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1458. local CHILDREN = workspace:GetDescendants()
  1459. for index, CHILD in pairs(CHILDREN) do
  1460. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1461. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1462. if HUM then
  1463. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1464. if TORSO then
  1465. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1466. if INSTAKILL == true then
  1467. CHILD:BreakJoints()
  1468. else
  1469. local DMG = MRANDOM(MINDMG,MAXDMG)
  1470. ApplyDamage(HUM,DMG,TORSO)
  1471. end
  1472. if FLING > 0 then
  1473. for _, c in pairs(CHILD:GetChildren()) do
  1474. if c:IsA("BasePart") then
  1475. local bv = Instance.new("BodyVelocity")
  1476. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1477. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1478. bv.Parent = c
  1479. Debris:AddItem(bv,0.05)
  1480. end
  1481. end
  1482. end
  1483. end
  1484. end
  1485. end
  1486. end
  1487. end
  1488. end
  1489.  
  1490. --//=================================\\
  1491. --|| ATTACK FUNCTIONS AND STUFF
  1492. --\\=================================//
  1493.  
  1494. function TakeOnMe()
  1495. Speed = 16
  1496. local MEME = CreateSound(1171341451, Effects, 2, 1, false)
  1497. ATTACK = true
  1498. Rooted = false
  1499. local DANCE = true
  1500. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1501. if NEWKEY == "p" then
  1502. DANCE = false
  1503. end
  1504. end)
  1505. PLAYSONG = false
  1506. while true do
  1507. for i = 1, 15 do
  1508. Swait()
  1509. MEME.Parent = Effects
  1510. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1511. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1512. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1513. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1514. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1515. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1516. end
  1517. if DANCE == false then
  1518. break
  1519. end
  1520. for i = 1, 15 do
  1521. Swait()
  1522. MEME.Parent = Effects
  1523. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1524. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1525. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1526. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1527. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1528. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1529. end
  1530. end
  1531. PLAYSONG = true
  1532. KEY:Disconnect()
  1533. MEME:remove()
  1534. Speed = 25
  1535. ATTACK = false
  1536. Rooted = false
  1537. end
  1538.  
  1539. function Morning_Star()
  1540. ATTACK = true
  1541. Rooted = true
  1542. for i=0, 1, 0.1 / Animation_Speed do
  1543. Swait()
  1544. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1545. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1546. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1547. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1548. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1549. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1550. end
  1551. coroutine.resume(coroutine.create(function()
  1552. local POS = Mouse.Hit.p
  1553. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,2000,0))
  1554. MakeForm(RAY,"Cyl")
  1555. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,0,0))
  1556. MakeForm(SPHERE,"Ball")
  1557. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Maroon", "Strike", VT(0,0,0))
  1558. MakeForm(SHIELD,"Ball")
  1559. SHIELD.CFrame = CF(POS)
  1560. RAY.CFrame = CF(POS)
  1561. SPHERE.CFrame = CF(POS)
  1562. CreateSound(440145570, SPHERE, 10, 0.8, false)
  1563. CreateSound(415700134, SPHERE, 10, 0.8, false)
  1564. for i = 1, 200 do
  1565. Swait()
  1566. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1567. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1568. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1569. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1570. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1571. end
  1572. for i = 1, 45 do
  1573. Swait()
  1574. RAY.Transparency = RAY.Transparency + 1/45
  1575. SPHERE.Transparency = RAY.Transparency
  1576. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1577. end
  1578. RAY:remove()
  1579. SHIELD:remove()
  1580. SPHERE:remove()
  1581. end))
  1582. for i=0, 1, 0.1 / Animation_Speed do
  1583. Swait()
  1584. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1585. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1586. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1587. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1588. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1589. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1590. end
  1591. ATTACK = false
  1592. Rooted = false
  1593. end
  1594.  
  1595. function Taunt()
  1596. ATTACK = true
  1597. local LAUGH = nil
  1598. coroutine.resume(coroutine.create(function()
  1599. repeat
  1600. Swait()
  1601. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1602. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1603. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1604. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1605. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1606. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1607. until LAUGH ~= nil
  1608. repeat
  1609. Swait()
  1610. LAUGH.Parent = Head
  1611. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1612. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1613. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(180), RAD(10), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1614. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1615. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1616. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1617. until LAUGH.Playing == false
  1618. ATTACK = false
  1619. end))
  1620. wait(0.1)
  1621. LAUGH = CreateSound(300208779, Head, 10, 1, false)
  1622. sick:Resume()
  1623. end
  1624.  
  1625. function Shell()
  1626. ATTACK = true
  1627. Rooted = false
  1628. local GYRO = IT("BodyGyro",RootPart)
  1629. GYRO.D = 750
  1630. GYRO.P = 20000
  1631. GYRO.MaxTorque = VT(0,40000000,0)
  1632. for i=0, 1, 0.1 / Animation_Speed do
  1633. Swait()
  1634. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1635. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1636. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1637. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1638. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1639. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1640. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1641. end
  1642. GYRO:remove()
  1643. CreateSound(696483710, Gun, 5, 1, false)
  1644. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  1645. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  1646. WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1647. for i=0, 0.3, 0.1 / Animation_Speed do
  1648. Swait()
  1649. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1650. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1651. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1652. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1653. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1654. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1655. end
  1656. ATTACK = false
  1657. Rooted = false
  1658. end
  1659.  
  1660. function Teleport()
  1661. ATTACK = true
  1662. Rooted = false
  1663. for i=0, 0.5, 0.1 / Animation_Speed do
  1664. Swait()
  1665. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1666. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1667. end
  1668. for e = 1, #BODY do
  1669. if BODY[e] ~= nil then
  1670. local STUFF = BODY[e]
  1671. local PART = STUFF[1]
  1672. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1673. local PRT = PART:Clone()
  1674. PRT.Anchored = true
  1675. PRT.CanCollide = false
  1676. PRT.Material = "Neon"
  1677. PRT.Color = C3(1,1,1)
  1678. PRT.Name = "WarpEffect"
  1679. PRT.Parent = Effects
  1680. PRT.CFrame = PART.CFrame
  1681. PRT:BreakJoints()
  1682. if PRT:FindFirstChildOfClass("Sound") then
  1683. PRT:FindFirstChildOfClass("Sound"):remove()
  1684. end
  1685. if PRT:FindFirstChildOfClass("Decal") then
  1686. PRT:FindFirstChildOfClass("Decal"):remove()
  1687. end
  1688. coroutine.resume(coroutine.create(function()
  1689. for i = 1, 100 do
  1690. Swait()
  1691. PRT.Transparency = PRT.Transparency + 1/100
  1692. end
  1693. PRT:remove()
  1694. end))
  1695. end
  1696. end
  1697. end
  1698. CreateSound(217767125, Torso, 10, 1)
  1699. local POS = RootPart.Orientation
  1700. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1701. RootPart.Orientation = POS
  1702. RootJoint.Parent = RootPart
  1703. for i=0, 0.5, 0.1 / Animation_Speed do
  1704. Swait()
  1705. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1706. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1707. end
  1708. for i=0, 0.1, 0.1 / Animation_Speed do
  1709. Swait()
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1711. end
  1712. ATTACK = false
  1713. Rooted = false
  1714. end
  1715.  
  1716. --//=================================\\
  1717. --|| ASSIGN THINGS TO KEYS
  1718. --\\=================================//
  1719.  
  1720. function MouseDown(Mouse)
  1721. if ATTACK == false then
  1722. end
  1723. end
  1724.  
  1725. function MouseUp(Mouse)
  1726. HOLD = false
  1727. end
  1728.  
  1729. function KeyDown(Key)
  1730. KEYHOLD = true
  1731. if Key == "z" and ATTACK == false then
  1732. Morning_Star()
  1733. end
  1734.  
  1735. if Key == "t" and ATTACK == false then
  1736. Taunt()
  1737. end
  1738.  
  1739. if Key == "c" and ATTACK == false then
  1740. Shell()
  1741. end
  1742.  
  1743. if Key == "q" and ATTACK == false then
  1744. Teleport()
  1745. end
  1746.  
  1747. if Key == "p" and ATTACK == false then
  1748. TakeOnMe()
  1749. end
  1750. end
  1751.  
  1752. function KeyUp(Key)
  1753. KEYHOLD = false
  1754. end
  1755.  
  1756. Mouse.Button1Down:connect(function(NEWKEY)
  1757. MouseDown(NEWKEY)
  1758. end)
  1759. Mouse.Button1Up:connect(function(NEWKEY)
  1760. MouseUp(NEWKEY)
  1761. end)
  1762. Mouse.KeyDown:connect(function(NEWKEY)
  1763. KeyDown(NEWKEY)
  1764. end)
  1765. Mouse.KeyUp:connect(function(NEWKEY)
  1766. KeyUp(NEWKEY)
  1767. end)
  1768.  
  1769. --//=================================\\
  1770. --\\=================================//
  1771.  
  1772.  
  1773. function unanchor()
  1774. if UNANCHOR == true then
  1775. g = Character:GetChildren()
  1776. for i = 1, #g do
  1777. if g[i].ClassName == "Part" then
  1778. g[i].Anchored = false
  1779. end
  1780. end
  1781. end
  1782. end
  1783.  
  1784.  
  1785. --//=================================\\
  1786. --|| WRAP THE WHOLE SCRIPT UP
  1787. --\\=================================//
  1788.  
  1789. Humanoid.Changed:connect(function(Jump)
  1790. if Jump == "Jump" and (Disable_Jump == true) then
  1791. Humanoid.Jump = false
  1792. end
  1793. end)
  1794.  
  1795. local CONNECT = nil
  1796.  
  1797. while true do
  1798. Swait()
  1799. ANIMATE.Parent = nil
  1800. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1801. Humanoid = IT("Humanoid",Character)
  1802. end
  1803. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1804. v:Stop();
  1805. end
  1806. SINE = SINE + CHANGE
  1807. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1808. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1809. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1810. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1811. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1812. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1813. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1814. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1815. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1816. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1817. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1818. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1819. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1820. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1821. end
  1822. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1823. ANIM = "Jump"
  1824. if ATTACK == false then
  1825. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1826. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1827. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1828. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1829. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1830. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1831. end
  1832. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1833. ANIM = "Fall"
  1834. if ATTACK == false then
  1835. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1836. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1837. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1838. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1839. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1840. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1841. end
  1842. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1843. ANIM = "Idle"
  1844. if ATTACK == false then
  1845. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1846. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1849. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1851. end
  1852. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1853. ANIM = "Walk"
  1854. if ATTACK == false then
  1855. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1856. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1857. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1858. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1859. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1860. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1861. end
  1862. end
  1863. unanchor()
  1864. Humanoid.MaxHealth = 1.0E298
  1865. Humanoid.Health = 1.0E298
  1866. if Rooted == false then
  1867. Disable_Jump = false
  1868. Humanoid.WalkSpeed = Speed
  1869. elseif Rooted == true then
  1870. Disable_Jump = true
  1871. Humanoid.WalkSpeed = 0
  1872. end
  1873. sick.Parent = Torso
  1874. sick:resume()
  1875. sick.Volume = 0.2
  1876. sick.Pitch = 1
  1877. sick.SoundId = "rbxassetid://2187563407"
  1878. sick.Name = "MAD"
  1879. end
  1880.  
  1881. --//=================================\\
  1882. --\\=================================//
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888. --//====================================================\\--
  1889. --|| END OF SCRIPT
  1890. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement