Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadstring(game:HttpGet(("https://pastebin.com/raw/gmyrx1F1"),true))() --reanim
- --[[
- _____________________________
- // \
- || ? Undertale Sans Script? > (´???`)
- \\_____________________________/
- also by v4mp
- before this, there was no facial expressions, faces, or animations.
- It was just sans attacks with your normal avatar
- there also was no teleport
- Chatfunc by v4mp
- v4mp truly is the greatest
- v4mp13r2On1c
- Thanks MLG for the healthbar its actually epic and im not good at these things
- ______________________________________________
- // \
- || ?Created by Zalgo_exe/Kunoleo/EXEcution? > (?///?///?)
- \\______________________________________________/
- Improved by v4mp13r2On1c/CORRUPT V4MP
- _____________________________
- // \
- || ?Made for PsychBeamTeam? > (???)
- \\_____________________________/
- _________________________________
- // \
- (?´?´)?*:??? < This is the local script verz~ |
- \\________________________________/
- ------------------------------------------------------------------------------------------------------------------
- ~-[Move List for Sans]-~
- ~[Left Mouse Click] - Telekinesis, drags your target to the position of your mouse.
- ~[F] - Sends 3-5 bones toward the direction of your mouse.
- ~[R] - Shoots 1 bone projectile to the position of your mouse.
- ~[C] - Summons a cluster of bones on the position of your mouse.
- ~[Q] - Summons 1 Gaster Blaster and aims towards the position of your mouse.
- ~[G] - Summons a group of Gaster Blasters ranging from 2, 4, and 8 to the position of your mouse.
- ~[V] - Summons a group of Gaster Blasters in a set pattern, much similar to the first attack Sans does in the game.
- -------------------------------------------------------}][]{{]]
- local textboard = Instance.new("BillboardGui")
- textboard.Name = "textboard"
- textboard.Enabled = false
- textboard.Active = true
- textboard.ExtentsOffset = Vector3.new(0, 2, 0)
- textboard.AlwaysOnTop = true
- textboard.Size = UDim2.new(5.8000002, 0, 2.8, 0)
- textboard.ClipsDescendants = true
- textboard.MaxDistance = 300
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.BorderColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BorderSizePixel = 3
- TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.FontSize = Enum.FontSize.Size32
- TextLabel.TextSize = 30
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Text = "Hey, what do you think you're doing!?"
- TextLabel.TextWrap = true
- TextLabel.Font = Enum.Font.Arcade
- TextLabel.TextWrapped = true
- TextLabel.TextStrokeColor3 = Color3.fromRGB(35, 8, 172)
- TextLabel.TextScaled = true
- TextLabel.Parent = textboard
- ------------------------------------------------------------------------------------------------------------------
- local Player = game.Players.LocalPlayer --<=== Replace With Your Name
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = Player.Character
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnClientEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --]]
- local Mouse=game.Players.LocalPlayer:GetMouse()
- local mouse=game.Players.LocalPlayer:GetMouse()
- local Player, Character = game.Players.LocalPlayer, Player.Character;
- local Torso = Character:FindFirstChild("Torso")
- local rootPart = Character:FindFirstChild("HumanoidRootPart")
- local Humanoid = Character:FindFirstChild("Humanoid")
- local Head = Character:FindFirstChild("Head")
- local Right_Arm = Character:FindFirstChild("Right Arm")
- local Left_Arm = Character:FindFirstChild("Left Arm")
- local Right_Leg = Character:FindFirstChild("Right Leg")
- local Left_Leg = Character:FindFirstChild("Left Leg")
- local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
- local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
- local Right_Hip = Torso:FindFirstChild("Right Hip")
- local Left_Hip = Torso:FindFirstChild("Left Hip")
- local Neck = Torso:FindFirstChild("Neck")
- local rootPart = Character:FindFirstChild("HumanoidRootPart")
- local rootJoint = rootPart:FindFirstChild("RootJoint")
- local CurrentIdle = "Idling1"
- local isAttacking = false
- local isSprinting = false
- local Animations = false
- local Angle = 0
- local Axis = 0
- local angleSpeed = 1
- local axisSpeed = angleSpeed
- local currentAnim
- Humanoid.MaxHealth = 100
- Humanoid.Health = Humanoid.MaxHealth
- sine = 0
- change = 1
- sprint=false
- idly = 0
- idle = idly
- Sanim = 0.025
- --original Sanim value = 0.15
- dedebounce = false
- attack2 = false
- attack = false
- sin = math.sin
- Right_Leg.FormFactor = "Custom";
- Left_Leg.FormFactor = "Custom";
- rootPart.Archivable = true;
- rootJoint.Archivable = true;
- c_new = CFrame.new;
- cam = game.Workspace.CurrentCamera
- c_angles = CFrame.Angles;
- i_new = Instance.new
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- return wld
- end
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB: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 = 1, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- 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))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- 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
- end
- function clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- swait()
- LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
- Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
- RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
- Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
- LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
- RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
- Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
- Torso.Weld.C1 = CFrame.new(0, -1, 0)
- Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
- local S = Instance.new("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH)
- local NEWSOUND
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
- swait()
- NEWSOUND:play()
- game:GetService("Debris"):AddItem(NEWSOUND, 15)
- end))
- return NEWSOUND
- end
- function newbosschatfunc(text,color1,color2,delay,typea)
- for _,v in next, game:service'Players':players() do
- coroutine.wrap(function()
- if(script:FindFirstChild'TalkChat' and v.Character)then
- local cha = script.TalkChat:Clone()
- cha.Color1.Value=color1
- cha.Color2.Value=color2
- cha.Text.Value=text
- cha.Ghghghghgh.Value=delay
- cha.Mode.Value=1
- cha.Parent=v.Character
- wait()
- cha.Disabled = false
- game:service'Debris':AddItem(cha,(delay/30))
- end
- end)()
- end
- end
- function bosschatfunc(text,color,watval,type)
- newbosschatfunc(text,BrickColor.new("Institutional white").Color,color,watval,type)
- end
- function Pointing()
- attack = true
- Animations = true
- local Point= Instance.new("BodyGyro")
- Point.Parent = rootPart
- Point.D = 175
- Point.P = 20000
- Point.MaxTorque = Vector3.new(0,4000000,0)
- for i = 0,0.08,0.01 do
- Point.cframe = CFrame.new(rootPart.Position,mouse.Hit.Position)
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, 0.3) * c_angles(math.rad(90),math.rad(0),math.rad(60)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(-10)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0),math.rad(0),math.rad(10)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0), math.rad(60),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 - math.sin(sine/15)/15, 0) * c_angles(math.rad(-10),math.rad(-60), math.rad(0)), 0.15)
- swait()
- end
- swait(5)
- attack = false
- Animations = false
- Point:Destroy()
- end
- local Player, Character = game.Players:GetPlayerFromCharacter(script.Parent), Player.Character;
- local Torso = Character:FindFirstChild("Torso")
- local rootPart = Character:FindFirstChild("HumanoidRootPart")
- local Humanoid = Character:FindFirstChild("Humanoid")
- local Head = Character:FindFirstChild("Head")
- local rootPart = Character:FindFirstChild("HumanoidRootPart")
- local rapid = false
- local rapid2 = false
- local rapid3 = false
- local debouncing = false
- repeat wait() until Character ~= nil
- function rayCast2(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- local themeMoos = Instance.new("Sound")
- themeMoos.Parent = Torso
- themeMoos.SoundId = "rbxassetid://3745550364"
- themeMoos.Looped = true
- themeMoos.Volume = 5
- themeMoos.Pitch = 1
- themeMoos.Name = "MusicTheme"
- local themeMoos2 = Instance.new("Sound")
- themeMoos2.Parent = Torso
- themeMoos2.SoundId = "rbxassetid://320354175"
- themeMoos2.Looped = true
- themeMoos2.Volume = 8
- themeMoos2.Pitch = 1
- themeMoos2.Name = "SpareTheme"
- wait()
- themeMoos:Play()
- local Happened = false
- function Start()
- Animations = true
- attack = true
- themeMoos:Stop()
- Expression.Texture = "rbxassetid://4484446057"
- chatfunc("* it's a beautiful day outside.")
- wait(3)
- chatfunc("* birds are singing, flowers are blooming...")
- wait(5)
- chatfunc("* on days like these, kids like you...")
- wait(4)
- Expression.Texture = "rbxassetid://4484436948"
- chatfunc("* Should be burning in hell.")
- wait(15)
- idle=idly
- Animations = true
- Expression.Texture = "rbxassetid://4484405390"
- chatfunc("* huh.")
- wait(6)
- Expression.Texture = "rbxassetid://4484407199"
- chatfunc("* always wondered why people never use their strongest attack first.")
- wait(5)
- Expression.Texture = "rbxassetid://4484405390"
- themeMoos:Play()
- bosschatfunc("* You feel like you're going to have a bad time.",BrickColor.new("Institutional white").Color,120)
- Animations = false
- attack = false
- end
- local Death = false
- local emitters={}
- local emitter = Instance.new("ParticleEmitter")
- emitter.Name = "Dust"
- emitter.LightEmission = 1
- emitter.Transparency = NumberSequence.new(0,1)
- emitter.Size = NumberSequence.new(0,0.2)
- emitter.SpreadAngle = Vector2.new(360,360)
- emitter.Speed = NumberRange.new(0.5)
- emitter.Lifetime = NumberRange.new(0.75)
- emitter.Texture = "rbxassetid://241812810"
- emitter.Rate = 1000
- emitter.Color = ColorSequence.new(Color3.new(1,1,1))
- emitter.LockedToPart = false
- table.insert(emitters,emitter)
- function particles(art)
- emitter:Clone().Parent = art
- end
- local Death2 = false
- local Slash = Instance.new("Decal", Torso)
- Slash.Texture = ""
- local HealthBar = Instance.new("BillboardGui")
- HealthBar.Name = "HealthBar"
- HealthBar.Active = true
- HealthBar.ExtentsOffset = Vector3.new(0, 2, 0)
- HealthBar.AlwaysOnTop = true
- HealthBar.Size = UDim2.new(4, 0, 2, 0)
- HealthBar.ClipsDescendants = true
- HealthBar.MaxDistance = 300
- local Frame = Instance.new("Frame")
- Frame.Size = UDim2.new(1, 0, 1, 0)
- Frame.BackgroundTransparency = 1
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Parent = HealthBar
- local HP = Instance.new("TextLabel")
- HP.Name = "HP"
- HP.Size = UDim2.new(0.3, 0, 0.3, 0)
- HP.BackgroundTransparency = 1
- HP.Position = UDim2.new(0, 0, 0.2, 0)
- HP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HP.FontSize = Enum.FontSize.Size14
- HP.TextStrokeTransparency = 0
- HP.TextSize = 14
- HP.TextColor3 = Color3.fromRGB(255, 255, 255)
- HP.Text = "HP"
- HP.TextWrap = true
- HP.Font = Enum.Font.Arcade
- HP.TextWrapped = true
- HP.TextScaled = true
- HP.Parent = Frame
- local HealthLabel = Instance.new("TextLabel")
- HealthLabel.Name = "HealthLabel"
- HealthLabel.Size = UDim2.new(0.3, 0, 0.36, 0)
- HealthLabel.BackgroundTransparency = 1
- HealthLabel.Position = UDim2.new(0.7, 0, 0.2, 0)
- HealthLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HealthLabel.FontSize = Enum.FontSize.Size14
- HealthLabel.TextStrokeTransparency = 0
- HealthLabel.TextSize = 14
- HealthLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- HealthLabel.Text = "placeholder"
- HealthLabel.TextWrap = true
- HealthLabel.Font = Enum.Font.Arcade
- HealthLabel.TextWrapped = true
- HealthLabel.TextScaled = true
- HealthLabel.Parent = Frame
- local BackHealth = Instance.new("Frame")
- BackHealth.Name = "BackHealth"
- BackHealth.ZIndex = 0
- BackHealth.Size = UDim2.new(0.45, 0, 0.25, 0)
- BackHealth.Position = UDim2.new(0.23, 0, 0.25, 0)
- BackHealth.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- BackHealth.Parent = Frame
- local PName = Instance.new("TextLabel")
- PName.Name = "PName"
- PName.LayoutOrder = 1
- PName.Selectable = true
- PName.Size = UDim2.new(2, 0, 0.5, 0)
- PName.SizeConstraint = Enum.SizeConstraint.RelativeYY
- PName.BackgroundTransparency = 1
- PName.Position = UDim2.new(0, 0, -0.22, 0)
- PName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PName.TextStrokeTransparency = 0
- PName.TextSize = 5
- PName.TextColor3 = Color3.fromRGB(255, 255, 255)
- PName.Text = "abc"
- PName.TextYAlignment = Enum.TextYAlignment.Bottom
- PName.TextWrap = true
- PName.Font = Enum.Font.Arcade
- PName.TextWrapped = true
- PName.TextScaled = true
- PName.Parent = Frame
- local Health = Instance.new("Frame")
- Health.Name = "Health"
- Health.Size = UDim2.new(0.45, 0, 0.25, 0)
- Health.Position = UDim2.new(0.23, 0, 0.25, 0)
- Health.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
- Health.Parent = Frame
- local bill = HealthBar
- bill.Frame.PName.Text = "sans"
- bill.Parent = Head
- FLOOR = math.floor
- local health = Head.HealthBar.Frame.HealthLabel
- local Humanoid = Character:WaitForChild("Humanoid")
- local damagedsound = Instance.new("Sound")
- damagedsound.Name = "damaged"
- damagedsound.SoundId = "rbxassetid://357417055" -- damages sound effect
- damagedsound.Pitch = 1
- damagedsound.Volume = 3
- damagedsound.Parent = Torso
- health.Text = (Humanoid.Health/100).."/1" -- health text is now the humanoid health out of 1000
- Humanoid.HealthChanged:Connect(function()
- damagedsound:Play()
- if Death == false and Death2 == false then
- health.Text = FLOOR(Humanoid.Health/100).."/1" -- when the humanoid health changes the text updates with the new humanoid health value
- health.Parent.Health.Size = UDim2.new(Humanoid.Health/222.2,0,.25,0)
- elseif Death == true and Death2 == false then
- health.Text = "0.0001/1" -- when the humanoid health changes the text updates with the new humanoid health value
- health.Parent.Health.Size = UDim2.new(Humanoid.Health/111111.1,0,.25,0)
- elseif Death == false and Death2 == true then
- health.Text = FLOOR(Humanoid.Health/1500).."/1" -- when the humanoid health changes the text updates with the new humanoid health value
- health.Parent.Health.Size = UDim2.new(Humanoid.Health/3333.3,0,.25,0)
- end
- end)
- function Dead()
- attack = true
- attack2 = true
- Animations = true
- candodge = false
- dodging = false
- Happened = true
- canblock = true
- blocking = false
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- Expression.Texture = "rbxassetid://1371827222"
- local Dizz = Instance.new("Sound")
- Dizz.Parent = Character.Torso
- Dizz.SoundId = "rbxassetid://623904185"
- Dizz.Volume = 10
- Dizz.Looped = false
- Dizz.Pitch = 1
- Dizz:Play()
- Slash.Texture = "rbxassetid://403969152"
- health.Text = "0/1"
- health.Parent.Health.Size = UDim2.new(0/2222.2,0,.25,0)
- for i = 0,1,0.01 do
- themeMoos.Pitch = themeMoos.Pitch - 0.01
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(-20),math.rad(-20),math.rad(0)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(-20),math.rad(20),math.rad(0)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(20),math.rad(0)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(-20),math.rad(0)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -3 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/15)/10, 0) * c_angles(math.rad(-20),math.rad(0), math.rad(0) + math.sin(sine/15)/5), 0.15)
- swait()
- end
- local Soul1 = Instance.new("Part", Character)
- Soul1.Name = "Soul"
- Soul1.Anchored = true
- Soul1.Shape = Enum.PartType.Block
- Soul1.CanCollide = false
- Soul1.BrickColor = BrickColor.new("Institutional white")
- Soul1.Transparency = 0.001
- Soul1.Material = "Neon"
- Soul1.Size = Vector3.new(0.26, 0.5, 0.21)
- Soul1.TopSurface = Enum.SurfaceType.Smooth
- Soul1.BottomSurface = Enum.SurfaceType.Smooth
- local M1 = Instance.new("SpecialMesh")
- M1.Parent = Soul1
- M1.MeshType = "Sphere"
- M1.Scale = Vector3.new(1,1,1)
- local Soul2 = Instance.new("Part", Character)
- Soul2.Name = "Soul"
- Soul2.Anchored = true
- Soul2.Shape = Enum.PartType.Block
- Soul2.CanCollide = false
- Soul2.BrickColor = BrickColor.new("Institutional white")
- Soul2.Transparency = 0.001
- Soul2.Material = "Neon"
- Soul2.Size = Vector3.new(0.26, 0.5, 0.21)
- Soul2.TopSurface = Enum.SurfaceType.Smooth
- Soul2.BottomSurface = Enum.SurfaceType.Smooth
- local M1 = Instance.new("SpecialMesh")
- M1.Parent = Soul2
- M1.MeshType = "Sphere"
- M1.Scale = Vector3.new(1,1,1)
- Dizz:Destroy()
- themeMoos.Volume = 0
- S = Instance.new("Sound")
- S.Parent = Character.Torso
- S.SoundId = "rbxassetid://1292392651"
- S.Volume = 10
- S.Looped = false
- S.Pitch = 1
- S:Play()
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- Death = true
- chatfunc("* ...")
- wait(2)
- S:Stop()
- for i = 0,1.7,0.01 do
- Soul1.CFrame = rootPart.CFrame * CFrame.new(math.random(5,15)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(math.random(-15,-5)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- end
- chatfunc("* !?")
- wait(3)
- themeMoos:Stop()
- themeMoos.Pitch = 1
- themeMoos.SoundId = "rbxassetid://693595258"
- themeMoos:Play()
- CreateSound("446961725", Head, 7, 1)
- health.Text = "0.0001/1"
- health.Parent.Health.Size = UDim2.new(100/22222.2,0,.25,0)
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- wait(5)
- for i = 1,60,2 do
- Soul1.Transparency = i/30
- Soul2.Transparency = i/30
- swait()
- end
- wait(2)
- chatfunc("* i'm not throwing in the towel just yet.")
- Expression.Texture = "rbxassetid://4899271896"
- wait(3)
- chatfunc("* ...")
- wait(3)
- for i = 0,1.7,0.01 do
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(0)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(0)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(20) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(20) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/10, math.rad(0),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(math.random(-15,10)), math.rad(0) + math.sin(sine/15)/4), Sanim)
- end
- wait(1)
- Animations = false
- chatfunc("* because even if this fight is unwinnable")
- Expression.Texture = "rbxassetid://4899271517"
- wait(3)
- chatfunc("* i am willing to give it my all.")
- wait(3)
- chatfunc("it's not like i have any other choice...")
- wait(3)
- chatfunc("* i am willing to put you into place once and for all.")
- wait(3)
- chatfunc("* and even if i fail..")
- wait(2)
- chatfunc("* at least i die with a feeling of satisfaction.")
- wait(3)
- chatfunc("* that i finally got to see who you really are.")
- wait(3)
- chatfunc("* prepare yourself, kid... or whatever you are.")
- wait(5)
- chatfunc("* because...")
- local Rev = Instance.new("Sound")
- Rev.Parent = Character.Torso
- Rev.SoundId = "rbxassetid://364420478"
- Rev.Volume = 10
- Rev.Looped = false
- Rev.Pitch = 1
- Rev:Play()
- repeat wait() until Rev.Playing == false
- local RevB = Instance.new("Sound")
- RevB.Parent = Character.Torso
- RevB.SoundId = "rbxassetid://446961725"
- RevB.Volume = 10
- RevB.Looped = false
- RevB.Pitch = 1
- RevB:Play()
- Expression.Texture = "rbxassetid://4899271236"
- chatfunc("* you're about to get dunked on even harder than before.")
- themeMoos:Stop()
- themeMoos.Pitch = 1
- themeMoos.Volume = 5
- themeMoos.SoundId = "rbxassetid://4686555781"
- themeMoos:Play()
- bosschatfunc("* Sans is 'dead' serious about this.",BrickColor.new("Institutional white").Color,120)
- Sanim = 0.0001
- attack = false
- attack2 = false
- Animations = false
- Humanoid.MaxHealth = 500
- Humanoid.Health = 500
- end
- --death2
- function Dead2()
- attack = true
- attack2 = true
- specialattack = false
- Animations = true
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- Expression.Texture = "rbxassetid://1371827222"
- local Dizz = Instance.new("Sound")
- Dizz.Parent = Character.Torso
- Dizz.SoundId = "rbxassetid://623904185"
- Dizz.Volume = 10
- Dizz.Looped = false
- Dizz.Pitch = 0.7
- Dizz:Play()
- Slash.Texture = "rbxassetid://405155520"
- health.Text = "0/1"
- health.Parent.Health.Size = UDim2.new(0/2222.2,0,.25,0)
- for i = 0,1,0.01 do
- themeMoos.Pitch = themeMoos.Pitch - 0.01
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(-20),math.rad(-20),math.rad(0)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(-20),math.rad(20),math.rad(0)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(20),math.rad(0)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(-20),math.rad(0)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -3 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/15)/10, 0) * c_angles(math.rad(-20),math.rad(0), math.rad(0) + math.sin(sine/15)/5), 0.15)
- swait()
- end
- wait(2)
- Expression.Texture = "rbxassetid://4484446057"
- chatfunc("* ...")
- for i = 0,1,0.01 do
- themeMoos.Pitch = themeMoos.Pitch - 0.01
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(-20),math.rad(-20),math.rad(0)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(40),math.rad(20),math.rad(70)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(20),math.rad(0)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/10, 0) * c_angles(math.rad(60),math.rad(-20),math.rad(0)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -3 + math.sin(sine/7.5)/10, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/15)/10, 0) * c_angles(math.rad(-20),math.rad(0), math.rad(0) + math.sin(sine/15)/5), 0.15)
- swait()
- end
- wait(1)
- Expression.Texture = "rbxassetid://4484447540"
- chatfunc("* ...")
- wait(3)
- chatfunc("* so...")
- wait(2)
- chatfunc("* guess that's it, huh?")
- wait(4)
- Expression.Texture = "rbxassetid://1371827222"
- chatfunc("* ...")
- wait(6)
- Expression.Texture = "rbxassetid://4484446057"
- chatfunc("* welp.")
- wait(3)
- local Soul1 = Instance.new("Part", Character)
- Soul1.Name = "Soul"
- Soul1.Anchored = true
- Soul1.Shape = Enum.PartType.Block
- Soul1.CanCollide = false
- Soul1.BrickColor = BrickColor.new("Institutional white")
- Soul1.Transparency = 0.001
- Soul1.Material = "Neon"
- Soul1.Size = Vector3.new(0.26, 0.5, 0.21)
- Soul1.TopSurface = Enum.SurfaceType.Smooth
- Soul1.BottomSurface = Enum.SurfaceType.Smooth
- local M1 = Instance.new("SpecialMesh")
- M1.Parent = Soul1
- M1.MeshType = "Sphere"
- M1.Scale = Vector3.new(1,1,1)
- local Soul2 = Instance.new("Part", Character)
- Soul2.Name = "Soul"
- Soul2.Anchored = true
- Soul2.Shape = Enum.PartType.Block
- Soul2.CanCollide = false
- Soul2.BrickColor = BrickColor.new("Institutional white")
- Soul2.Transparency = 0.001
- Soul2.Material = "Neon"
- Soul2.Size = Vector3.new(0.26, 0.5, 0.21)
- Soul2.TopSurface = Enum.SurfaceType.Smooth
- Soul2.BottomSurface = Enum.SurfaceType.Smooth
- local M1 = Instance.new("SpecialMesh")
- M1.Parent = Soul2
- M1.MeshType = "Sphere"
- M1.Scale = Vector3.new(1,1,1)
- Dizz:Destroy()
- themeMoos.Volume = 0
- S = Instance.new("Sound")
- S.Parent = Character.Torso
- S.SoundId = "rbxassetid://1292392651"
- S.Volume = 10
- S.Looped = false
- S.Pitch = 1
- S:Play()
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- for i = 0,1.7,0.01 do
- Soul1.CFrame = rootPart.CFrame * CFrame.new(math.random(5,15)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(math.random(-15,-5)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(150),math.rad(-25),math.rad(66)), 0.2)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(150),math.rad(16),math.rad(-50)), 0.2)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(20)), 0.2)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -2.5, 0) * c_angles(math.rad(-80), math.rad(0),math.rad(0)), 0.2)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 2, -0.3) * c_angles(math.rad(50),math.rad(0), math.rad(45)), 0.2)
- swait()
- end
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- wait(1)
- S = Instance.new("Sound")
- S.Parent = Character.Torso
- S.SoundId = "rbxassetid://973028066"
- S.Volume = 10
- S.Looped = false
- S.Pitch = 1
- S:Play()
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.25, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.25, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- wait(1)
- S:Stop()
- Soul1.BrickColor = BrickColor.new("Really red")
- Soul2.BrickColor = BrickColor.new("Really red")
- local Rev = Instance.new("Sound")
- Rev.Parent = Character.Torso
- Rev.SoundId = "rbxassetid://364420478"
- Rev.Volume = 10
- Rev.Looped = false
- Rev.Pitch = 1
- Rev:Play()
- repeat
- swait()
- Rev.Parent = Head
- Soul1.CFrame = rootPart.CFrame * CFrame.new(math.random(5,15)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(math.random(-15,-5)/100, math.random(95,105)/100, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- until Rev.Playing == false
- Soul1.CFrame = rootPart.CFrame * CFrame.new(0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- Soul2.CFrame = rootPart.CFrame * CFrame.new(-0.1, 1, -1)*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- for i = 1,60,2 do
- Soul1.Transparency = i/30
- Soul2.Transparency = i/30
- swait()
- end
- Death = false
- Death2 = true
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" then
- if c.Transparency == 0 and c:FindFirstChild("Dust") ~= nil then
- c.Dust:Destroy()
- end
- end
- end
- local Bam = Instance.new("Sound")
- Bam.Parent = Character.Torso
- Bam.SoundId = "rbxassetid://367453005"
- Bam.Volume = 10
- Bam.Looped = false
- Bam.Pitch = 1
- Bam:Play()
- health.Text = "1/1"
- health.Parent.Health.Size = UDim2.new(0.45,0,.25,0)
- Expression.Texture = "rbxassetid://1747799573"
- script.textboard.TextLabel.TextColor3 = Color3.new(255,0,0)
- chatfunc("* Determination.")
- themeMoos:Stop()
- themeMoos.SoundId = "rbxassetid://3343011842"
- themeMoos:Play()
- Sanim = 0.0001
- attack = false
- attack2 = false
- Animations = false
- Humanoid.MaxHealth = 1500
- Humanoid.Health = 1500
- end
- local Happened2 = false
- function swait(num)
- if num == 0 or num == nil then
- game:GetService("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:GetService("RunService").Stepped:wait(0)
- end
- end
- end
- Effects = Instance.new("Folder",Character)
- Effects.Name = "Stuff"
- local CFRAME = rootPart.CFrame * CFrame.new(0, 0, -2)
- local CHROMES = {}
- local AFFECTEDPEOPLE = {}
- local function AoE(POS, RANGE)
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO and RANGE >= (TORSO.Position - POS).Magnitude then
- local PASS = true
- for E = 1, #AFFECTEDPEOPLE do
- if AFFECTEDPEOPLE[E][1] == CHILD then
- PASS = false
- end
- end
- if PASS == true then
- local CHROME = script.Permachrome:Clone()
- CHROME.Parent = CHILD
- CHROME.Disabled = false
- local UNDO = Instance.new("BoolValue", CHROME)
- UNDO.Name = "Undo"
- table.insert(CHROMES, CHROME)
- end
- end
- end
- end
- end
- end
- function teleport()
- local tele1 = CreateSound("12222170", Head, 5, 0.6)
- --AoE(CFRAME.p, 500000)
- repeat swait() until tele1.Playing == false
- wait(0.5)
- local tele2 = CreateSound("12222170", Head, 5, 0.65)
- Torso.CFrame = CFrame.new(Vector3.new(Mouse.Hit.p.X,Mouse.Hit.p.Y+1.5,Mouse.Hit.p.Z),Torso.CFrame.p)
- wait(1)
- --for E = 1, #CHROMES do
- --CHROMES[E]:Destroy()
- --end
- end
- function Beam2(parent,color,size,pose)
- local MouseLook=CFrame.new((parent.Position+pose)/2,pose)
- local hit,pos = rayCast2(parent.Position,MouseLook.lookVector,999,rootPart.Parent)
- local mag=(parent.Position-pos).magnitude
- local Shockwave = Instance.new("Part",Effects)
- Shockwave.Anchored = true
- Shockwave.Color = color
- Shockwave.CanCollide = false
- Shockwave.FormFactor = 3
- Shockwave.Name = "Shockwave"
- Shockwave.Material = "Neon"
- Shockwave.Size = Vector3.new(1, 1, 1)
- Shockwave.Transparency = 0
- Shockwave.TopSurface = 0
- Shockwave.BottomSurface = 0
- Shockwave.CFrame = parent.CFrame
- local rngm2 = Instance.new("SpecialMesh", Shockwave)
- rngm2.Scale = Vector3.new(size, size, size)
- rngm2.Offset = Vector3.new(0,0,0)
- rngm2.MeshType = "Sphere"
- spawn(function()
- wait(0.4)
- for i = 1, 10 do
- rngm2.Scale = Vector3.new(size - i*(size/10),size - i*(size/10),size - i*(size/10))
- swait()
- end
- wait()
- Shockwave:Destroy()
- end)
- local Shockwave = Instance.new("Part",Effects)
- Shockwave.Anchored = true
- Shockwave.Color = color
- Shockwave.CanCollide = false
- Shockwave.FormFactor = 3
- Shockwave.Name = "Shockwave"
- Shockwave.Material = "Neon"
- Shockwave.Size = Vector3.new(1, 1, 1)
- Shockwave.Transparency = 0
- Shockwave.TopSurface = 0
- Shockwave.BottomSurface = 0
- Shockwave.CFrame = parent.CFrame *CFrame.new(0,0,(-mag))
- local rngm2 = Instance.new("SpecialMesh", Shockwave)
- rngm2.Scale = Vector3.new(size, size, size)
- rngm2.Offset = Vector3.new(0,0,0)
- rngm2.MeshType = "Sphere"
- spawn(function()
- wait(0.4)
- for i = 1, 10 do
- rngm2.Scale = Vector3.new(size - i*(size/10),size - i*(size/10),size - i*(size/10))
- swait()
- end
- wait()
- Shockwave:Destroy()
- end)
- local Laser = Instance.new("Part",Torso)
- Laser.Name = "MagicCircle"
- Laser.Shape = Enum.PartType.Cylinder
- Laser.CanCollide = false
- Laser.Color = color
- Laser.Transparency = 0
- Laser.Anchored = true
- Laser.Material = "Neon"
- Laser.Size = Vector3.new(1 * mag,size, size)
- Laser.TopSurface = Enum.SurfaceType.Smooth
- Laser.BottomSurface = Enum.SurfaceType.Smooth
- Laser.CFrame = parent.CFrame *CFrame.new(0,0,(-mag)/2) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
- Laser.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait()
- padebounce = true
- end
- end
- end
- end)
- spawn(function()
- e = size
- wait(0.4)
- for i = 1,10 do
- e = e - (size/10)
- Laser.Size = Vector3.new(1 * mag,e, e)
- swait()
- end
- Laser:Destroy()
- end)
- end
- function Beam(parent,color,size)
- local MouseLook=CFrame.new((parent.Position+mouse.Hit.p)/2,mouse.Hit.p)
- local hit,pos = rayCast2(parent.Position,MouseLook.lookVector,999,rootPart.Parent)
- local mag=(parent.Position-pos).magnitude
- local Shockwave = Instance.new("Part",Effects)
- Shockwave.Anchored = true
- Shockwave.Color = color
- Shockwave.CanCollide = false
- Shockwave.FormFactor = 3
- Shockwave.Name = "Shockwave"
- Shockwave.Material = "Neon"
- Shockwave.Size = Vector3.new(1, 1, 1)
- Shockwave.Transparency = 0
- Shockwave.TopSurface = 0
- Shockwave.BottomSurface = 0
- Shockwave.CFrame = parent.CFrame
- local rngm2 = Instance.new("SpecialMesh", Shockwave)
- rngm2.Scale = Vector3.new(size, size, size)
- rngm2.Offset = Vector3.new(0,0,0)
- rngm2.MeshType = "Sphere"
- spawn(function()
- wait(0.4)
- for i = 1, 10 do
- rngm2.Scale = Vector3.new(size - i*(size/10),size - i*(size/10),size - i*(size/10))
- swait()
- end
- wait()
- Shockwave:Destroy()
- end)
- local Shockwave = Instance.new("Part",Effects)
- Shockwave.Anchored = true
- Shockwave.Color = color
- Shockwave.CanCollide = false
- Shockwave.FormFactor = 3
- Shockwave.Name = "Shockwave"
- Shockwave.Material = "Neon"
- Shockwave.Size = Vector3.new(1, 1, 1)
- Shockwave.Transparency = 0
- Shockwave.TopSurface = 0
- Shockwave.BottomSurface = 0
- Shockwave.CFrame = parent.CFrame *CFrame.new(0,0,(-mag))
- local rngm2 = Instance.new("SpecialMesh", Shockwave)
- rngm2.Scale = Vector3.new(size, size, size)
- rngm2.Offset = Vector3.new(0,0,0)
- rngm2.MeshType = "Sphere"
- spawn(function()
- wait(0.4)
- for i = 1, 10 do
- rngm2.Scale = Vector3.new(size - i*(size/10),size - i*(size/10),size - i*(size/10))
- swait()
- end
- wait()
- Shockwave:Destroy()
- end)
- local Laser = Instance.new("Part",Torso)
- Laser.Name = "MagicCircle"
- Laser.Shape = Enum.PartType.Cylinder
- Laser.CanCollide = false
- Laser.Color = color
- Laser.Transparency = 0
- Laser.Anchored = true
- Laser.Material = "Neon"
- Laser.Size = Vector3.new(1 * mag,size, size)
- Laser.TopSurface = Enum.SurfaceType.Smooth
- Laser.BottomSurface = Enum.SurfaceType.Smooth
- Laser.CFrame = parent.CFrame *CFrame.new(0,0,(-mag)/2) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
- Laser.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait()
- padebounce = true
- end
- end
- end
- end)
- spawn(function()
- e = size
- wait(0.4)
- for i = 1,10 do
- e = e - (size/10)
- Laser.Size = Vector3.new(1 * mag,e, e)
- swait()
- end
- Laser:Destroy()
- end)
- end
- local mp = Instance.new("Part",Effects)
- mp.CanCollide = false
- mp.Name = "Point X"
- mp.Transparency = 1
- mp.Size = Vector3.new(1, 1, 1)
- Point = Instance.new("BodyGyro")
- Point.Parent = mp
- Point.D = 175
- Point.P = 200000
- Point.MaxTorque = Vector3.new(0,400000000,0)
- local mp2 = Instance.new("Part",Effects)
- mp2.CanCollide = false
- mp2.Name = "Point XYZ"
- mp2.Transparency = 1
- mp2.Size = Vector3.new(1, 1, 1)
- Point2 = Instance.new("BodyGyro")
- Point2.Parent = mp2
- Point2.D = 175
- Point2.P = 200000
- Point2.MaxTorque = Vector3.new(400000000,400000000,400000000)
- local mousep = nil
- local pos = Instance.new("BodyPosition",mp)
- pos.D = 1250
- pos.P = 200000
- pos.MaxForce = Vector3.new(4000000000, 4000000000, 4000000000)
- local pos2 = Instance.new("BodyPosition",mp2)
- pos2.D = 1250
- pos2.P = 200000
- pos2.MaxForce = Vector3.new(4000000000, 4000000000, 4000000000)
- coroutine.wrap(function()
- while true do
- mousep = mouse.Hit.p
- Point.cframe = CFrame.new(rootPart.Position,Mouse.Hit.Position)
- pos.Position = rootPart.Position + Vector3.new(0,0,0)
- Point2.cframe = CFrame.new(rootPart.Position,Mouse.Hit.Position)
- pos2.Position = rootPart.Position + Vector3.new(0,0,0)
- swait()
- end
- end)()
- function GasterBlaster(position,x1,y1,z1,size,lasercolor,lasersize,pitch1,pitch2,x2,y2,z2)
- local GasterB = Instance.new("Part",Effects)
- GasterB.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait(.2)
- padebounce = true
- end
- end
- end
- end)
- GasterB.CFrame = rootPart.CFrame
- GasterB.CanCollide = false
- GasterB.Material = "SmoothPlastic"
- GasterB.BrickColor = BrickColor.new("White")
- local zxc = Instance.new("SpecialMesh",GasterB)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(1, 1, 1)
- zxc.MeshId = "rbxassetid://2649585735"
- spawn(function()
- local GBPoint = Instance.new("BodyGyro")
- GBPoint.Parent = GasterB
- GBPoint.D = 20000
- GBPoint.P = 2000000000
- GBPoint.MaxTorque = Vector3.new(x2,y2,z2)
- local Fire = Instance.new("Sound",GasterB)
- local Charge = Instance.new("Sound",GasterB)
- local GBLoc = Instance.new("BodyPosition",GasterB)
- GBLoc.D = 2000
- GBLoc.P = 200000
- GBLoc.MaxForce = Vector3.new((math.huge), (math.huge), (math.huge))
- Charge.SoundId = "rbxassetid://482211201"
- Charge.Volume = 1
- Charge.Pitch = pitch1
- Charge.PlayOnRemove = true
- Charge:Destroy()
- local x = x1
- local y = y1
- local z = z1
- local c = 0
- local posit = position
- for i = 1,20 do
- c = c + (size/20)
- GBPoint.cframe = CFrame.new(GasterB.Position,posit)
- zxc.Scale = Vector3.new(c, c, c)
- GBLoc.Position = posit + Vector3.new(x,y,z)
- swait()
- end
- for i = 1,40 do
- GBLoc.Position = posit + Vector3.new(x,y,z)
- swait()
- end
- GasterB.Anchored = true
- zxc.MeshId = "rbxassetid://2649597177"
- swait()
- zxc.MeshId = "rbxassetid://2649610132"
- swait()
- Fire.SoundId = "rbxassetid://340722848"
- Fire.Volume = 1
- Fire.PlayOnRemove = true
- Fire.Pitch = pitch2
- Fire:Destroy()
- Beam2(GasterB,lasercolor,lasersize,posit)
- zxc.MeshId = "rbxassetid://2649605211"
- swait()
- zxc.MeshId = "rbxassetid://2649590388"
- wait(0.5)
- local t = size
- for i = 1,20 do
- t = t - (size/20)
- zxc.Scale = Vector3.new(t, t, t)
- GasterB.CFrame = GasterB.CFrame*CFrame.new(0,0,5)
- swait()
- end
- GasterB:Destroy()
- end)
- end
- padebounce = false
- debounce = true
- function BoneObstacle()
- rapid2 = true
- local bonehit2nd = Instance.new("Sound",mp)
- bonehit2nd.SoundId = "rbxassetid://401680588"
- bonehit2nd.Volume = 0.2
- bonehit2nd:Play()
- while rapid2 == true and wait(0.05) do
- if Character.HumanoidRootPart.Velocity.y < 1 and hitfloor == nil then
- for i = 1,4 do
- local bone = Instance.new("Part",Character)
- bone.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait()
- padebounce = true
- end
- end
- end
- end)
- bone.CanCollide = false
- bone.Material = "SmoothPlastic"
- bone.BrickColor = BrickColor.new("White")
- bone.Anchored = true
- bone.CFrame = (mp.CFrame + Vector3.new(math.random(-25,25),-8,math.random(-25,25))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(0)),math.random(0,math.rad(0)),math.random(0,math.rad(0)))
- local zxc = Instance.new("SpecialMesh",bone)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(0.03, 0.03, 0.03)
- zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
- wait()
- local gdisp = coroutine.wrap(function()
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,1,0)
- swait()
- end
- local bonehit3nd = Instance.new("Sound",mp)
- bonehit3nd.SoundId = "rbxassetid://306247749"
- bonehit3nd.Volume = 1
- bonehit3nd:Play()
- wait(0.2)
- for i = 1,240 do
- bone.CFrame = bone.CFrame*CFrame.new(0,0,-1)
- bone.Transparency = i/240
- swait()
- end
- bone:Destroy()
- end)
- gdisp()
- end
- end
- end
- end
- function BoneProjectile()
- rapid = true
- while rapid == true and wait(0.1) do
- local bone = Instance.new("Part",Character)
- bone.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait()
- padebounce = true
- end
- end
- end
- end)
- bone.CFrame = mp2.CFrame
- bone.CanCollide = false
- bone.Material = "SmoothPlastic"
- bone.BrickColor = BrickColor.new("White")
- bone.Anchored = true
- bone.CFrame = (mp2.CFrame + Vector3.new(math.random(-50,50)/10,math.random(20,40)/10,math.random(-50,50)/10)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.random(0,math.rad(0)),math.random(0,math.rad(0)))
- local zxc = Instance.new("SpecialMesh",bone)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(0.01, 0.01, 0.01)
- zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
- wait()
- Pointing()
- local gdisp = coroutine.wrap(function()
- coroutine.wrap(function()
- for i = 1,30 do
- local fx = Instance.new("Part",Effects)
- fx.Anchored = true
- fx.Color = Color3.new(0,0.6,0.5)
- fx.CanCollide = false
- fx.FormFactor = 3
- fx.Name = "Shockwave"
- fx.Material = "Neon"
- fx.Size = Vector3.new(1, 1, 1)
- fx.Transparency = 0.35
- fx.TopSurface = 0
- fx.BottomSurface = 0
- fx.CFrame = bone.CFrame
- fx.CFrame = fx.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-3600,3600)/10),math.rad(math.random(-360,-360)/10),math.rad(math.random(-3600,3600)/10))
- local fxm = Instance.new("SpecialMesh", fx)
- fxm.Scale = Vector3.new(0,0,0)
- fxm.Offset = Vector3.new(0,0,0)
- fxm.MeshType = "Sphere"
- spawn(function()
- for i = 1, 15, 1 do
- fxm.Scale = Vector3.new(0.25 - i*0.00416,.5 - i*0.0083 ,0.25 - i*0.00416)
- fx.CFrame = fx.CFrame * CFrame.new(0,0.5,0)
- fx.Transparency = i/15
- swait()
- end
- wait()
- fx:Destroy()
- end)
- end
- end)()
- local bonehit3nd = Instance.new("Sound",mp)
- bonehit3nd.SoundId = "rbxassetid://306247749"
- bonehit3nd.Volume = 1
- bonehit3nd:Play()
- for i = 1,120 do
- bone.CFrame = bone.CFrame*CFrame.new(0,1.5,0)
- bone.Transparency = i/120
- local fx = Instance.new("Part",Effects)
- fx.Anchored = true
- fx.Color = Color3.new(0,0.6,0.5)
- fx.CanCollide = false
- fx.FormFactor = 3
- fx.Name = "Shockwave"
- fx.Material = "Neon"
- fx.Size = Vector3.new(1, 1, 1)
- fx.Transparency = 0.35
- fx.TopSurface = 0
- fx.BottomSurface = 0
- fx.CFrame = bone.CFrame
- fx.CFrame = fx.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-3600,3600)/10),math.rad(math.random(-360,-360)/10),math.rad(math.random(-3600,3600)/10))
- local fxm = Instance.new("SpecialMesh", fx)
- fxm.Scale = Vector3.new(0,0,0)
- fxm.Offset = Vector3.new(0,0,0)
- fxm.MeshType = "Sphere"
- spawn(function()
- for i = 1, 15, 1 do
- fxm.Scale = Vector3.new(0.25 - i*0.00416,0.25 - i*0.00416,0.25 - i*0.00416)
- fx.Transparency = i/15
- swait()
- end
- wait()
- fx:Destroy()
- end)
- swait()
- end
- bone:Destroy()
- end)
- gdisp()
- end
- end
- function BoneRise()
- local rng3 = Instance.new("Part",Effects)
- rng3.Anchored = true
- rng3.Color = Color3.new(1,0,0)
- rng3.CanCollide = false
- rng3.Material = "Neon"
- rng3.FormFactor = 3
- rng3.Name = "Shockwave"
- rng3.Size = Vector3.new(1, 1, 1)
- rng3.Transparency = 0
- rng3.TopSurface = 0
- rng3.BottomSurface = 0
- rng3.CFrame = CFrame.new(mousep) * CFrame.new(0,-0.45,0)
- local rngm3 = Instance.new("SpecialMesh", rng3)
- rngm3.Scale = Vector3.new(0, 0, 0)
- rngm3.Offset = Vector3.new(0,0.5,0)
- rngm3.MeshType = "Sphere"
- spawn(function()
- for i = 1, 20 do
- rngm3.Scale = Vector3.new(6 + i*0.25,0.01,6 + i*0.25)
- rng3.Transparency = rng3.Transparency + 0.025
- swait()
- end
- wait(0.2)
- for i = 1, 10 do
- rngm3.Scale = Vector3.new(11 - i*0.25,0.01 + i*2,11 - i*0.25)
- rng3.Transparency = rng3.Transparency + 0.05
- swait()
- end
- wait()
- rng3:Destroy()
- end)
- local bonehit2nd = Instance.new("Sound",rng3)
- bonehit2nd.SoundId = "rbxassetid://401680588"
- bonehit2nd.Volume = 0.2
- bonehit2nd:Play()
- for i = 1,20 do
- local bone = Instance.new("Part",Character)
- bone.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait(.2)
- padebounce = true
- end
- end
- end
- end)
- bone.CanCollide = false
- bone.Material = "SmoothPlastic"
- bone.BrickColor = BrickColor.new("White")
- bone.Anchored = true
- bone.CFrame = CFrame.new(mousep) * CFrame.new(math.random(-10,10)/10,-8,math.random(-10,10)/10) * CFrame.fromEulerAnglesXYZ(math.random(-5,5)/10,math.random(-5,5)/10,math.random(-5,5)/10)
- local zxc = Instance.new("SpecialMesh",bone)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(0.03, 0.03, 0.03)
- zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
- local gdisp = coroutine.wrap(function()
- local bonehit3nd = Instance.new("Sound",bone)
- wait(0.8)
- bonehit3nd.SoundId = "rbxassetid://306247749"
- bonehit3nd.Volume = 1
- bonehit3nd:Play()
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,1.8,0)
- swait()
- end
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,-0.1,0)
- swait()
- end
- wait(0.8)
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,-0.8,0)
- swait()
- end
- bone:Destroy()
- end)
- gdisp()
- end
- end
- function GBShoot()
- rapid3 = true
- while rapid3 == true and wait(0.2) do
- local GasterB = Instance.new("Part",Effects)
- GasterB.Touched:connect(function(hit)
- if hit.Parent == Character then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- v.Health = v.Health-0
- wait(.2)
- padebounce = true
- end
- end
- end
- end)
- GasterB.CFrame = rootPart.CFrame
- GasterB.CanCollide = false
- GasterB.Material = "SmoothPlastic"
- GasterB.BrickColor = BrickColor.new("White")
- local zxc = Instance.new("SpecialMesh",GasterB)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(1, 1, 1)
- zxc.MeshId = "rbxassetid://2649585735"
- Pointing()
- spawn(function()
- local GBPoint = Instance.new("BodyGyro")
- GBPoint.Parent = GasterB
- GBPoint.D = 2000
- GBPoint.P = 2000000
- GBPoint.MaxTorque = Vector3.new(400000000,400000000,400000000)
- local Fire = Instance.new("Sound",GasterB)
- local Charge = Instance.new("Sound",GasterB)
- local GBLoc = Instance.new("BodyPosition",GasterB)
- GBLoc.D = 2000
- GBLoc.P = 200000
- GBLoc.MaxForce = Vector3.new(40000, 40000, 40000)
- Charge.SoundId = "rbxassetid://482211201"
- Charge.Volume = 1
- Charge.PlayOnRemove = true
- Charge:Destroy()
- local x = math.random((math.random(-250,-200)),(math.random(200,250)))/10
- local y = (math.random(30,60)/10)
- local z = math.random((math.random(-250,-200)),(math.random(200,250)))/10
- local c = 0
- local posit = rootPart.Position
- for i = 1,15 do
- c = c + 0.1
- zxc.Scale = Vector3.new(c, c, c)
- GBPoint.cframe = CFrame.new(GasterB.Position,Mouse.Hit.Position)
- GBLoc.Position = posit + Vector3.new(x,y,z)
- swait()
- end
- for i = 1,20 do
- GBPoint.cframe = CFrame.new(GasterB.Position,Mouse.Hit.Position)
- GBLoc.Position = posit + Vector3.new(x,y,z)
- swait()
- end
- GasterB.Anchored = true
- zxc.MeshId = "rbxassetid://2649597177"
- swait()
- zxc.MeshId = "rbxassetid://2649610132"
- swait()
- Fire.SoundId = "rbxassetid://340722848"
- Fire.Volume = 5
- Fire.PlayOnRemove = true
- Fire:Destroy()
- Beam(GasterB,Color3.new(1,1,1),5)
- zxc.MeshId = "rbxassetid://2649605211"
- swait()
- zxc.MeshId = "rbxassetid://2649590388"
- wait(1)
- local t = 1.5
- for i = 1,20 do
- t = t - 0.075
- zxc.Scale = Vector3.new(t, t, t)
- GasterB.CFrame = GasterB.CFrame*CFrame.new(0,0,5)
- swait()
- end
- GasterB:Destroy()
- end)
- end
- end
- function RandomGBs()
- local r = math.random(1,6)
- local location = mouse.Hit.p
- if r == 1 then
- GasterBlaster(location,35,3.5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-35,3.5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,3.5,-35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,20,3.5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,3.5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,3.5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,20,3.5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- elseif r == 2 then
- GasterBlaster(location,35,3.5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-35,3.5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,3.5,-35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- elseif r == 3 then
- GasterBlaster(location,20,3.5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,3.5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,20,3.5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- elseif r == 4 then
- GasterBlaster(location,0,8,40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,0,8,-40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- elseif r == 5 then
- GasterBlaster(location,40,8,0,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,-40,8,0,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- elseif r == 6 then
- GasterBlaster(location,0,8,40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,0,8,-40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,40,8,0,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,-40,8,0,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- end
- end
- function ArrangedGBs()
- debouncing = true
- local location = mouse.Hit.p
- GasterBlaster(location,20,5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,20,5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- wait(1)
- GasterBlaster(location,35,5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-35,5,0,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,-35,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- wait(1)
- GasterBlaster(location,20,5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- GasterBlaster(location,20,5,-20,1.5,Color3.new(1,1,1),2,1,1,0,(math.huge),0)
- wait(1)
- GasterBlaster(location,35,5,0,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,-35,5,0,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,35,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,-35,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,20,5,20,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,-20,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,-20,5,20,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- GasterBlaster(location,20,5,-20,1.5,Color3.new(1,1,1),1,1,1,0,(math.huge),0)
- wait(1)
- GasterBlaster(location,0,5,40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- GasterBlaster(location,0,5,-40,3,Color3.new(1,1,1),12,1,1,0,(math.huge),0)
- wait(1)
- debouncing = false
- end
- function Grab()
- grabbing = true
- local hit = mouse.Target
- if hit.Parent == Character then return end
- S = Instance.new("Sound")
- S.Parent = hit.Parent.Torso
- S.SoundId = "rbxassetid://548991605"
- S.Volume = 10
- S.Looped = false
- S.Pitch = 1
- S:Play()
- local GUI = Instance.new("BillboardGui",hit.Parent.HumanoidRootPart)
- GUI.Size = UDim2.new(2,0,2,0)
- GUI.MaxDistance = "inf"
- GUI.AlwaysOnTop = true
- GUI.ExtentsOffset = Vector3.new(0,0,0)
- local Body = Instance.new("ImageLabel",GUI)
- Body.Position = UDim2.new(0,0,0,0)
- Body.Image = "rbxassetid://338425795"
- Body.BackgroundTransparency = 1
- Body.ImageTransparency = 0
- Body.Size = UDim2.new(1,0,1,0)
- local grabfire = Instance.new("Fire",hit.Parent.HumanoidRootPart)
- grabfire.Size = 2
- grabfire.Heat = 0
- grabfire.Color = Color3.new(0,0,255)
- grabfire.SecondaryColor = Color3.new(0,250,255)
- local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- coroutine.resume(coroutine.create(function()
- repeat
- Expression.Texture = "rbxassetid://4484422735"
- wait()
- Expression.Texture = "rbxassetid://4484448817"
- until grabbing == false
- end))
- while grabbing == true do
- bodyp.Position= mouse.Hit.p
- swait()
- end
- Expression.Texture = "rbxassetid://4484405390"
- grabfire:Destroy()
- bodyp:Destroy()
- GUI:Destroy()
- end
- dodging = false
- candodge = true
- canblock = false
- blocking = false
- talking = false
- dialogue = 1
- dialogue2 = 1
- speech2 = {"i gotta say, i don't really understand why you're doing this.", "especially when you could've taken a greener path.", --1,2
- "you may not even have a reason to begin with anymore.", "you are probably doing it for kicks and giggles at this point.", --3, 4
- "speaking of which...", "your face... is a little unpleasant to look at.", "you're kind of a freak, y'know?", --5,6,7
- "y'know, looking back at it now...", "it seems like ive spent most of my life in this very place.", "it's not like i had any choice either.", "seeing what came next, i couldn't afford not to care anymore.", --8,9,10
- "but it seems as if it's not even a surprise anymore...", "after all, our lives are basically at your disposal.", --11,12
- "like as if we're puppets or somethin'.", "it's like our lives don't even matter to you.", "we're, uh, more than just punching bags y'know?", --13, 14, 15
- "what if someone else had your abilities?", "would they be as twisted as you are?", "would they try to find a more peaceful way to deal with everything?", "hell if i know.", --16, 17, 18
- "look kid.", "i tried to be good even with your actions.", "but i did not see any sign of good in you.", -- 19, 20, 21
- "kids your age would probably play with their friends outside.", "however, the only thing that sticks with you is that weapon.", "...", "you may have a sharp aim, but you dont have such a sharp mind.", -- 22, 23, 24, 25
- "hey, I always wondered...", "why do we even give ya the chance to dodge our attacks anyway?", "just think about it!", "everything would've been way easier if I just cornered you somewhere.", "and kill you right where you stood.", "but its not like i didnt try killing you before, did i?", "well, it doesn't really matter.", -- 26, 27, 28, 29, 30, 31, 32 (7 lines)
- "is this the only time i have talked to you about this?", "come to think of it, if i got this information from 'g' this time..", "it could probably happen again.", "hey, i don't know for sure but...", "whats stopping it from happening once again?", -- 33, 34, 35, 36, 37
- "...", "this is why i never make promises, old lady.", "because i can never guarantee i can keep that promise in the first place.", -- 38, 39, 40
- "you made a big mistake by even coming here.", "again, there is no reward.", "reaching the end will bring you nothing too exciting.", "it would be easier for the both of us if you just give up.", -- 41, 42, 43, 44
- "you're really just wasting your time at this point.", "give up. there is nothing interesting after this.", --45, 46
- "i mean it, kid. there is nothing after this.", "don't go any further.", "unless you want to see what comes next, of course.", "it comes with a risk, i'll assure that.", --47, 48, 49, 50
- "of course. you never give up.", "after all, you didn't come this far by giving up", "it's a shame that you're so determined to do such crimes.", "...", "actually, crime is a bit of an understatement for what you have done.",--51, 52, 53, 54, 55
- "*huff* ...", "this is taking a little longer than I wanted it to.", "anyways, kid. are you prepared for what comes next?", "are you ready for one of the hardest times you ever had in a battle?", "ready or not, i don't care.", "survive this turn, and, well...", "you're gonna find out for yourself.",--56, 57, 58, 59, 60, 61, 62 (7 lines)
- "*huff* ... *puff* ...", "huh? you're not dead yet, are you?", "i shouldn't be surprised.", "oh well, are you ready for what is coming now?", "i promise it won't be pleasant, and it won't be quick either.", "not like i care anyway.", "well... here goes nothing.", "oh, and one more thing...", "YOU ASKED FOR IT."--63,64,65,66,67,68,69,70,71 (9 lines)
- }
- speech = {"what? you think i'm just gonna stand there and take it?", --1
- "our reports stated a massive anomaly in the timespace continuum.", --2
- "timelines jumping left and right, stopping and starting...", --3
- "until suddenly, everything ends.", --4, 5
- "heh heh heh...", "that's your fault, isn't it?", --6, 7
- "you can't understand how this feels.",--8
- "knowing that one day, without any warning...", "it's all going to be reset.", --9, 10
- "look. i gave up trying to go back a long time ago.", -- 11
- "and getting to the surface doesn't really appeal anymore, either.", -- 12
- "cause even if we did...", "we'll just end up right back here, without any memory of it, right?", --13
- "to be blunt,", "it makes it kind of hard to give it my all.", -- 14, 15
- "... or is that just a poor excuse for being lazy..?", "hell if i know.", -- 16, 17
- "all i know is... seeing what comes next...", "i can't afford not to care anymore.", -- 18,19
- "ugh... that being said...", "you, uh, really like swinging that thing around, huh?", "...", "listen.", "friendship...", "it's really great, right?", "let's quit fighting.", -- 20, 21, 22, 23, 24, 25, 26
- "welp, it was worth a shot.", "guess you like doing things the hard way, huh?", --27,28
- "sounds strange, but before all this i was secretly hoping we could be friends.", --29
- "i always thought the anomaly was doing this cause they were unhappy.", --30
- "and when they got what they wanted, they would stop all this.", --31
- "and maybe all they needed was, i dunno...", --32
- "some good food, some bad laughs, some nice friends.", --33
- "but thats ridiculous, right?", --34
- "yeah, you're the type of person who won't EVER be happy.", --35
- "you'll keep consuming timelines over and over, until...", --36
- "well, hey, take it from me, kid.", --37
- "you gotta learn when to QUIT.", --38
- "and that day's TODAY.", --39
- "cause... y'see..", --40
- "all this fighting is really tiring me out.",--41
- "and if you keep pushing me...",--42
- "then i'll be forced to use my special attack.",--43
- "yeah, my special attack, sound familiar?",--44
- "well, get ready. cause after the next move, i'm going to use it.",--45
- "so, if you don't wanna see it, now would be a good time to die.",--46
- "well, here goes nothing...", "are you ready?", "survive THIS, and i'll show you my special attack!", --47,48,49
- "huff, puff..", "all right. that's it.", "it's time for my special attack.", "are you ready?", "here goes nothing.", --50,51,52,53,54,55
- "yep.", "that's right.", "it's literally nothing.", "and it's not gonna be anything, either.", "heh heh heh... you get it?", "i know i can't beat you.", "one of your turns...", "you're just gonna kill me.", "so, uh, i've decided,", "it's not gonna BE your turn, ever.", "i'm just gonna keep having MY turn until you give up.", "even if it means we have to stand here until the end of time.", "capiche?", --56,57,58,59,60,61,62,63,64,65,66,67,68 (aka 13 lines of dialogue)
- "",}
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("textboard")~= nil then
- Character:FindFirstChild("textboard"):destroy()
- end
- if Character:FindFirstChild("glitchboard")~= nil then
- Character:FindFirstChild("glitchboard"):destroy()
- end
- local textboard = Instance.new("BillboardGui")
- textboard.Name = "textboard"
- textboard.Enabled = false
- textboard.Active = true
- textboard.ExtentsOffset = Vector3.new(0, 2, 0)
- textboard.AlwaysOnTop = true
- textboard.Size = UDim2.new(5.8000002, 0, 2.8, 0)
- textboard.ClipsDescendants = true
- textboard.MaxDistance = 300
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.BorderColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BorderSizePixel = 3
- TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.FontSize = Enum.FontSize.Size32
- TextLabel.TextSize = 30
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Text = "Hey, what do you think you're doing!?"
- TextLabel.TextWrap = true
- TextLabel.Font = Enum.Font.Arcade
- TextLabel.TextWrapped = true
- TextLabel.TextStrokeColor3 = Color3.fromRGB(35, 8, 172)
- TextLabel.TextScaled = true
- TextLabel.Parent = textboard
- local naeeym2 = textboard:Clone()
- naeeym2.Parent = Character
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Enabled = true
- local naeeym3 = glitchboard:Clone()
- naeeym3.Parent = Character
- naeeym3.StudsOffset = Vector3.new(0,3,0)
- naeeym3.Adornee = Character.Head
- naeeym3.Enabled = true
- local tecks2 = naeeym2.TextLabel
- tecks2.Text = ""
- for i = 1,string.len(text),1 do
- local heh = CreateSound("2469886818", Head, 5, 1)
- tecks2.Text = string.sub(text,1,i)
- if i ~= string.len(text) then
- local ADD = string.sub(text,i,i)
- if ADD == "." or ADD == "?" or ADD == "!" then
- wait(0.4)
- elseif ADD == "," then
- wait(0.2)
- else
- end
- end
- wait(0.01)
- end
- wait(2)
- naeeym2:Destroy()
- naeeym3:Destroy()
- end)
- chat()
- end
- local skipnum = 1
- local nochat = false
- local MSG = textboard
- function onChatted(msg)
- if string.sub(string.lower(msg), 1, 3) == "/e " then
- msg = string.sub(msg, 4)
- nochat = true
- wait(1)
- nochat = false
- end
- if string.sub(string.lower(msg), 1, 5) == "skip/" then
- MSG = string.sub(msg, 6)
- if MSG == "0" then
- print("You can't do that.")
- else
- skipnum = MSG
- dialogue = skipnum
- print(dialogue)
- end
- end
- if nochat == false then
- chatfunc("* "..msg)
- end
- end
- Player.Chatted:connect(onChatted)
- function WWeld(a, b, acf)
- local we = Instance.new("Weld", a)
- we.Part0 = a
- we.Part1 = b
- if acf ~= nil then
- we.C0 = acf
- end
- return we
- end
- local Bbone = Instance.new("Part",Character)
- Bbone.CanCollide = false
- Bbone.Material = "SmoothPlastic"
- Bbone.BrickColor = BrickColor.new("White")
- Bbone.Anchored = false
- Bbone.Transparency = 1
- local BoneHandle = WWeld(Bbone,Left_Arm,CFrame.new(0,-0.98,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)))
- local zxc = Instance.new("SpecialMesh",Bbone)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(0.012, 0.012, 0.012)
- zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
- function blocked()
- Animations = true
- coroutine.wrap(function()
- for i = 1,30 do
- Bbone.Transparency = Bbone.Transparency - 0.034
- local fx = Instance.new("Part",Effects)
- fx.Anchored = true
- fx.Color = Color3.new(0,0.6,0.5)
- fx.CanCollide = false
- fx.FormFactor = 3
- fx.Name = "Shockwave"
- fx.Material = "Neon"
- fx.Size = Vector3.new(1, 1, 1)
- fx.Transparency = 0.35
- fx.TopSurface = 0
- fx.BottomSurface = 0
- fx.CFrame = Bbone.CFrame
- fx.CFrame = fx.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-3600,3600)/10),math.rad(math.random(-360,-360)/10),math.rad(math.random(-3600,3600)/10))
- local fxm = Instance.new("SpecialMesh", fx)
- fxm.Scale = Vector3.new(0,0,0)
- fxm.Offset = Vector3.new(0,0,0)
- fxm.MeshType = "Sphere"
- spawn(function()
- for i = 1, 15, 1 do
- fxm.Scale = Vector3.new(0.25 - i*0.00416,.5 - i*0.0083 ,0.25 - i*0.00416)
- fx.CFrame = fx.CFrame * CFrame.new(0,0.5,0)
- fx.Transparency = i/15
- swait()
- end
- wait()
- fx:Destroy()
- end)
- end
- end)()
- for i = 0,0.08,0.01 do
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(90),math.rad(-90),math.rad(0)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(-10)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0),math.rad(0),math.rad(10)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 - math.sin(sine/15)/15, 0) * c_angles(math.rad(-10),math.rad(0), math.rad(0)), 0.15)
- swait()
- end
- wait(0.5)
- Bbone.Transparency = 1
- Animations = false
- end
- function miss()
- Animations = true
- local number = math.random(1,3)
- if number == 1 then
- for i = 0,0.08,0.01 do
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(-120)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(120)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(-5 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, -5) * c_angles(math.rad(17) + math.sin(sine/15)/10, math.rad(20),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(-20), math.rad(0) + math.sin(sine/15)/4), Sanim)
- end
- elseif number == 2 then
- for i = 0,0.08,0.01 do
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(-5 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, -5) * c_angles(math.rad(17) + math.sin(sine/15)/10, math.rad(20),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(-20), math.rad(0) + math.sin(sine/15)/4), Sanim)
- end
- elseif number == 3 then
- for i = 0,0.08,0.01 do
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(5 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, 5) * c_angles(math.rad(17) + math.sin(sine/15)/10, math.rad(-20),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(20), math.rad(0) + math.sin(sine/15)/4), Sanim)
- end
- end
- Animations = false
- end
- specialattack = false
- function block()
- if blocking == true then
- talking = false
- else
- talking = true
- end
- blocking = true
- coroutine.resume(coroutine.create(function()
- if talking == true then
- if dialogue2 ~= 1 and dialogue2 ~= 3 and dialogue2 ~= 5 and dialogue2 ~= 8 and dialogue2 ~= 11 and dialogue2 ~= 13 and dialogue2 ~= 16 and dialogue2 ~= 19 and dialogue2 ~= 19 and dialogue2 ~= 22 and dialogue2 ~= 26 and dialogue2 ~= 33 and dialogue2 ~= 38 and dialogue2 ~= 41 and dialogue2 ~= 45 and dialogue2 ~= 47 and dialogue2 ~= 50 and dialogue2 ~= 55 and dialogue2 ~= 63 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 1 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 3 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 5 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 8 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 11 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 13 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 16 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 19 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 22 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 26 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 33 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 38 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 41 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 45 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 47 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 50 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 55 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- blocking = false
- elseif dialogue2 == 63 then
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(3)
- chatfunc(speech2[dialogue2])
- dialogue2 = dialogue2 + 1
- wait(5)
- canblock = false
- end
- end
- end))
- blocked()
- end
- function dodge()
- if dodging == true then
- talking = false
- else
- talking = true
- end
- dodging = true
- coroutine.resume(coroutine.create(function()
- if talking == true then
- if dialogue ~= 20 and dialogue ~= 27 and dialogue ~= 43 and dialogue ~= 44 and dialogue ~= 47 and dialogue ~= 50 then
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(5)
- dodging = false
- elseif dialogue == 20 then
- themeMoos:Pause()
- themeMoos2:Play()
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(4)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(6)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- bosschatfunc("* Sans is sparing you.",BrickColor.new("Institutional white").Color,120)
- wait(5)
- dodging = false
- elseif dialogue == 27 then
- themeMoos2:Stop()
- themeMoos:Resume()
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(4)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(8)
- dodging = false
- elseif dialogue == 43 then
- script.textboard.TextLabel.TextColor3 = Color3.new(255,0,0)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- script.textboard.TextLabel.TextColor3 = Color3.new(255,255,255)
- wait(5)
- dodging = false
- elseif dialogue == 44 then
- script.textboard.TextLabel.TextColor3 = Color3.new(255,0,0)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(6)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(6)
- script.textboard.TextLabel.TextColor3 = Color3.new(255,255,255)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(5)
- dodging = false
- elseif dialogue == 47 then
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(4)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- script.textboard.TextLabel.TextColor3 = Color3.new(255,0,0)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- script.textboard.TextLabel.TextColor3 = Color3.new(255,255,255)
- wait(5)
- dodging = false
- elseif dialogue == 50 then
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- script.textboard.TextLabel.TextColor3 = Color3.new(255,0,0)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- script.textboard.TextLabel.TextColor3 = Color3.new(255,255,255)
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- specialattack = true
- wait(5)
- candodge = false
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- chatfunc(speech[dialogue])
- dialogue = dialogue + 1
- wait(3)
- end
- end
- end))
- miss()
- end
- mouse.Button1Down:connect(function()
- Grab()
- end)
- mouse.Button1Up:connect(function()
- grabbing = false
- end)
- mouse.KeyUp:connect(function(key)
- if key == "f" then
- rapid2 = false
- end
- if key == "r" then
- rapid = false
- end
- if key == "q" and debounce == true then
- rapid3 = false
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- BoneObstacle()
- end
- if key == "e" then
- teleport()
- end
- if key == "l" and Death == false then
- print("no")
- end
- if key == "p" and Death2 == false then
- print("no")
- end
- if key == "z" then
- print("no")
- end
- if key == "r" then
- BoneProjectile()
- end
- if key == "c" then
- BoneRise()
- end
- if key == "x" then
- idle = 2500
- end
- if key == "q" and debounce == true then
- GBShoot()
- end
- if key == "g" and debounce == true then
- RandomGBs()
- end
- if key == "v" and debounce == true and debouncing == false then
- ArrangedGBs()
- end
- end)
- coroutine.wrap(function()
- while true do
- if currentAnim == "Idling" and attack == false and attack2 == false then
- idle=idle+1
- swait()
- else
- idle=idly
- swait()
- end
- end
- end)()
- local candie = false
- local Zzz = Instance.new("ParticleEmitter",Head)
- Zzz.EmissionDirection = "Left"
- Zzz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
- Zzz.LightEmission = 1
- Zzz.Rate = 1
- Zzz.ZOffset = 1
- Zzz.Lifetime = NumberRange.new(2)
- Zzz.Speed = NumberRange.new(2)
- Zzz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6, 0.3), NumberSequenceKeypoint.new(1, 0.2, 0.1)})
- Zzz.Rotation = NumberRange.new(0, 0)
- Zzz.RotSpeed = NumberRange.new(30, 30)
- Zzz.Texture = "http://www.roblox.com/asset/?id=386098098"
- Zzz.Color = ColorSequence.new(Color3.new(1,1,1),Color3.new(1,1,1))
- Zzz.VelocitySpread = 360
- Zzz.LockedToPart = false
- Zzz.Acceleration = Vector3.new(0,5,0)
- Zzz.Enabled = false
- local Shields = Instance.new("Folder", Character)
- Shields.Name = "workspace"
- teleporting = false
- restriction = false
- coroutine.wrap(function()
- while true and wait() do
- if dedebounce == false and attack == false then
- if idle >= 2500 then
- Sanim = 0.005
- Expression.Texture = "rbxassetid://4484446057"
- themeMoos.Volume = 0
- if specialattack == true and candodge == false then
- specialattack = false
- Shields:FindFirstChild("Shield"):Destroy()
- end
- Zzz.Enabled = true
- elseif idle >= 1500 and idle < 2500 and Death == false and Death2 == false then
- Sanim = 0.01
- themeMoos.Volume = 3
- themeMoos.PlaybackSpeed = 0.5
- Expression.Texture = "rbxassetid://4484447540"
- elseif idle == idly and Death == false and Death2 == false then
- Zzz.Enabled = false
- if specialattack == false and candodge == false then
- specialattack = true
- end
- Expression.Texture = "rbxassetid://4484405390"
- themeMoos.Volume = 5
- Sanim = 0.025
- themeMoos.PlaybackSpeed = 1
- elseif idle >= 1500 and idle < 2500 and Death == true and Death2 == false then
- Sanim = 0.01
- themeMoos.Volume = 3
- themeMoos.PlaybackSpeed = 0.5
- Expression.Texture = "rbxassetid://1371827222"
- elseif idle == idly and Death == true and Death2 == false then
- Zzz.Enabled = false
- Expression.Texture = "rbxassetid://4899271236"
- themeMoos.Volume = 5
- Sanim = 0.025
- themeMoos.PlaybackSpeed = 1
- elseif idle >= 1500 and idle < 2500 and Death2 == true then
- Sanim = 0.01
- themeMoos.Volume = 3
- themeMoos.PlaybackSpeed = 0.5
- Expression.Texture = "rbxassetid://1371827222"
- elseif idle == idly and Death2 == true then
- Zzz.Enabled = false
- Expression.Texture = "rbxassetid://4239634623"
- themeMoos.Volume = 5
- Sanim = 0.025
- themeMoos.PlaybackSpeed = 1
- end
- end
- end
- end)()
- local respawning = false
- local Deaths = 1
- function refit()
- rootJoint.Parent = rootPart
- Neck.Parent = Torso
- Right_Shoulder.Parent = Torso
- Left_Shoulder.Parent = Torso
- Right_Hip.Parent = Torso
- Left_Hip.Parent = Torso
- rootPart.Parent = Character
- Left_Arm.Parent = Character
- Right_Arm.Parent = Character
- LA_Weld.Parent = Left_Arm
- RA_Weld.Parent = Right_Arm
- Torso_Weld.Parent = Torso
- Head_Weld.Parent = Head
- LL_Weld.Parent = Left_Leg
- RL_Weld.Parent = Right_Leg
- Right_Leg.Parent = Character
- Left_Leg.Parent = Character
- Torso.Parent = Character
- Head.Parent = Character
- end
- Humanoid.Died:Connect(function()
- if candie == false then
- if respawning == false then
- respawning = true
- Humanoid.Parent = nil
- refit()
- Humanoid.Parent = Character
- CreateSound("2783295579", Head, 7, 1)
- chatfunc("* Did you think I would go down that easily?")
- Deaths = Deaths + 1
- respawning = false
- end
- end
- end)
- local HARDMODE = false
- function special()
- specialattack = true
- while specialattack do
- local Special = Instance.new ("MeshPart", Shields) Special.Name = "Special" Special.CanCollide = false Special.Transparency = 1 Special.Material = "Neon" Special.BrickColor = BrickColor.new("Really red") Special.Size = Vector3.new(12,12,12) Special.Massless = true Special.CFrame = Character.Torso.CFrame
- local Wed = Instance.new("Weld", Special) Wed.Part0 = Special Wed.Part1 = Character.Torso
- Special.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
- if hit.Parent.HumanoidRootPart ~= false then
- Special:Remove()
- restriction = true
- teleporting = true
- hit.Parent.HumanoidRootPart.CFrame=rootPart.CFrame*CFrame.new(0,0,-25)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- CreateSound("446961725", Head, 7, 1)
- Humanoid.Health = Humanoid.MaxHealth
- idle=idly
- Expression.Texture = "rbxassetid://4484422735"
- swait(15)
- Expression.Texture = "rbxassetid://4484448817"
- swait(25)
- Expression.Texture = "rbxassetid://4484405390"
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- wait(1)
- Special:remove()
- end))
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- game:GetService("RunService").Stepped:connect(function()
- Angle = (Angle % 100) + angleSpeed/10
- Axis = (Axis % 100) + axisSpeed/10
- local walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
- local jumpVel = Torso.Velocity.Y
- sine = change + sine
- if Deaths <= 100 then
- HARDMODE = true
- end
- if candodge == true and Humanoid.Health < Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- dodge()
- idle=idly
- end
- if candodge == false and specialattack == true and Humanoid.Health < Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- end
- if canblock == true and Humanoid.Health < Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- block()
- idle=idly
- end
- if specialattack == true then
- if Shields:FindFirstChild("Shield") == nil then
- local Shield = Instance.new ("MeshPart", Shields) Shield.Name = "Shield" Shield.CanCollide = false Shield.Transparency = 1 Shield.Material = "Neon" Shield.BrickColor = BrickColor.new("Really red") Shield.Size = Vector3.new(12,12,12) Shield.Massless = true Shield.CFrame = Character.Torso.CFrame
- local Wed = Instance.new("Weld", Shield) Wed.Part0 = Shield Wed.Part1 = Character.Torso
- Shield.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
- if hit.Parent.HumanoidRootPart ~= false then
- Shield:Destroy()
- restriction = true
- teleporting = true
- hit.Parent.HumanoidRootPart.CFrame=rootPart.CFrame*CFrame.new(0,0,-25)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- CreateSound("446961725", Head, 7, 1)
- Humanoid.Health = Humanoid.MaxHealth
- idle=idly
- Expression.Texture = "rbxassetid://4484422735"
- swait(15)
- Expression.Texture = "rbxassetid://4484448817"
- swait(25)
- Expression.Texture = "rbxassetid://4484405390"
- end
- end
- end)
- end
- if Shields:FindFirstChild("Shield2") == nil then
- local Shield2 = Instance.new ("MeshPart", Shields) Shield2.Name = "Shield2" Shield2.CanCollide = false Shield2.Transparency = 1 Shield2.Material = "Neon" Shield2.BrickColor = BrickColor.new("Really red") Shield2.Size = Vector3.new(7,7,7) Shield2.Massless = true Shield2.CFrame = Character.Torso.CFrame
- local Wed = Instance.new("Weld", Shield2) Wed.Part0 = Shield2 Wed.Part1 = Character.Torso
- end
- end
- if Humanoid.Health < 100 and Death == false and Happened == false and candodge == false and specialattack == false then
- Happened = true
- Zzz.Enabled = false
- Dead()
- end
- if Humanoid.Health <= 150 and Death == true and Happened2 == false and canblock == false then
- Happened2 = true
- Dead2()
- end
- if Death == true then
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" then
- if c.Transparency == 0 and c:FindFirstChild("Dust") == nil then
- particles(c)
- end
- end
- end
- end
- Left_Arm.BrickColor = BrickColor.new("Institutional white")
- Right_Arm.BrickColor = BrickColor.new("Institutional white")
- Left_Leg.BrickColor = BrickColor.new("Institutional white")
- Right_Leg.BrickColor = BrickColor.new("Institutional white")
- Torso.BrickColor = BrickColor.new("Institutional white")
- Head.BrickColor = BrickColor.new("Institutional white")
- Character['Body Colors'].HeadColor3=Color3.new(255,255,255)
- Character['Body Colors'].TorsoColor3=Color3.new(255,255,255)
- Character['Body Colors'].RightArmColor3=Color3.new(255,255,255)
- Character['Body Colors'].LeftArmColor3=Color3.new(255,255,255)
- Character['Body Colors'].RightLegColor3=Color3.new(255,255,255)
- Character['Body Colors'].LeftLegColor3=Color3.new(255,255,255)
- if jumpVel > 1 then
- currentAnim = "Jumping"
- elseif Humanoid.Sit == true then
- currentAnim = "Seated"
- elseif jumpVel < -1 then
- currentAnim = "Falling"
- elseif walkingMagnitude < 2 then
- currentAnim = "Idling"
- elseif isSprinting == true then
- currentAnim = "Sprinting"
- elseif walkingMagnitude > 2 then
- currentAnim = "Walking"
- elseif isAttacking == true then
- currentAnim = "Attacking"
- end
- local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
- local TiltVelocity = CFrame.new(rootPart.CFrame:vectorToObjectSpace(rootPart.Velocity/1.6))
- if currentAnim == "Jumping" and Animations == false then
- angleSpeed = 2
- axisSpeed = 2
- change = 0.5
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15),math.rad(0),math.rad(0)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20),math.rad(0), math.rad(0)), 0.15)
- elseif currentAnim == "Falling" and Animations == false then
- angleSpeed = 2
- axisSpeed = 2
- change = 0.5
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(160),math.rad(0),math.rad(15)), 0.15)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(160),math.rad(0),math.rad(-15)), 0.15)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20),math.rad(0),math.rad(0)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15),math.rad(0),math.rad(0)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20),math.rad(0), math.rad(0)), 0.15)
- elseif currentAnim == "Seated" and Animations == false then
- angleSpeed = 2
- axisSpeed = 2
- change = 0.5
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(50) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30,math.rad(-20)), 0.15)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(50) - math.sin(sine/7.5)/30,math.rad(0) - math.sin(sine/7.5)/30,math.rad(20)), 0.15)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/30, math.rad(0),math.rad(0)), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0), math.rad(0) + math.sin(sine/7.5)/30), 0.15)
- elseif currentAnim == "Idling" and Animations == false and Death == false then
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(0) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, 0) * c_angles(math.rad(0) + math.sin(sine/15)/10, math.rad(0),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(0), math.rad(0) + math.sin(sine/15)/4), Sanim)
- elseif currentAnim == "Idling" and Animations == false and Death == true then
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(0)), Sanim + 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(0)), Sanim + 0.025)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5, 0) * c_angles(math.rad(20) - math.sin(sine/15)/5,math.rad(0),math.rad(-10)), Sanim)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5 + math.sin(sine/15)/6, -1.05 - math.sin(sine/7.5)/5 , 0) * c_angles(math.rad(20) - math.sin(sine/15)/5,math.rad(0),math.rad(10)), Sanim)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/15)/10, -0.95 + math.sin(sine/7.5)/5, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/10, math.rad(0),math.rad(0)), Sanim)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 - math.sin(sine/15)/6, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/5,math.rad(math.random(-15,10)), math.rad(math.random(-25,25)) + math.sin(sine/15)/4), Sanim)
- elseif currentAnim == "Walking" and Animations == false then
- angleSpeed = 1
- axisSpeed = 1
- Humanoid.WalkSpeed = 16
- RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(-20)), 0.025)
- LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.3 + math.sin(sine/6)/5, 0) * c_angles(math.rad(23),math.rad(0),math.rad(20)), 0.025)
- --LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.15 + 0.5 * math.cos(sine/4)/3, -0.6 * math.cos(sine / 4) / 3) * c_angles(math.rad(-1 - 10 * math.cos(sine / 4)) + Left_Leg.RotVelocity.Y / 15 + math.sin(sine / 4) / 3, math.rad(0) - math.sin(sine/4)/6, math.rad(-3)), 0.1)
- --RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.15 - 0.5 * math.cos(sine/4)/3, 0.6 * math.cos(sine / 4) / 3) * c_angles( math.rad(-1 + 10 * math.cos(sine / 4)) - Right_Leg.RotVelocity.Y / 15 + -math.sin(sine / 4) / 3, math.rad(0) - math.sin(sine/4)/6, math.rad(3)), 0.1)
- RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.9 - 0.5 * math.cos(sine / WALKSPEEDVALUE) / 2, -0.2 + 0.6 * math.cos(sine / WALKSPEEDVALUE) / 2) * c_angles(math.rad(-15 - 10 * math.cos(sine / WALKSPEEDVALUE)) - Right_Leg.RotVelocity.Y / 75 + -math.sin(sine / WALKSPEEDVALUE) / 2.5 * -math.rad(TiltVelocity.z) * 10, math.rad(0 - 5 * math.cos(sine / WALKSPEEDVALUE)), math.rad(0)) * c_angles(math.rad(0 + 2 * math.cos(sine / WALKSPEEDVALUE)), math.rad(0), math.rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
- LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.9 + 0.5 * math.cos(sine / WALKSPEEDVALUE) / 2, -0.2 - 0.6 * math.cos(sine / WALKSPEEDVALUE) / 2) * c_angles(math.rad(-15 + 10 * math.cos(sine / WALKSPEEDVALUE)) + Left_Leg.RotVelocity.Y / -75 + math.sin(sine / WALKSPEEDVALUE) / 2.5 * -math.rad(TiltVelocity.z) * 10, math.rad(0 - 5 * math.cos(sine / WALKSPEEDVALUE)), math.rad(0)) * c_angles(math.rad(0 - 2 * math.cos(sine / WALKSPEEDVALUE)), math.rad(0), math.rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
- Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0 - 2.5 * math.sin(sine / 8)), math.rad(0), math.sin((rootPart.RotVelocity.Y/15))/4), 0.15)
- Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/7.5)/15,math.sin((rootPart.RotVelocity.Y/2.5))/2, math.sin((rootPart.RotVelocity.Y/15))/2), 0.15)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement