Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- plr = owner
- plrgui = plr.PlayerGui
- mouse = plr:GetMouse()
- char = plr.Character
- anim = char.Humanoid.Animator
- tors = char.Torso
- root = char.HumanoidRootPart
- rootj = root.RootJoint
- rootjnor = rootj.C0
- attack = false
- size = 1
- Debris = game:GetService("Debris")
- pose = "Idle"
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- VT = Vector3.new
- CF = CFrame.new
- Rad = math.rad
- ray = Ray.new
- sine = 0
- function spark(cf)
- local ball = Instance.new("Part",char)
- ball.Shape = "Ball"
- ball.Material = "Neon"
- ball.BrickColor = BrickColor.new("Cyan")
- ball.Size = Vector3.new(14, 14, 14)
- ball.Transparency = 0.5
- ball.CFrame = cf
- ball.Anchored = true
- ball.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 1,50 do
- Swait()
- ball.Size = ball.Size:Lerp(Vector3.new(0, 0, 0), 0.075)
- ball.Transparency = ball.Transparency + 0.025
- end
- ball:remove()
- end))
- end
- function spark2(cf)
- local ball = Instance.new("Part",char)
- ball.Shape = "Ball"
- ball.Material = "Neon"
- ball.BrickColor = BrickColor.new("Cyan")
- ball.Size = Vector3.new(0, 0, 0)
- ball.Transparency = 0.5
- ball.CFrame = cf
- ball.Anchored = true
- ball.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 1,50 do
- Swait()
- ball.Size = ball.Size:Lerp(Vector3.new(14, 14, 14), 0.075)
- ball.Transparency = ball.Transparency + 0.025
- end
- ball:remove()
- end))
- end
- function cb(cframe)
- local ah = Instance.new("Model",char)
- ah.Name = "1ExtraEffectComingRightUpSir!"
- local blast = Instance.new("Part",ah)
- blast.CanCollide = false
- blast.Anchored = true
- blast.CFrame = cframe
- blast.Size = Vector3.new(1, 1, 3)
- blast.BrickColor = BrickColor.random()
- blast.Material = "SmoothPlastic"
- local sphere = Instance.new("SpecialMesh",blast)
- sphere.MeshType = "Sphere"
- blast.CFrame = blast.CFrame * CFrame.new(0, -0.75, 0)
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- blast.Size = blast.Size:Lerp(Vector3.new(0.5, 0.5, 3), 0.15)
- blast.CanCollide = false
- blast.Anchored = true
- blast.Transparency = blast.Transparency + 0.025
- blast.CFrame = blast.CFrame * CFrame.new(0, -0.1, 0)
- end
- ah:remove()
- end))
- end
- raycast = function(pos, direct, range, decendants)
- return workspace:FindPartOnRay(ray(pos, direct.unit * range), decendants)
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- physics = true
- function thunder(pos)
- local last = nil
- for i = 1,15 do
- if last == nil then
- local blast = Instance.new("Part",char)
- blast.CanCollide = false
- blast.Anchored = true
- blast.Position = pos
- blast.CFrame = blast.CFrame * CFrame.Angles(math.rad(math.random(-7, 7)),math.rad(math.random(-8, 8)),math.rad(math.random(-7, 7)))
- blast.CFrame = blast.CFrame * CFrame.new(0, -2.5, 0)
- blast.Size = Vector3.new(1.5, 5, 1)
- blast.BrickColor = BrickColor.new("New Yeller")
- blast.Material = "Neon"
- NewSound(tors, 1776706665, 1, 5, false)
- blast.Touched:connect(function(hit)
- if physics == true and hit.Parent ~= char then
- hit.Anchored = false
- hit.CanCollide = true
- hit:BreakJoints()
- end
- end)
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- blast.Size = blast.Size:Lerp(Vector3.new(0.5, 5, 0.5), 0.15)
- blast.CanCollide = false
- blast.Anchored = true
- blast.Transparency = blast.Transparency + 0.025
- end
- blast:remove()
- end))
- last = blast
- else
- local blast = Instance.new("Part",char)
- blast.CanCollide = false
- blast.Anchored = true
- blast.CFrame = last.CFrame * CFrame.new() * CFrame.Angles(math.rad(math.random(-7, 7)),math.rad(math.random(-8, 8)),math.rad(math.random(-7, 7)))
- blast.CFrame = blast.CFrame * CFrame.new(0, 5, 0)
- blast.Size = Vector3.new(1.5, 5, 1.5)
- blast.BrickColor = BrickColor.new("New Yeller")
- blast.Material = "Neon"
- coroutine.resume(coroutine.create(function()
- for i = 1,100 do
- Swait()
- blast.Size = blast.Size:Lerp(Vector3.new(0.5, 5, 0.5), 0.15)
- blast.CanCollide = false
- blast.Anchored = true
- blast.Transparency = blast.Transparency + 0.025
- end
- blast:remove()
- end))
- last = blast
- end
- end
- end
- AddSphere = function(p, material, size, transparency, collide, color, weldto, weldc0)
- local Sphere = Instance.new("Part",p)
- Sphere.Massless = true
- Sphere.Shape = "Ball"
- Sphere.Size = Vector3.new(size, size, size)
- Sphere.Material = material
- Sphere.Transparency = transparency
- Sphere.CanCollide = collide
- Sphere.Anchored = false
- Sphere.BrickColor = BrickColor.new(color)
- local Joint = ezweld(Sphere, Sphere, weldto, weldc0)
- return Sphere
- end
- function MeshType(parent, mtype)
- Instance.new("SpecialMesh",parent).MeshType = mtype
- end
- AddSphere2 = function(p, pos, material, size, transparency, collide, color, weldto, weldc0)
- local Sphere = Instance.new("Part",p)
- Sphere.Massless = true
- Sphere.Size = size
- Sphere.Position = pos
- Sphere.Material = material
- Sphere.Transparency = transparency
- Sphere.CanCollide = collide
- Sphere.Anchored = false
- Sphere.BrickColor = BrickColor.new(color)
- MeshType(Sphere, "Sphere")
- local Joint = ezweld(Sphere, Sphere, weldto, weldc0)
- return Sphere
- end
- SphereEffect = function(p, material, size, transparency, endsize, speed, endtrans, color, pos)
- local Sphere = Instance.new("Part",p)
- Sphere.Shape = "Ball"
- Sphere.Size = Vector3.new(size, size, size)
- Sphere.Material = material
- Sphere.Transparency = transparency
- Sphere.CanCollide = false
- Sphere.Position = pos
- Sphere.Anchored = true
- Sphere.BrickColor = BrickColor.new(color)
- for i = 1,8 do
- Swait()
- Sphere.Size = Sphere.Size + Vector3.new(speed, speed, speed)
- Sphere.Transparency = Sphere.Transparency + speed
- end
- Sphere:Destroy()
- end
- AddDecal = function(p, texture, trans, face)
- local Image = Instance.new("Decal",p)
- Image.Texture = "rbxassetid://" ..texture
- Image.Transparency = trans
- Image.Face = face
- return Image
- end
- function EditDecal(image, texture)
- local Image = image
- Image.Texture = "rbxassetid://" ..texture
- end
- EditSize = function(p, x, y, z)
- local Part = p
- if Part then
- Part.Parent = Part.Parent
- Part.Size = Vector3.new(x, y, z)
- end
- end
- AddSize = function(p, x, y, z)
- local Part = p
- if Part then
- Part.Parent = Part.Parent
- Part.Size = Part.Size + Vector3.new(x, y, z)
- end
- end
- Rotate = function(p, cf)
- local Part = p
- if Part then
- Part.Parent = Part.Parent
- Part.Orientation = cf
- end
- end
- Model = function(p, name)
- local NewModel = Instance.new("Model",p)
- NewModel.Name = name
- return NewModel
- end
- Invis = function(p)
- for _,v in pairs (p:children()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Transparency = 1
- v.Name = v.Name
- v.Size = v.Size
- if v.Name == "Head" then
- for _,v in pairs (v:children()) do
- if v:IsA("Decal") then
- v.Name = "owned"
- v:Destroy()
- end
- end
- end
- end
- if v:IsA("Hat") or v:IsA("Accessory") then
- local Handle = v:FindFirstChild("Handle") -- Keeping the hat but hiding it from view
- if Handle then
- Handle.Name = "NotHandle"
- Handle.Size = Vector3.new(0.0001, 0.0001, 0.0001)
- Handle.Transparency = 1
- end
- end
- end
- end
- Invis(char)
- local IntroModel = Model(char, "IntroModel")
- local IBall = AddSphere(IntroModel, "Neon", 15, 0.8, false, "White", tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0))
- local CharacterModel = Model(nil, "CharacterModel")
- local TorsoM = Model(CharacterModel, "TorsoModel")
- local Eyeball = AddSphere(TorsoM, "Granite", 13, 0.3, false, "Navy blue", tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0))
- local Eyeball2 = AddSphere(TorsoM, "SmoothPlastic", 4, 0, false, "Really black", Eyeball, CFrame.new(0, 0, 13 / 2.25))
- local eyb = Eyeball2.Weld
- local eybnor = eyb.C0
- local Pupil = AddSphere2(TorsoM, tors.Position, "SmoothPlastic", Vector3.new(1, 3, 3), 0, false, "Really red", Eyeball2, CFrame.new(0, 0, 4 / 5.5))
- local plw = Pupil.Weld
- local plnor = plw.C0
- local Particle = Instance.new("ParticleEmitter",Eyeball)
- Particle.Rate = 20
- Particle.Size = NumberSequence.new(2, 2)
- --Particle.Texture = ""
- Particle.Speed = NumberRange.new(7)
- Particle.RotSpeed = NumberRange.new(10)
- Particle.Enabled = false
- Particle.Acceleration = Vector3.new(0, 0, 0)
- Particle.EmissionDirection = "Back"
- Particle.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Eyeball.Color),ColorSequenceKeypoint.new(1,Eyeball.Color)})
- Particle.Texture = "http://www.roblox.com/asset/?id=3111971242"
- local MainTheme = NewSound(root, 3574221273, 1, 4, true)
- local intro = true
- plr.Chatted:connect(function(msg)
- if msg == "!skip" then
- intro = false
- end
- end)
- for i = 1,16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 do
- if intro == true then
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 0 * Cos(sine / 12)), 0.15)
- IBall.Transparency = IBall.Transparency - 0.00125 / 20
- end
- end
- for i = 1,125 do
- if intro == true then
- Swait()
- cb(IBall.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))))
- end
- end
- IntroModel.Parent = nil
- CharacterModel.Parent = char
- current = "none"
- skybox = Instance.new("Part",char)
- skybox.Size = Vector3.new(0,0,0)
- skybox.Anchored = true
- skybox.CanCollide = true
- skyboxmesh = Instance.new("SpecialMesh",skybox)
- skyboxmesh.MeshId = "http://www.roblox.com/asset/?id=1527559"
- skyboxmesh.TextureId = "http://www.roblox.com/asset/?id=1529455"
- skyboxmesh.VertexColor = Vector3.new(0.568627, 0.207843, 0.6)
- skyboxmesh.Scale = Vector3.new(-3000,-1000,-3000)
- function lightning()
- attack = true
- for i = 1,12 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 17 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- end
- spark(Eyeball.CFrame)
- for i = 1,10 do
- Swait()
- for i,v in pairs (TorsoM:children()) do
- if v:IsA("Part") then
- v.Transparency = v.Transparency + 0.35
- end
- end
- end
- for i = 1,8 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 50 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.6)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- end
- thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
- wait(.5)
- thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
- wait(.5)
- thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
- spark2(Eyeball.CFrame)
- for i = 1,10 do
- Swait()
- for i,v in pairs (TorsoM:children()) do
- if v:IsA("Part") then
- v.Transparency = v.Transparency - 0.35
- end
- end
- end
- attack = false
- end
- function redfade(model)
- for i,v in pairs (model:children()) do
- if v:IsA("Part") and model ~= char or v:IsA("MeshPart") and model ~= char then
- coroutine.resume(coroutine.create(function()
- v.Transparency = 1
- v.Anchored = true
- local clone = v:Clone()
- clone.Parent = workspace
- clone.Position = v.Position
- clone.CanCollide = false
- clone.Locked = true
- clone.Anchored = true
- clone.Transparency = 0
- clone.Material = "Neon"
- clone.BrickColor = BrickColor.new("Persimmon")
- Debris:AddItem(clone, 2)
- for i = 1,150 do
- Swait()
- clone.Transparency = clone.Transparency + 0.01
- end
- clone:remove()
- v:remove()
- end))
- end
- end
- end
- function pillar()
- attack = true
- for i = 1,25 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- end
- local pillar = Instance.new("Part",script)
- pillar.Shape = "Cylinder"
- pillar.Size = Vector3.new(2.5, 60, 60)
- pillar.CanCollide = false
- pillar.Orientation = Vector3.new(0, 0, -90)
- pillar.BrickColor = BrickColor.new("Persimmon")
- pillar.Material = "Neon"
- pillar.Anchored = true
- for i = 1,12 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(50), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- pillar.Position = mouse.Hit.p
- end
- pillar.Touched:connect(function(hit)
- local duddy = hit.Parent
- if duddy ~= char and duddy:FindFirstChild("Torso") or duddy ~= char and duddy:FindFirstChild("UpperTorso") then
- if duddy ~= TorsoM then
- redfade(duddy)
- end
- end
- end)
- NewSound(pillar, 1295409698, 1, 10, false)
- Eyeball2.Material = "Neon"
- Eyeball2.BrickColor = BrickColor.new("Really blue")
- Pupil.Material = "Neon"
- for i = 1,50 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- pillar.Size = pillar.Size:Lerp(Vector3.new(150, 60, 60), 0.15)
- end
- for i = 1,12 do
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- pillar.Size = pillar.Size:Lerp(Vector3.new(2.5, 60, 60), 0.15)
- end
- Eyeball2.Material = "SmoothPlastic"
- Eyeball2.BrickColor = BrickColor.new("Really black")
- Pupil.Material = "SmoothPlastic"
- pillar:remove()
- attack = false
- end
- function dash()
- attack = true
- local bv = Instance.new("BodyVelocity",char)
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, 0), 0.125)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- bv.MaxForce = Vector3.new(9999, 9999, 9999)
- bv.Velocity = root.CFrame.lookVector * 75
- until attack == false
- end))
- coroutine.resume(coroutine.create(function()
- local ring = Instance.new("Part",char)
- ring.Anchored = true
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Really blue")
- ring.CanCollide = false
- ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
- ring.Size = Vector3.new(0.1, 0.1, 0.1)
- ring.Transparency = 0.2
- local mesh = Instance.new("SpecialMesh",ring)
- mesh.MeshId = "rbxassetid://750104831"
- mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
- for i = 1,25 do
- Swait()
- ring.Transparency = ring.Transparency + 0.045
- mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
- end
- ring:remove()
- local ring = Instance.new("Part",char)
- ring.Anchored = true
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Really blue")
- ring.CanCollide = false
- ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
- ring.Size = Vector3.new(0.1, 0.1, 0.1)
- ring.Transparency = 0.2
- local mesh = Instance.new("SpecialMesh",ring)
- mesh.MeshId = "rbxassetid://750104831"
- mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
- for i = 1,25 do
- Swait()
- ring.Transparency = ring.Transparency + 0.015
- mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
- end
- ring:remove()
- local ring = Instance.new("Part",char)
- ring.Anchored = true
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Really blue")
- ring.CanCollide = false
- ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
- ring.Size = Vector3.new(0.1, 0.1, 0.1)
- ring.Transparency = 0.2
- local mesh = Instance.new("SpecialMesh",ring)
- mesh.MeshId = "rbxassetid://750104831"
- mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
- for i = 1,25 do
- Swait()
- ring.Transparency = ring.Transparency + 0.015
- mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
- end
- ring:remove()
- attack = false
- bv:remove()
- end))
- end
- local gv = Instance.new("StringValue",char)
- local pv = Instance.new("StringValue",char)
- function grab()
- if current == "none" then
- local target = mouse.Target
- if target then
- local dud = target.Parent
- gv.Parent = dud
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
- if torso then
- attack = true
- current = "grabbed"
- for i = 1,20 do
- Swait()
- torso.CFrame = Eyeball.CFrame * CFrame.new(0, 2, 5) * CFrame.Angles(0, Rad(180), Rad(45))
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-30), 0, 0), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0.25 + 0.25 * Cos(sine / 12), 0), 0.15)
- end
- local thing = coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- torso.Anchored = true
- torso.CFrame = Eyeball.CFrame * CFrame.new(0, 3, -14)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-30), 0, 0), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor, 0.15)
- until current == "none" and attack == false
- attack = false
- torso.Anchored = false
- end))
- end
- end
- end
- end
- function launch()
- if current == "grabbed" then
- current = "none"
- attack = true
- local dud = gv.Parent
- if dud then
- gv.Parent = char
- pv.Value = ""
- gv.Value = ""
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
- local hum = dud:FindFirstChildOfClass("Humanoid")
- if torso then
- attack = false
- torso.Anchored = false
- torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p)
- local bv = Instance.new("BodyVelocity",torso)
- local a = math.huge
- bv.MaxForce = Vector3.new(a, a, a)
- bv.Velocity = torso.CFrame.lookVector * 200
- NewSound(torso, 278445103, 1, 5, false)
- Debris:AddItem(bv, 0.1)
- end
- if hum then
- hum.Sit = true
- end
- end
- end
- end
- function drop()
- if current == "grabbed" then
- current = "none"
- attack = false
- local dud = gv.Parent
- if dud then
- gv.Parent = char
- pv.Value = ""
- gv.Value = ""
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
- local hum = dud:FindFirstChildOfClass("Humanoid")
- if torso then
- attack = false
- torso.Anchored = false
- end
- end
- end
- end
- function rip()
- if current == "grabbed" then
- current = "none"
- attack = true
- local dud = gv.Parent
- if dud then
- gv.Parent = char
- pv.Value = ""
- gv.Value = ""
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
- for i,v in pairs (dud:children()) do
- if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("WedgePart") or v:IsA("TrussPart") then
- Swait(25)
- if v.Name ~= "Head" then
- v:BreakJoints()
- end
- torso.Anchored = true
- torso.CFrame = Eyeball.CFrame * CFrame.new(0, 3, -14)
- end
- end
- attack = false
- end
- end
- end
- function slam()
- if current == "grabbed" then
- current = "none"
- attack = true
- local dud = gv.Parent
- if dud then
- gv.Parent = char
- pv.Value = ""
- gv.Value = ""
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
- if torso then
- coroutine.resume(coroutine.create(function()
- local tehweld = ezweld(torso, root, torso, CFrame.new(0, 0, 3) * CFrame.Angles(Rad(90), 0, 0))
- repeat
- Swait()
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(30), 0, 0), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor, 0.15)
- until attack == false or current == "grabbed"
- attack = false
- current = "none"
- tehweld:remove()
- end))
- for i = 1,30 do
- Swait()
- --torso.CFrame = root.CFrame * CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, Rad(90))
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(30), 0, 0), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor, 0.15)
- end
- attack = false
- end
- end
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and attack == false then
- lightning()
- end
- if key == "m" and attack == false then
- if current == "none" then
- grab()
- elseif current == "grabbed" then
- drop()
- end
- end
- if key == "b" and attack == true then
- launch()
- end
- if key == "n" and attack == true then
- slam()
- end
- if key == "v" and attack == true then
- rip()
- end
- if key == "t" and attack == false then
- dash()
- end
- if key == "r" and attack == false then
- pillar()
- end
- end)
- while true do
- Swait()
- skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,Rad(0.5),0)
- sine = sine + 1
- anim.Parent = nil
- torsvel = (root.Velocity * VT(1, 0, 1)).magnitude
- torsverticalvel = root.Velocity.y
- hitfloor = raycast(root.Position, (CF(root.Position, root.Position + VT(0, -1, 0))).lookVector, 4*size, char)
- if torsvel < 1 and hitfloor ~= nil then
- pose = "Idle"
- Particle.Enabled = false
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0.25 + 0.25 * Cos(sine / 12), 0), 0.15)
- end
- elseif torsvel > 1 and hitfloor ~= nil then
- pose = "Walk"
- Particle.Enabled = true
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)), 0.15)
- clerp(eyb, eybnor, 0.15)
- clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
- end
- elseif torsverticalvel > 1 and hitfloor == nil then
- pose = "Jump"
- Particle.Enabled = false
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(-0.5, 0, 0), 0.15)
- end
- elseif torsverticalvel < 1 and hitfloor == nil then
- pose = "Fall"
- Particle.Enabled = false
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(-0.5, 0, 0), 0.15)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement