daily pastebin goal
0%
SHARE
TWEET

Untitled

wamandnj Mar 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  951. function ParticleEmitter(Table)
  952.     local PRTCL = Particle:Clone()
  953.     local Speed = Table.Speed or 5
  954.     local Drag = Table.Drag or 0
  955.     local Size1 = Table.Size1 or 1
  956.     local Size2 = Table.Size2 or 5
  957.     local Lifetime1 = Table.Lifetime1 or 1
  958.     local Lifetime2 = Table.Lifetime2 or 1.5
  959.     local Parent = Table.Parent or Torso
  960.     local Emit = Table.Emit or 100
  961.     local Offset = Table.Offset or 360
  962.     local Acel = Table.Acel or VT(0,0,0)
  963.     local Enabled = Table.Enabled or false
  964.     PRTCL.Parent = Parent
  965.     PRTCL.Size = NumberSequence.new(Size1,Size2)
  966.     PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  967.     PRTCL.Speed = NumberRange.new(Speed)
  968.     PRTCL.VelocitySpread = Offset
  969.     PRTCL.Drag = Drag
  970.     PRTCL.Acceleration = Acel
  971.     if Enabled == false then
  972.         PRTCL:Emit(Emit)
  973.         Debris:AddItem(PRTCL,Lifetime2)
  974.     else
  975.         PRTCL.Enabled = true
  976.     end
  977.     return PRTCL
  978. end
  979.  
  980. 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)})
  981. --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)})
  982.  
  983. for _, c in pairs(Weapon:GetDescendants()) do
  984.     if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  985.         c.Material = "Glass"
  986.         c.Color = C3(0,0,0)
  987.     elseif c.ClassName == "Part" and c.Name == "Eye" then
  988.         c.Color = C3(1,0,0)
  989.         c.Material = "Neon"
  990.     end
  991. end
  992.  
  993. Weapon.Parent = Character
  994. for _, c in pairs(Weapon:GetChildren()) do
  995.     if c.ClassName == "Part" then
  996.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  997.     end
  998. end
  999.  
  1000. local SKILLTEXTCOLOR = C3(1,0,0)
  1001. local SKILLFONT = "Antique"
  1002. local SKILLTEXTSIZE = 7
  1003.  
  1004. Humanoid.Died:connect(function()
  1005.     ATTACK = true
  1006. end)
  1007.  
  1008. 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")
  1009. --[[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")
  1010. 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")
  1011. 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")
  1012. 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")
  1013. ]]
  1014. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] ", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1015. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1016. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1017. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1018. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1019. ]]
  1020. function printbye(Name)
  1021.     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, "}
  1022.     warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1023. end
  1024.  
  1025. workspace.ChildAdded:connect(function(instance)
  1026.     for BANISH = 1, #TOBANISH do
  1027.         if TOBANISH[BANISH] ~= nil then
  1028.             if instance.Name == TOBANISH[BANISH] then
  1029.                 coroutine.resume(coroutine.create(function()
  1030.                     printbye(instance.Name)
  1031.                     instance:ClearAllChildren()
  1032.                     Debris:AddItem(instance,0.0005)
  1033.                 end))
  1034.             end
  1035.         end
  1036.     end
  1037. end)
  1038.  
  1039. --//=================================\\
  1040. --||            DAMAGING
  1041. --\\=================================//
  1042.  
  1043.  
  1044. function BulletDetection(FROM,TO,BRUTAL)
  1045.     local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1046.     coroutine.resume(coroutine.create(function()
  1047.         if AIMHIT ~= nil then
  1048.             if AIMHIT.Parent ~= Character then
  1049.                 if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1050.                     if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1051.                         if BRUTAL == true then
  1052.                             Kill(AIMHIT.Parent)
  1053.                         else
  1054.                             getbloody(AIMHIT,15)
  1055.                             AIMHIT.Parent:BreakJoints()
  1056.                             if AIMHIT.Name == "Head" then
  1057.                                 AIMHIT.Name = "HEADSHOT"
  1058.                                 AIMHIT:remove()
  1059.                             end
  1060.                         end
  1061.                     else
  1062.                         if BRUTAL == true then
  1063.                             Kill(AIMHIT.Parent.Parent)
  1064.                         else
  1065.                             AIMHIT.Parent.Parent:BreakJoints()
  1066.                         end
  1067.                     end
  1068.                 end
  1069.             end
  1070.         end
  1071.     end))
  1072.     SpawnTrail(FROM,AIMPOS)
  1073.     return AIMHIT,AIMPOS,NORMAL
  1074. end
  1075.  
  1076. function Banish(Foe)
  1077.     if Foe then
  1078.         coroutine.resume(coroutine.create(function()
  1079.             --if game.Players:FindFirstChild(Foe.Name) then
  1080.                 table.insert(TOBANISH,Foe.Name)
  1081.                 printbye(Foe.Name)
  1082.             --end
  1083.             Foe.Archivable = true
  1084.             local CLONE = Foe:Clone()
  1085.             Foe:Destroy()
  1086.             CLONE.Parent = Effects
  1087.             CLONE:BreakJoints()
  1088.             local MATERIALS = {"Glass","Neon"}
  1089.             for _, c in pairs(CLONE:GetDescendants()) do
  1090.                 if c:IsA("BasePart") then
  1091.                     if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1092.                         CreateSound(340722848, c, 10, 1, false)
  1093.                     end
  1094.                     c.Anchored = true
  1095.                     c.Transparency = c.Transparency + 0.2
  1096.                     c.Material = MATERIALS[MRANDOM(1,2)]
  1097.                     c.Color = C3(0,1,0)
  1098.                     if c.ClassName == "MeshPart" then
  1099.                         c.TextureID = ""
  1100.                     end
  1101.                     if c:FindFirstChildOfClass("SpecialMesh") then
  1102.                         c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1103.                     end
  1104.                     if c:FindFirstChildOfClass("Decal") then
  1105.                         c:FindFirstChildOfClass("Decal"):remove()
  1106.                     end
  1107.                     c.Name = "Banished"
  1108.                     c.CanCollide = false
  1109.                 else
  1110.                     c:remove()
  1111.                 end
  1112.             end
  1113.             local A = false
  1114.             for i = 1, 35 do
  1115.                 if A == false then
  1116.                     A = true
  1117.                 elseif A == true then
  1118.                     A = false
  1119.                 end
  1120.                 for _, c in pairs(CLONE:GetDescendants()) do
  1121.                     if c:IsA("BasePart") then
  1122.                         c.Anchored = true
  1123.                         c.Material = MATERIALS[MRANDOM(1,2)]
  1124.                         c.Transparency = c.Transparency + 0.8/35
  1125.                         if A == false then
  1126.                             c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1127.                         elseif A == true then
  1128.                             c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)                       
  1129.                         end
  1130.                     end
  1131.                 end
  1132.                 Swait()
  1133.             end
  1134.             CLONE:remove()
  1135.         end))
  1136.     end
  1137. end
  1138.  
  1139. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1140.     local CHILDREN = workspace:GetDescendants()
  1141.     for index, CHILD in pairs(CHILDREN) do
  1142.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1143.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1144.             if HUM then
  1145.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1146.                 if TORSO then
  1147.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1148.                         if ISBANISH == true then
  1149.                             Banish(CHILD)
  1150.                         else
  1151.                             if ISBANISH == "Gravity" then
  1152.                                 HUM.PlatformStand = true
  1153.                                 if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1154.                                     local grav = Instance.new("BodyPosition",TORSO)
  1155.                                     grav.D = 15
  1156.                                     grav.P = 20000
  1157.                                     grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1158.                                     grav.position = TORSO.Position
  1159.                                     grav.Name = "V3BanishForce"..Player.Name
  1160.                                 else
  1161.                                     TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1162.                                     TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1163.                                 end
  1164.                             else
  1165.                                 HUM.PlatformStand = false
  1166.                             end
  1167.                         end
  1168.                     elseif ISBANISH == "Gravity" then
  1169.                         if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1170.                             TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1171.                             HUM.PlatformStand = false
  1172.                         end
  1173.                     end
  1174.                 end
  1175.             end
  1176.         end
  1177.     end
  1178. end
  1179.  
  1180. function Kill(Char)
  1181.     local NewCharacter = IT("Model",Effects)
  1182.     NewCharacter.Name = "Ow im ded ;-;"
  1183.     for _, c in pairs(Char:GetDescendants()) do
  1184.         if c:IsA("BasePart") and c.Transparency == 0 then
  1185.             if c.Parent == Char then
  1186.                 getbloody(c,5)
  1187.             end
  1188.             c:BreakJoints()
  1189.             c.Material = "Glass"
  1190.             c.Color = C3(0.5,0,0)
  1191.             c.CanCollide = true
  1192.             c.Transparency = 0.3
  1193.             if c:FindFirstChildOfClass("SpecialMesh") then
  1194.                 c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1195.             end
  1196.             if c.Name == "Head" then
  1197.                 c:ClearAllChildren()
  1198.                 c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1199.             end
  1200.             if c.ClassName == "MeshPart" then
  1201.                 c.TextureID = ""
  1202.             end
  1203.             if c:FindFirstChildOfClass("BodyPosition") then
  1204.                 c:FindFirstChildOfClass("BodyPosition"):remove()
  1205.             end
  1206.             if c:FindFirstChildOfClass("ParticleEmitter") then
  1207.                 c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1208.             end
  1209.             c.Parent = NewCharacter
  1210.             c.Name = "DeadPart"
  1211.             c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1212.             c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1213.         end
  1214.     end
  1215.     Char:remove()
  1216.     Debris:AddItem(NewCharacter,5)
  1217. end
  1218.  
  1219. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1220.     local CHILDREN = workspace:GetDescendants()
  1221.     for index, CHILD in pairs(CHILDREN) do
  1222.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1223.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1224.             if HUM then
  1225.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1226.                 if TORSO then
  1227.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1228.                         if BRUTAL == true then
  1229.                             Kill(CHILD)
  1230.                         else
  1231.                             CHILD:BreakJoints()
  1232.                         end
  1233.                     end
  1234.                 end
  1235.             end
  1236.         end
  1237.     end
  1238. end
  1239.  
  1240. function BulletDetection(FROM,TO,BRUTAL)
  1241.     local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1242.     coroutine.resume(coroutine.create(function()
  1243.         if AIMHIT ~= nil then
  1244.             if AIMHIT.Parent ~= Character then
  1245.                 if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1246.                     if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1247.                         if BRUTAL == true then
  1248.                             Kill(AIMHIT.Parent)
  1249.                         else
  1250.                             getbloody(AIMHIT,15)
  1251.                             AIMHIT.Parent:BreakJoints()
  1252.                             if AIMHIT.Name == "Head" then
  1253.                                 AIMHIT.Name = "HEADSHOT"
  1254.                                 AIMHIT:remove()
  1255.                             end
  1256.                         end
  1257.                     else
  1258.                         if BRUTAL == true then
  1259.                             Kill(AIMHIT.Parent.Parent)
  1260.                         else
  1261.                             AIMHIT.Parent.Parent:BreakJoints()
  1262.                         end
  1263.                     end
  1264.                 end
  1265.             end
  1266.         end
  1267.     end))
  1268.     SpawnTrail(FROM,AIMPOS)
  1269.     return AIMHIT,AIMPOS,NORMAL
  1270. end
  1271.  
  1272. function Banish(Foe)
  1273.     if Foe then
  1274.         coroutine.resume(coroutine.create(function()
  1275.             --if game.Players:FindFirstChild(Foe.Name) then
  1276.                 table.insert(TOBANISH,Foe.Name)
  1277.                 printbye(Foe.Name)
  1278.             --end
  1279.             Foe.Archivable = true
  1280.             local CLONE = Foe:Clone()
  1281.             Foe:Destroy()
  1282.             CLONE.Parent = Effects
  1283.             CLONE:BreakJoints()
  1284.             local MATERIALS = {"Glass","Neon"}
  1285.             for _, c in pairs(CLONE:GetDescendants()) do
  1286.                 if c:IsA("BasePart") then
  1287.                     if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1288.                         CreateSound(340722848, c, 10, 1, false)
  1289.                     end
  1290.                     c.Anchored = true
  1291.                     c.Transparency = c.Transparency + 0.2
  1292.                     c.Material = MATERIALS[MRANDOM(1,2)]
  1293.                     c.Color = C3(1,0,0)
  1294.                     if c.ClassName == "MeshPart" then
  1295.                         c.TextureID = ""
  1296.                     end
  1297.                     if c:FindFirstChildOfClass("SpecialMesh") then
  1298.                         c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1299.                     end
  1300.                     if c:FindFirstChildOfClass("Decal") then
  1301.                         c:FindFirstChildOfClass("Decal"):remove()
  1302.                     end
  1303.                     c.Name = "Banished"
  1304.                     c.CanCollide = false
  1305.                 else
  1306.                     c:remove()
  1307.                 end
  1308.             end
  1309.             local A = false
  1310.             for i = 1, 35 do
  1311.                 if A == false then
  1312.                     A = true
  1313.                 elseif A == true then
  1314.                     A = false
  1315.                 end
  1316.                 for _, c in pairs(CLONE:GetDescendants()) do
  1317.                     if c:IsA("BasePart") then
  1318.                         c.Anchored = true
  1319.                         c.Material = MATERIALS[MRANDOM(1,2)]
  1320.                         c.Transparency = c.Transparency + 0.8/35
  1321.                         if A == false then
  1322.                             c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1323.                         elseif A == true then
  1324.                             c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)                       
  1325.                         end
  1326.                     end
  1327.                 end
  1328.                 Swait()
  1329.             end
  1330.             CLONE:remove()
  1331.         end))
  1332.     end
  1333. end
  1334.  
  1335. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1336.     local CHILDREN = workspace:GetDescendants()
  1337.     for index, CHILD in pairs(CHILDREN) do
  1338.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1339.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1340.             if HUM then
  1341.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1342.                 if TORSO then
  1343.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1344.                         if ISBANISH == true then
  1345.                             Banish(CHILD)
  1346.                         else
  1347.                             if ISBANISH == "Gravity" then
  1348.                                 HUM.PlatformStand = true
  1349.                                 if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1350.                                     local grav = Instance.new("BodyPosition",TORSO)
  1351.                                     grav.D = 15
  1352.                                     grav.P = 20000
  1353.                                     grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1354.                                     grav.position = TORSO.Position
  1355.                                     grav.Name = "V3BanishForce"..Player.Name
  1356.                                 else
  1357.                                     TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1358.                                     TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1359.                                 end
  1360.                             else
  1361.                                 HUM.PlatformStand = false
  1362.                             end
  1363.                         end
  1364.                     elseif ISBANISH == "Gravity" then
  1365.                         if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1366.                             TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1367.                             HUM.PlatformStand = false
  1368.                         end
  1369.                     end
  1370.                 end
  1371.             end
  1372.         end
  1373.     end
  1374. end
  1375.  
  1376. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1377.     local CHILDREN = workspace:GetDescendants()
  1378.     for index, CHILD in pairs(CHILDREN) do
  1379.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1380.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1381.             if HUM then
  1382.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1383.                 if TORSO then
  1384.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1385.                         if BRUTAL == true then
  1386.                             Kill(CHILD)
  1387.                         else
  1388.                             CHILD:BreakJoints()
  1389.                         end
  1390.                     end
  1391.                 end
  1392.             end
  1393.         end
  1394.     end
  1395. end
  1396.  
  1397. function Kill(Char)
  1398.     local NewCharacter = IT("Model",Effects)
  1399.     NewCharacter.Name = "Ow im ded ;-;"
  1400.     for _, c in pairs(Char:GetDescendants()) do
  1401.         if c:IsA("BasePart") and c.Transparency == 0 then
  1402.             if c.Parent == Char then
  1403.                 getbloody(c,5)
  1404.             end
  1405.             c:BreakJoints()
  1406.             c.Material = "Glass"
  1407.             c.Color = C3(1,0,0)
  1408.             c.CanCollide = true
  1409.             c.Transparency = 0.3
  1410.             if c:FindFirstChildOfClass("SpecialMesh") then
  1411.                 c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1412.             end
  1413.             if c.Name == "Head" then
  1414.                 c:ClearAllChildren()
  1415.                 c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1416.             end
  1417.             if c.ClassName == "MeshPart" then
  1418.                 c.TextureID = ""
  1419.             end
  1420.             if c:FindFirstChildOfClass("BodyPosition") then
  1421.                 c:FindFirstChildOfClass("BodyPosition"):remove()
  1422.             end
  1423.             if c:FindFirstChildOfClass("ParticleEmitter") then
  1424.                 c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1425.             end
  1426.             c.Parent = NewCharacter
  1427.             c.Name = "DeadPart"
  1428.             c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1429.             c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1430.         end
  1431.     end
  1432.     Char:remove()
  1433.     Debris:AddItem(NewCharacter,5)
  1434. end
  1435.  
  1436. function ApplyClock(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1437.     local CHILDREN = workspace:GetDescendants()
  1438.     for index, CHILD in pairs(CHILDREN) do
  1439.         if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1440.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1441.             if HUM then
  1442.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1443.                 if TORSO then
  1444.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1445.                         if INSTAKILL == true then
  1446.                             CHILD:BreakJoints()
  1447.                         else
  1448.                             local DMG = MRANDOM(MINDMG,MAXDMG)
  1449.                             ApplyDamage(HUM,DMG,TORSO)
  1450.                         end
  1451.                         if FLING > 0 then
  1452.                             for _, c in pairs(CHILD:GetChildren()) do
  1453.                                 if c:IsA("BasePart") then
  1454.                                     local bv = Instance.new("BodyVelocity")
  1455.                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1456.                                     bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1457.                                     bv.Parent = c
  1458.                                     Debris:AddItem(bv,0.05)
  1459.                                 end
  1460.                             end
  1461.                         end
  1462.                     end
  1463.                 end
  1464.             end
  1465.         end
  1466.     end
  1467. end
  1468.  
  1469. --//=================================\\
  1470. --||    ATTACK FUNCTIONS AND STUFF
  1471. --\\=================================//
  1472.  
  1473. function TakeOnMe()
  1474.     Speed = 16
  1475.     local MEME = CreateSound(1171341451, Effects, 2, 1, false)
  1476.     ATTACK = true
  1477.     Rooted = false
  1478.     local DANCE = true
  1479.     local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1480.         if NEWKEY == "p" then
  1481.             DANCE = false
  1482.         end
  1483.     end)
  1484.     PLAYSONG = false
  1485.     while true do
  1486.         for i = 1, 15 do
  1487.             Swait()
  1488.             MEME.Parent = Effects
  1489.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1490.                 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)
  1491.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1492.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1493.             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)
  1494.             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)
  1495.         end
  1496.         if DANCE == false then
  1497.             break
  1498.         end
  1499.         for i = 1, 15 do
  1500.             Swait()
  1501.             MEME.Parent = Effects
  1502.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1503.                 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)
  1504.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1505.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1506.             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)
  1507.             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)
  1508.         end
  1509.     end
  1510.     PLAYSONG = true
  1511.     KEY:Disconnect()
  1512.     MEME:remove()
  1513.     Speed = 25
  1514.     ATTACK = false
  1515.     Rooted = false
  1516. end
  1517.  
  1518. function Morning_Star()
  1519.     ATTACK = true
  1520.     Rooted = true
  1521.     for i=0, 1, 0.1 / Animation_Speed do
  1522.         Swait()
  1523.                     RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * 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(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1525.                     RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1526. 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)
  1527.                 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)
  1528.                 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)
  1529.     end
  1530.     coroutine.resume(coroutine.create(function()
  1531.         local POS = Mouse.Hit.p
  1532.         local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,2000,0))
  1533.         MakeForm(RAY,"Cyl")
  1534.         local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,0,0))
  1535.         MakeForm(SPHERE,"Ball")
  1536.         local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Maroon", "Strike", VT(0,0,0))
  1537.         MakeForm(SHIELD,"Ball")
  1538.         SHIELD.CFrame = CF(POS)
  1539.         RAY.CFrame = CF(POS)
  1540.         SPHERE.CFrame = CF(POS)
  1541.         CreateSound(440145570, SPHERE, 10, 0.8, false)
  1542.         CreateSound(415700134, SPHERE, 10, 0.8, false)
  1543.         for i = 1, 200 do
  1544.             Swait()
  1545.             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})
  1546.             RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1547.             SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1548.             SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1549.             ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1550.         end
  1551.         for i = 1, 45 do
  1552.             Swait()
  1553.             RAY.Transparency = RAY.Transparency + 1/45
  1554.             SPHERE.Transparency = RAY.Transparency
  1555.             SHIELD.Transparency = SPHERE.Transparency + 1/45
  1556.         end
  1557.         RAY:remove()
  1558.         SHIELD:remove()
  1559.         SPHERE:remove()
  1560.     end))
  1561.     for i=0, 1, 0.1 / Animation_Speed do
  1562.         Swait()
  1563.                     RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1564.                     Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1565.                     RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1566.                     LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1567.                 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)
  1568.                 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)
  1569.     end
  1570.     ATTACK = false
  1571.     Rooted = false
  1572. end
  1573.  
  1574. function Taunt()
  1575.     ATTACK = true
  1576.     local LAUGH = nil
  1577.     coroutine.resume(coroutine.create(function()
  1578.         repeat
  1579.             Swait()
  1580.             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)
  1581.             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)
  1582.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1583.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1584.                 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)
  1585.                 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)
  1586.         until LAUGH ~= nil
  1587.         repeat
  1588.             Swait()
  1589.             LAUGH.Parent = Head
  1590.         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)
  1591.         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)
  1592.             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)
  1593.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1594.                 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)
  1595.                 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)
  1596.         until LAUGH.Playing == false
  1597.     ATTACK = false
  1598.     end))
  1599.     wait(0.1)
  1600.     LAUGH = CreateSound(300208779, Head, 10, 1, false)
  1601.     sick:Resume()
  1602. end
  1603.  
  1604. function Shell()
  1605.     ATTACK = true
  1606.     Rooted = false
  1607.     local GYRO = IT("BodyGyro",RootPart)
  1608.     GYRO.D = 750
  1609.     GYRO.P = 20000
  1610.     GYRO.MaxTorque = VT(0,40000000,0)
  1611.     for i=0, 1, 0.1 / Animation_Speed do
  1612.         Swait()
  1613.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1614.                     RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1615.                     Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1616.                     RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1617. 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)
  1618.                 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)
  1619.                 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)
  1620.     end
  1621.     GYRO:remove()
  1622.     CreateSound(696483710, Gun, 5, 1, false)
  1623.     local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  1624.     SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  1625.     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})
  1626.     for i=0, 0.3, 0.1 / Animation_Speed do
  1627.         Swait()
  1628.                     RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1629.                     Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1630.                     RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1631. 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)
  1632.                 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)
  1633.                 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)
  1634.     end
  1635.     ATTACK = false
  1636.     Rooted = false
  1637. end
  1638.  
  1639. function Teleport()
  1640.     ATTACK = true
  1641.     Rooted = false
  1642.     for i=0, 0.5, 0.1 / Animation_Speed do
  1643.         Swait()
  1644.         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)
  1645.         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)
  1646.     end
  1647.     for e = 1, #BODY do
  1648.         if BODY[e] ~= nil then
  1649.             local STUFF = BODY[e]
  1650.             local PART = STUFF[1]
  1651.             if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1652.                 local PRT = PART:Clone()
  1653.                 PRT.Anchored = true
  1654.                 PRT.CanCollide = false
  1655.                 PRT.Material = "Neon"
  1656.                 PRT.Color = C3(1,1,1)
  1657.                 PRT.Name = "WarpEffect"
  1658.                 PRT.Parent = Effects
  1659.                 PRT.CFrame = PART.CFrame
  1660.                 PRT:BreakJoints()
  1661.                 if PRT:FindFirstChildOfClass("Sound") then
  1662.                     PRT:FindFirstChildOfClass("Sound"):remove()
  1663.                 end
  1664.                 if PRT:FindFirstChildOfClass("Decal") then
  1665.                     PRT:FindFirstChildOfClass("Decal"):remove()
  1666.                 end
  1667.                 coroutine.resume(coroutine.create(function()
  1668.                     for i = 1, 100 do
  1669.                         Swait()
  1670.                         PRT.Transparency = PRT.Transparency + 1/100
  1671.                     end
  1672.                     PRT:remove()
  1673.                 end))
  1674.             end
  1675.         end
  1676.     end
  1677.     CreateSound(217767125, Torso, 10, 1)
  1678.     local POS = RootPart.Orientation
  1679.     RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1680.     RootPart.Orientation = POS
  1681.     RootJoint.Parent = RootPart
  1682.     for i=0, 0.5, 0.1 / Animation_Speed do
  1683.         Swait()
  1684.         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)
  1685.         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)
  1686.     end
  1687.     for i=0, 0.1, 0.1 / Animation_Speed do
  1688.         Swait()
  1689.         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)
  1690.     end
  1691.     ATTACK = false
  1692.     Rooted = false
  1693. end
  1694.  
  1695. --//=================================\\
  1696. --||      ASSIGN THINGS TO KEYS
  1697. --\\=================================//
  1698.  
  1699. function MouseDown(Mouse)
  1700.     if ATTACK == false then
  1701.     end
  1702. end
  1703.  
  1704. function MouseUp(Mouse)
  1705. HOLD = false
  1706. end
  1707.  
  1708. function KeyDown(Key)
  1709.     KEYHOLD = true
  1710.     if Key == "z" and ATTACK == false then
  1711.         Morning_Star()
  1712.     end
  1713.  
  1714.     if Key == "t" and ATTACK == false then
  1715.                 Taunt()
  1716.     end
  1717.  
  1718.     if Key == "c" and ATTACK == false then
  1719.                 Shell()
  1720.     end
  1721.  
  1722.     if Key == "q" and ATTACK == false then
  1723.                 Teleport()
  1724.     end
  1725.  
  1726.     if Key == "p" and ATTACK == false then
  1727.                  TakeOnMe()
  1728.     end
  1729. end
  1730.  
  1731. function KeyUp(Key)
  1732.     KEYHOLD = false
  1733. end
  1734.  
  1735.     Mouse.Button1Down:connect(function(NEWKEY)
  1736.         MouseDown(NEWKEY)
  1737.     end)
  1738.     Mouse.Button1Up:connect(function(NEWKEY)
  1739.         MouseUp(NEWKEY)
  1740.     end)
  1741.     Mouse.KeyDown:connect(function(NEWKEY)
  1742.         KeyDown(NEWKEY)
  1743.     end)
  1744.     Mouse.KeyUp:connect(function(NEWKEY)
  1745.         KeyUp(NEWKEY)
  1746.     end)
  1747.  
  1748. --//=================================\\
  1749. --\\=================================//
  1750.  
  1751.  
  1752. function unanchor()
  1753.     if UNANCHOR == true then
  1754.         g = Character:GetChildren()
  1755.         for i = 1, #g do
  1756.             if g[i].ClassName == "Part" then
  1757.                 g[i].Anchored = false
  1758.             end
  1759.         end
  1760.     end
  1761. end
  1762.  
  1763.  
  1764. --//=================================\\
  1765. --||    WRAP THE WHOLE SCRIPT UP
  1766. --\\=================================//
  1767.  
  1768. Humanoid.Changed:connect(function(Jump)
  1769.     if Jump == "Jump" and (Disable_Jump == true) then
  1770.         Humanoid.Jump = false
  1771.     end
  1772. end)
  1773.  
  1774. local CONNECT = nil
  1775.  
  1776. while true do
  1777.     Swait()
  1778.     ANIMATE.Parent = nil
  1779.     if Character:FindFirstChildOfClass("Humanoid") == nil then
  1780.         Humanoid = IT("Humanoid",Character)
  1781.     end
  1782.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1783.         v:Stop();
  1784.     end
  1785.     SINE = SINE + CHANGE
  1786.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1787.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1788.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1789.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1790.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1791.         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)
  1792.         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)
  1793.         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)
  1794.         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)
  1795.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1796.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1797.         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)
  1798.         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)
  1799.         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)
  1800.     end
  1801.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1802.         ANIM = "Jump"
  1803.         if ATTACK == false then
  1804.             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)
  1805.             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)
  1806.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1807.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1808.             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)
  1809.             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)
  1810.         end
  1811.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1812.         ANIM = "Fall"
  1813.         if ATTACK == false then
  1814.             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)
  1815.             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)
  1816.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1817.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1818.             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)
  1819.             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)
  1820.         end
  1821.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1822.         ANIM = "Idle"
  1823.         if ATTACK == false then
  1824.             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)
  1825.             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)
  1826.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1827.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1828.                 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)
  1829.                 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)
  1830.         end
  1831.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1832.         ANIM = "Walk"
  1833.         if ATTACK == false then
  1834.             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)
  1835.             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)
  1836.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1837.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1838.             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)
  1839.             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)
  1840.         end
  1841.     end
  1842.     unanchor()
  1843.     Humanoid.MaxHealth = 1.0E298
  1844.     Humanoid.Health = 1.0E298
  1845.     if Rooted == false then
  1846.         Disable_Jump = false
  1847.         Humanoid.WalkSpeed = Speed
  1848.     elseif Rooted == true then
  1849.         Disable_Jump = true
  1850.         Humanoid.WalkSpeed = 0
  1851.     end
  1852.     sick.Parent = Torso
  1853.     sick:resume()
  1854.     sick.Volume = 0.2
  1855.     sick.Pitch = 1
  1856.     sick.SoundId = "rbxassetid://2187563407"
  1857.     sick.Name = "MAD"
  1858. end
  1859.  
  1860. --//=================================\\
  1861. --\\=================================//
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867. --//====================================================\\--
  1868. --||                     END OF SCRIPT
  1869. --\\====================================================//--
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top