Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1/60)
- print('Made by Slenercat5')-- yo m8 this is old but i figured why not re upload sense the old link broke
- print('Megumin')
- print('F for Hero Mode')
- print('Click to Use Explosion Magic')
- lerp = function(a, b, t)
- return a + (b - a) * t
- end
- Lerp = function(c1, c2, al)
- local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
- local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v + (com2[i] - v) * al
- end
- return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
- end
- sine=0
- change=0
- -- this is my secound script using character animations based on lerping
- -- if you found this i hope you enjoy :)
- -- attacks
- --click[hold] for punching
- --q for teleport(within 100 studs)
- --f for super jump(Temporarily down)
- wait(1 / 60)
- local jklmaoR=0
- Effects = { }
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- Humanoid.WalkSpeed = 30
- local Mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local Create = LoadLibrary("RbxUtility").Create
- local velocity = RootPart.Velocity.y
- Character.Animate.Disabled=false
- local sine = 0
- local change = 1
- local ms=Player:GetMouse()
- local DORARA=false
- local sforce=false
- local fcount=0
- Character.Humanoid.Health=10000000000000000000000000000000000000000000000000000000000000
- torso=Character:findFirstChild('Torso')
- root=Character:FindFirstChild('HumanoidRootPart')
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 35
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "SciFi",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- Sound=false
- function Damage(hit,Dag)
- if hit.Parent==Character or hit.Parent==workspace or hit.Parent.ClassName=='Asseccory' then
- return
- else
- wait(.1)
- local Hum=hit.Parent:FindFirstChild('Humanoid')
- wait(.1)
- if Hum~=nil then
- -- print(hit.Parent.name..' is getting hurt')
- if Nock==true then
- hit.Parent.Torso.Velocity=Character.HumanoidRootPart.CFrame.lookVector*100
- end
- ShowDamage(hit.Position,Dag)
- local DORA = CFuncs.Sound.Create("383548205", hit, 1, 1)
- Sound=true
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-Dag
- wait(.1)
- else
- return
- end
- end
- end
- CFuncs = {
- Part = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- Mesh = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- Weld = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- Sound = {
- Create = function(id, par, vol, pit)
- local Sound = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = "rbxassetid://" .. id,
- Parent = par or workspace,
- }
- Sound:play()
- return Sound
- end;
- };
- Decal = {
- Create = function(Color, Texture, Transparency, Name, Parent)
- local Decal = Create("Decal"){
- Color3 = Color,
- Texture = "rbxassetid://" .. Texture,
- Transparency = Transparency,
- Name = Name,
- Parent = Parent,
- }
- return Decal
- end;
- };
- BillboardGui = {
- Create = function(Parent, Image, Position, Size)
- local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
- BillPar.CFrame = CFrame.new(Position)
- local Bill = Create("BillboardGui"){
- Parent = BillPar,
- Adornee = BillPar,
- Size = UDim2.new(1, 0, 1, 0),
- SizeOffset = Vector2.new(Size, Size),
- }
- local d = Create("ImageLabel", Bill){
- Parent = Bill,
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Image = "rbxassetid://" .. Image,
- }
- return BillPar
- end
- };
- ParticleEmitter = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local Particle = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return Particle
- end;
- };
- CreateTemplate = {
- };
- }
- lp=Player
- for _,v in pairs(lp.Character:GetChildren()) do
- if v.className=='Shirt' or v.className=='Pants' or v.className=='Accessory' then
- v:remove()
- end
- if v.className=='Part' then
- v.BrickColor=BrickColor.new('Pastel brown')
- end
- end
- function AutoWeld(Foop, OOF)
- local W = Instance.new("Weld")
- W.Part0 = Foop
- W.Part1 = OOF
- local CJ = CFrame.new(Foop.Position)
- local C0 = Foop.CFrame:inverse()*CJ
- local C1 = OOF.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Name='o0o'
- W.Parent = Foop
- end
- Shirt=Instance.new("Shirt",lp.Character)
- Shirt.ShirtTemplate='rbxassetid://692946861'
- Pants=Instance.new("Pants",lp.Character)
- Pants.PantsTemplate='rbxassetid://692946962'
- lp.Character.Head.face.Texture='http://www.roblox.com/asset/?id=1190881618'
- D2=Instance.new('Decal',lp.Character.Head)
- D2.Texture='http://www.roblox.com/asset/?id=26926115'
- mec=Instance.new('CharacterMesh',lp.Character)
- mec.BodyPart='Torso'
- mec.MeshId='48112070'
- h2=Instance.new('Part',lp.Character)
- h2.CanCollide=false
- h2.BrickColor=BrickColor.new('Dark stone grey')
- h2.CFrame=lp.Character.Head.CFrame*CFrame.new(0,-.3,0.1)
- m3=Instance.new('SpecialMesh',h2)
- m3.MeshId='http://www.roblox.com/asset/?id=283714534'
- m3.TextureId='http://www.roblox.com/asset/?id=398616339'
- hb=Instance.new('Part',lp.Character)
- hb.CFrame=lp.Character.Head.CFrame*CFrame.new(0,0.3,-0.1)
- hb.CanCollide=false
- mb=Instance.new('SpecialMesh',hb)
- mb.MeshId='rbxassetid://74969506'
- mb.TextureId='rbxassetid://74226311'
- h5=Instance.new('Part',lp.Character)
- h5.CFrame=lp.Character.Head.CFrame*CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0)
- h5.CanCollide=false
- m6=Instance.new('SpecialMesh',h5)
- m6.Scale=Vector3.new(1.2,1.2,1.2)
- m6.MeshId='rbxassetid://110214262'
- m6.TextureId='http://www.roblox.com/asset/?id=110212521'
- AutoWeld(hb,lp.Character.Head)
- AutoWeld(h2,lp.Character.Head)
- AutoWeld(h5,lp.Character.Head)
- base = Instance.new("ScreenGui",Player.PlayerGui)
- bbg = Instance.new("BillboardGui",Player.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 25
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- function Chat(msg)
- bbgTl.Text = msg
- wait(1)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end
- Chat('Megumin by slenercat5')
- KML=CFuncs.Sound.Create(167135038,Character.Head,1,1)-- secret-->1108274211
- KML.Looped=true
- KML:stop()
- Explosion=CFuncs.Sound.Create(762570073,Character.Head,1,1)
- Explosion:stop()
- reload=false
- scoobis=false
- scoobismesh='rbxassetid://1107996700'
- scoobistexture='rbxassetid://1107996710'
- Nock=true
- ms.KeyDown:connect(function(k)
- k=k:lower()
- if k=='f' then
- if scoobis==false and reload==false and taunt==false and attack==false then
- scoobis=true
- KML:Play()
- hb.Transparency=1
- for _,v in pairs(Staff) do
- v.Transparency=0
- end
- reload=true
- wait(1)
- reload=false
- elseif scoobis==true and reload==false then
- KML:stop()
- hb.Transparency=0
- for _,v in pairs(Staff) do
- v.Transparency=1
- end
- scoobis=false
- Character.Head.Mesh.MeshType='Head'
- Character.Head.Mesh.Scale=Vector3.new(1.25, 1.25, 1.25)
- reload=true
- wait(1)
- reload=false
- end
- elseif k=='g' then
- if scoobis==false then
- if attack==false then
- if taunt then
- taunt=false
- TauntS:Stop()
- else
- taunt=true
- TauntS:Play()
- end
- print(taunt)
- end
- end
- end
- end)
- --Particles--
- ----------
- TauntS=Instance.new('Sound',Character.Head)
- TauntS.SoundId='rbxassetid://665015838'
- TauntS.Looped=true
- KML.Volume=.3
- Lead=CFuncs.Sound.Create(530138502,Character.Head,1,1)
- Lead:Stop()
- function Attack()
- Lead:Play()
- KML:Stop()
- Dip=Instance.new('Part',Character)
- Dip.Transparency=1
- Dip.Size=Vector3.new(20,1,20)
- Dip.Anchored=true
- deo=Instance.new('Decal',Dip)
- deo.Texture='http://www.roblox.com/asset/?id=352764483'
- deo.Transparency=0
- deo.Face='Top'
- Dip.CFrame=Character.HumanoidRootPart.CFrame*CFrame.new(0,-2,0)
- Bp=Instance.new('Part',Dip)
- Bp.Name='BP'
- Bp.Anchored=true
- Bp.Transparency=1
- Bp.CFrame=Dip.CFrame*CFrame.new(-10,0,0)
- Bp2=Instance.new('Part',Dip)
- Bp2.Anchored=true
- Bp2.Name='BP2'
- Bp2.Transparency=1
- Bp2.CFrame=Dip.CFrame*CFrame.new(10,0,0)
- ac=Instance.new('Attachment',Bp)
- ac2=Instance.new('Attachment',Bp2)
- local keypoints = {}
- for i = 0,1,0.1 do
- local color = Color3.fromHSV(i,1,1)
- local keypoint = ColorSequenceKeypoint.new(i,color)
- table.insert(keypoints,keypoint)
- end
- local particle = Instance.new('Beam',Bp)
- particle.Color = ColorSequence.new(keypoints)
- particle.Texture='rbxassetid://1135136643'
- particle.Attachment0=ac
- particle.Attachment1=AC
- particle.Width0=6
- particle.Width1=9
- particle.CurveSize0=-10
- particle.CurveSize1=10
- particle.LightEmission=1
- local particle2 = Instance.new('Beam',Bp2)
- particle2.Color = ColorSequence.new(keypoints)
- particle2.LightEmission=1
- particle2.Texture='rbxassetid://1135136643'
- particle2.Attachment0=ac2
- particle2.Attachment1=AC
- particle2.CurveSize0=10
- particle2.CurveSize1=10
- particle2.Width0=6
- particle2.Width1=9
- particle3=Instance.new('ParticleEmitter',Dip)
- particle3.Color = ColorSequence.new(keypoints)
- particle3.LightEmission=1
- particle3.Texture='rbxassetid://187012669'
- particle3.Size=NumberSequence.new(.2)
- particle3.Acceleration=Vector3.new(0,10,0)
- particle3.EmissionDirection='Bottom'
- particle3.SpreadAngle=Vector2.new(90,90)
- HK=Instance.new('Part',Character)
- HK.CanCollide=false
- HK.Shape='Ball'
- HK.Size=Vector3.new(2,2,2)
- HK.Material='Neon'
- HK.BrickColor=BrickColor.new('Gold')
- HK.Transparency=.5
- HK.CFrame=Character['Left Arm'].CFrame*CFrame.new(0,-1,-2)
- AutoWeld(HK,Character['Left Arm'])
- attack = true
- -- RootPart.CFrame = clerp(RootPart.CFrame,stand.HumanoidRootPart.CFrame*CFrame.new(0,0,-5), .1)
- StageTime=0
- Stage=1
- chatfunc('I am Megumin,Controller of the finest power Crimson Demons posses,')
- while Stage==1 do
- for i = 0, 1, 0.7 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- },.5,false)
- StageTime=StageTime+.02
- if StageTime>3.5 then
- Stage=Stage+1
- end
- end
- end
- Stage=2
- -- wait(4)
- StageTime=0
- chatfunc(', and I command explosion magic!')
- while Stage==2 do
- for i = 0, 1, 0.7 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(-.5, 0.5, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, .5, 0) * CFrame.Angles(20.5, -.5, 0),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- },.5,false)
- StageTime=StageTime+.02
- if StageTime>3.5 then
- Stage=Stage+1
- end
- if StageTime>1 and StageTime<1.1 then
- chatfunc('The Devil King fancies himself superior to us and dares call himself "strongest"!')
- end
- end
- end
- chatfunc('I shall obliterate his vile presence with our strongest of magics!')
- StageTime=0
- Stage=3
- while Stage==3 do
- for i = 0, 1, 0.7 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- },.5,false)
- end
- StageTime=StageTime+.03
- if StageTime>1.7 then
- Stage=Stage+1
- end
- end
- StageTime=0
- for i = 0, 1, 0.7 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, 1, 0) * CFrame.Angles(21, -.5, 0),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- },.5,false)
- end
- chatfunc('Explosion!')
- wait()
- Explosion:Play()
- HK:Remove()
- G=Instance.new('Part',Character)
- G.Size=Vector3.new(20,20,20)
- G.CanCollide=false
- G.Shape='Ball'
- G.Position=ms.Hit.p
- G.Transparency=.4
- G.Material='Neon'
- G.Anchored=true
- GEK=Instance.new('Explosion',G)
- GEK.BlastRadius=20
- GEK.BlastPressure=2
- GEK.DestroyJointRadiusPercent=2
- FF=Instance.new('ForceField',Character)
- FF.Visible=false
- Beam=Instance.new('Part',Character)
- Beam.BrickColor=BrickColor.new('Gold')
- Beam.Transparency=.5
- Beam.Anchored=true
- Beam.Material='Neon'
- local distance = (G.Position - Dis.Position).magnitude
- Beam.Size = Vector3.new(2, distance, 2)
- Beam.CFrame = CFrame.new(Dis.Position) * CFrame.new(0, -distance/2, 0)
- GEK.Hit:connect(function(h)
- if h.Parent~=Character then
- h.Velocity=Vector3.new(math.random(-30,30),20,math.random(-30,30))
- end
- end)
- GEK.ExplosionType=Enum.ExplosionType.NoCraters
- GEK.Position=G.Position
- CFuncs.Sound.Create(539294959,G,1,1)
- G.BrickColor=BrickColor.new('Gold')
- con1=G.Touched:connect(function(h)
- if h.Parent~=Character then
- h:remove()
- end
- end)
- K=Instance.new('BodyGyro',G)
- K.P=Vector3.new(0,100,0)
- wait(1)
- FF:remove()
- Dip:Remove()
- wait(1)
- G:remove()
- Beam:remove()
- bbgTl.Text=" "
- attack = false
- collapse=true
- end
- reload2=false
- collapse=false
- taunt=false
- Mouse.Button1Down:connect(function()
- if scoobis==true and reload2==false and taunt==false then
- reload2=true
- Attack()
- scoobis=false
- KML:stop()
- for _,v in pairs(Staff) do
- v.Transparency=1
- end
- hb.Transparency=0
- wait(5)
- collapse=false
- reload2=false
- end
- end)
- Staff={
- }
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 1, 2, 1
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Base"
- Part.Transparency=1
- Part.BrickColor= BrickColor.new("Medium stone grey")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0, 0, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 4.88999748, 0.270000011, 0.38500011
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.0716470033, -1.0380317, 0.778614879, 0, 0, -1, 0, -1, -0, -1, 0, -0
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.910000563, 0.289999932, 0.38500011
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- -0.188353002, -1.0380317, -1.88138556, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.910000563, 0.289999902, 0.38500011
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- -0.448352933, -1.0380317, -2.52138495, 0.0150980018, 0, -0.999886096, 0, -1, 0, -0.999886096, 0, -0.0150980027
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.640000582, 0.269999981, 0.38500011
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- -0.277138978, -1.02803171, -3.09968996, -0.657677054, 0, -0.75330013, 0, 1, 0, 0.75330013, 0, -0.657677054
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.840000451, 0.229999989, 0.38500011
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.15343301, -1.02803171, -3.08046007, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.470000386, 0.209999919, 0.935000181
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.433368087, -1.02803171, -3.25790405, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.470000386, 0.189999968, 0.535000205
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Stick"
- Part.BrickColor= BrickColor.new("Burnt Sienna")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.588867128, -1.02803171, -3.81795764, -0.99974674, 0, -0.0225039944, 0, -1, 0, -0.0225039944, 0, 0.99974674
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.22999993, 0.578461468, 0.473846316
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Ring"
- Part.BrickColor= BrickColor.new("Br. yellowish orange")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- -0.298082978, -1.0380317, -2.00398445, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.Glass
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.22999993, 0.578461468, 0.473846316
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Ring"
- Part.BrickColor= BrickColor.new("Br. yellowish orange")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- -0.118083, -1.0380317, -1.77398527, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.Glass
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 2.91999722, 0.340163469, 0.458857328
- )
- Part.Shape=
- Enum.PartType.Block
- Part.Name="Bandage"
- Part.BrickColor= BrickColor.new("Lily white")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.0716470033, -1.0380317, 0.543615103, 0, 0, -1, 0, -1, -0, -1, 0, -0
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.SmoothPlastic
- table.insert(Staff,Part)
- -------------------------------------------------------------
- Part=Instance.new("Part",Character)
- Part.Size= Vector3.new(
- 0.669999778, 0.669999778, 0.669999778
- )
- Part.Shape=
- Enum.PartType.Ball
- Part.Name="Ball"
- Part.BrickColor= BrickColor.new("Really red")
- Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
- 0.141646966, -1.0380317, -2.46138406, 0, 0, -1, 0, -1, -0, -1, 0, -0
- )
- AutoWeld(Part,Character["Left Arm"])
- Part.CanCollide=false
- Part.Material=
- Enum.Material.Glass
- table.insert(Staff,Part)
- -------------------------------------------------------------
- for _,v in pairs(Staff) do
- v.Transparency=1
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
- sref.Anchored = true
- local m = Create("Model"){
- Parent = Character,
- Name = "WeaponModel",
- }
- local shield=false
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size32"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(.6,0,0)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local shk = coroutine.wrap(function()
- while tecks2 ~= nil do
- wait(.05)
- tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
- end
- end)
- shk()
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- wait(0.01)
- end
- wait(1)
- for i = 1, 5 do
- wait(.01)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- Player.Chatted:connect(function(msg)
- if attack==false then
- chatfunc(msg)
- end
- end)
- Dis=Instance.new('Part',Character)
- Dis.Transparency=1
- Dis.Size=Vector3.new(20,1,20)
- Dis.Anchored=true
- Dis.CanCollide=false
- dek=Instance.new('Decal',Dis)
- dek.Face='Bottom'
- dek.Texture='http://www.roblox.com/asset/?id=352764483'
- dek.Transparency=1
- AC=Instance.new('Attachment',Dis)
- Dis.Name='Dis'
- light=Instance.new('SurfaceLight',Character.Torso)
- lightp=0
- light.Face='Top'
- while true do
- light.Color=Color3.new(lightp,lightp,lightp)
- if taunt==true then
- lightp=TauntS.PlaybackLoudness/500
- light.Enabled=true
- else
- lightp=0
- light.Enabled=false
- end
- if attack==false then
- dek.Transparency=1
- else
- dek.Transparency=0
- end
- Dis.CFrame=CFrame.new(ms.Hit.p.X,ms.Hit.p.Y,ms.Hit.p.Z)*CFrame.new(0,20,0)*CFrame.Angles(0,sine/2,0)
- swait()
- sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
- Character['Left Arm'].LocalTransparencyModifier=0
- Character['Right Arm'].LocalTransparencyModifier=0
- Character['Right Leg'].LocalTransparencyModifier=0
- Character['Left Leg'].LocalTransparencyModifier=0
- Character['Torso'].LocalTransparencyModifier=0
- wait()
- sine=sine+change
- change=.1
- if taunt==true and collapse==false then
- if attack == false then
- change = 2
- PlayAnimationFromTable({
- CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0,0+ math.cos(sine/2)*3, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine / 4)), 0),
- CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine/4)), 0),
- CFrame.new(1.5 , 0 + .2 * math.cos(sine / 4 ) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 4)), math.rad(3), math.rad(0)),
- CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 4) / 2, 0 + 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 4)), math.rad(-3), math.rad(0)),
- CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 4) / 2, 0 + 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 4)), math.rad(-3), math.rad(0)),
- CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 4 ) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 4)), math.rad(3), math.rad(0)),
- ---root.RotVelocity.Y /20
- }, .2, false)
- end
- end
- if collapse==false then
- if taunt==false then
- Character.Humanoid.WalkSpeed=20
- local speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
- local TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, .5, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- change = 2
- PlayAnimationFromTable({
- CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0, .1, 0) * CFrame.Angles(-.2, math.rad(-15 * math.cos(sine / 8)), 0+root.RotVelocity.Y/15),
- CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(.2, math.rad(15 * math.cos(sine / 8)), 0),
- CFrame.new(1.5 , 0 + .2 * math.cos(sine / 8 ) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
- CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 8) / 2, 0 + 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
- CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 8) / 2, 0 + 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
- CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 8 ) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
- ---root.RotVelocity.Y /20
- }, .2, false)
- end
- end
- end
- elseif collapse==true then
- Character.Humanoid.WalkSpeed=0
- PlayAnimationFromTable({
- CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, -3, 0) * CFrame.Angles(-1.5, 0, 0),
- CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.5),
- CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -.5),
- CFrame.new(0.5,-1.8, 0) * CFrame.new(0.4, 0, 0) * CFrame.Angles(0, 0, .5),
- CFrame.new(-0.5,-1.8 ,0) * CFrame.new(-0.4, 0, 0) * CFrame.Angles(0, 0, -.5),
- }, .2, false)
- elseif attack==true then
- Character.Humanoid.WalkSpeed=0
- end
- end
- --https://www.hastebin.com/raw/fahamuqecu
Add Comment
Please, Sign In to add comment