Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ScreenGui0 = Instance.new("ScreenGui")
- Frame1 = Instance.new("Frame")
- TextLabel2 = Instance.new("TextLabel")
- Frame3 = Instance.new("Frame")
- TextLabel4 = Instance.new("TextLabel")
- TextButton5 = Instance.new("TextButton")
- Frame6 = Instance.new("Frame")
- Script7 = Instance.new("Script")
- TextButton8 = Instance.new("TextButton")
- Frame9 = Instance.new("Frame")
- Script10 = Instance.new("Script")
- TextButton11 = Instance.new("TextButton")
- Frame12 = Instance.new("Frame")
- Script13 = Instance.new("Script")
- TextButton14 = Instance.new("TextButton")
- Frame15 = Instance.new("Frame")
- Script16 = Instance.new("Script")
- TextButton17 = Instance.new("TextButton")
- Frame18 = Instance.new("Frame")
- Script19 = Instance.new("Script")
- TextButton20 = Instance.new("TextButton")
- Frame21 = Instance.new("Frame")
- Script22 = Instance.new("Script")
- TextButton23 = Instance.new("TextButton")
- Frame24 = Instance.new("Frame")
- Script25 = Instance.new("Script")
- TextButton26 = Instance.new("TextButton")
- Frame27 = Instance.new("Frame")
- Script28 = Instance.new("Script")
- TextButton29 = Instance.new("TextButton")
- Frame30 = Instance.new("Frame")
- Script31 = Instance.new("Script")
- TextButton32 = Instance.new("TextButton")
- Frame33 = Instance.new("Frame")
- Script34 = Instance.new("Script")
- Frame35 = Instance.new("Frame")
- TextLabel36 = Instance.new("TextLabel")
- Frame37 = Instance.new("Frame")
- TextLabel38 = Instance.new("TextLabel")
- TextBox39 = Instance.new("TextBox")
- Frame40 = Instance.new("Frame")
- TextLabel41 = Instance.new("TextLabel")
- Frame42 = Instance.new("Frame")
- TextBox43 = Instance.new("TextBox")
- Frame44 = Instance.new("Frame")
- TextButton45 = Instance.new("TextButton")
- Script46 = Instance.new("Script")
- Frame47 = Instance.new("Frame")
- Frame48 = Instance.new("Frame")
- TextButton49 = Instance.new("TextButton")
- Frame50 = Instance.new("Frame")
- Script51 = Instance.new("Script")
- Frame52 = Instance.new("Frame")
- TextButton53 = Instance.new("TextButton")
- Frame54 = Instance.new("Frame")
- Script55 = Instance.new("Script")
- ScreenGui0.Name = "SB_ChatGUI"
- ScreenGui0.Parent = mas
- ScreenGui0.Enabled = false
- Frame1.Name = "Main"
- Frame1.Parent = ScreenGui0
- Frame1.Size = UDim2.new(0, 300, 0, 388)
- Frame1.Style = Enum.FrameStyle.DropShadow
- Frame1.Position = UDim2.new(0.5, -150, 0, 0)
- Frame1.Active = true
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame1.Draggable = true
- TextLabel2.Name = "Title"
- TextLabel2.Parent = Frame1
- TextLabel2.Size = UDim2.new(1, 4, 0, 32)
- TextLabel2.Text = "Omega's Admin hub Gui"
- TextLabel2.Position = UDim2.new(0, -2, 0, -2)
- TextLabel2.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- TextLabel2.BorderSizePixel = 0
- TextLabel2.Font = Enum.Font.SourceSansItalic
- TextLabel2.FontSize = Enum.FontSize.Size24
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextYAlignment = Enum.TextYAlignment.Top
- Frame3.Name = "styleLine"
- Frame3.Parent = TextLabel2
- Frame3.Transparency = 0.30000001192093
- Frame3.Size = UDim2.new(1, 0, 0, 4)
- Frame3.Position = UDim2.new(0, 0, 0, 28)
- Frame3.BackgroundColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Frame3.BackgroundTransparency = 0.30000001192093
- Frame3.BorderSizePixel = 0
- Frame3.ZIndex = 2
- TextLabel4.Name = "Creditse"
- TextLabel4.Parent = Frame1
- TextLabel4.Transparency = 1
- TextLabel4.Size = UDim2.new(1, -6, 0, 10)
- TextLabel4.Text = "Created by Omega_Phoenix"
- TextLabel4.Position = UDim2.new(0, 0, 1, -15)
- TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel4.BackgroundTransparency = 1
- TextLabel4.BorderSizePixel = 0
- TextLabel4.Font = Enum.Font.SourceSans
- TextLabel4.FontSize = Enum.FontSize.Size14
- TextLabel4.TextColor3 = Color3.new(1, 0.968628, 0.94902)
- TextLabel4.TextTransparency = 0.80000001192093
- TextLabel4.TextWrapped = true
- TextButton5.Name = "Aura_Visualizer"
- TextButton5.Parent = Frame1
- TextButton5.Transparency = 0.5
- TextButton5.Size = UDim2.new(0, 100, 0, 30)
- TextButton5.Text = "Aura_Visualizer"
- TextButton5.Position = UDim2.new(0.399999917, -107, -0.0999999866, 75)
- TextButton5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton5.BackgroundTransparency = 0.5
- TextButton5.BorderSizePixel = 0
- TextButton5.Font = Enum.Font.SourceSansBold
- TextButton5.FontSize = Enum.FontSize.Size14
- TextButton5.TextColor3 = Color3.new(0, 0, 0)
- TextButton5.TextTransparency = 0.5
- Frame6.Name = "styleLine"
- Frame6.Parent = TextButton5
- Frame6.Size = UDim2.new(0, 5, 1, 0)
- Frame6.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame6.BorderSizePixel = 0
- Script7.Parent = TextButton5
- table.insert(cors,sandbox(Script7,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- print("Loading...")
- local ot = tick()
- local plr = game.Players.LocalPlayer
- local char,mouse = plr.Character,plr:GetMouse()
- local mode = "script"
- local vis = false
- local sens = 150
- local amountParts = 2
- local offsetxd = 3
- local frame = 0
- local oldTick = tick()
- local actualframe = 0
- local whitelist = {"Fet_Cow","Cronizete","Omega_Phoenix","makhail07","0617fire"}
- local mouseMode = false
- local tPos = Vector3.new(0,0,0)
- local speed1 = 5
- local speed = 5
- local mod = 360
- local freezetab = {}
- local Sound=Instance.new("Sound",char.Head); Sound.Volume = 4; Sound.Looped = true; Sound.SoundId='rbxassetid://243920767'; Sound:Play()
- function circlePos(r,d,off) return off + Vector3.new(math.cos(math.rad(r))*d,0,math.sin(math.rad(r))*d) end
- function search(t,tab)
- local searchtab = {}
- if tab then
- searchtab = tab
- end
- for i,v in pairs(t:GetChildren()) do
- table.insert(searchtab,v)
- search(v,searchtab)
- end
- return searchtab
- end
- local r = 255
- local g = 0
- local b = 0
- plr.Chatted:Connect(function(msg)
- local msg = string.lower(msg)
- if string.sub(msg,1,4) == ";pl " then
- local id = string.sub(msg,5)
- Sound:Stop()
- Sound.SoundId = "rbxassetid://"..id
- Sound:Play()
- elseif string.sub(msg,1,5) == ";vol " then
- local sd = string.sub(msg,6)
- Sound.Volume = sd
- elseif string.sub(msg,1,5) == ";sen " then
- local se = string.sub(msg,6)
- sens = se
- end
- end)
- plr.Chatted:connect(function(c)
- if string.lower(string.sub(c,1,8)) == ";amount " then
- amountParts = tonumber(string.sub(c,9,#c))
- end
- if string.lower(string.sub(c,1,5)) == ";mod " then
- mod = tonumber(string.sub(c,6,#c))
- end
- if string.lower(string.sub(c,1,8)) == ";offset " then
- offsetxd = tonumber(string.sub(c,9,#c))
- end
- if string.lower(string.sub(c,1,7)) == ";speed " then
- speed = tonumber(string.sub(c,8,#c))
- speed1 = tonumber(string.sub(c,8,#c))
- end
- if string.lower(string.sub(c,1,12)) == ";mode script" then
- mode = "script"
- warn("Mode: Script Destruction")
- end
- if string.lower(string.sub(c,1,10)) == ";mode kill" then
- mode = "kill"
- warn("Mode: Character Killing")
- end
- if string.lower(string.sub(c,1,4)) == ";vis" then
- warn("Vis Toggled")
- if vis == true then
- Sound:Stop()
- vis = false
- elseif vis == false then
- vis = true
- Sound:Play()
- end
- end
- if string.lower(string.sub(c,1,5)) == ";default" then
- script.Parent = plr
- wait(1)
- script.Parent = char
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- if mouseMode == false then
- mouseMode = true
- else
- mouseMode = false
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i=0,255,10 do g = i wait() end
- for i=255,0,-10 do r = i wait() end
- for i=0,255,10 do b = i wait() end
- for i=255,0,-10 do g = i wait() end
- for i=0,255,10 do r = i wait() end
- for i=255,0,-10 do b = i wait() end
- end
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- spawn(function()
- if vis == true then
- speed = Sound.PlaybackLoudness/sens
- Sound.Volume = 4
- elseif vis == false then
- Sound.Volume = 0
- speed = speed1
- end
- end)
- actualframe = actualframe + 1
- frame = frame + speed
- local offset = offsetxd
- offset = offsetxd -- + math.cos(tick())*3
- if mouseMode == true then
- tPos = mouse.Hit.p + Vector3.new(0,3,0)
- else
- tPos = char:WaitForChild("Torso").Position
- end
- for i=1,360,(360)/amountParts do
- local p = Instance.new("Part")
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Color = Color3.fromRGB(r,g,b)
- p.Material = "Neon"
- local dist = (circlePos(i + frame,offset,tPos + Vector3.new(0,math.cos((frame)/mod)*3,0)) - circlePos(i + frame - 1,offset,tPos + Vector3.new(0,math.cos((frame - 1)/mod)*3,0))).Magnitude*speed
- p.Size = Vector3.new(0.2,0.2,dist)
- p.CanCollide = false
- p.Anchored = true
- local m = Instance.new("BlockMesh",p)
- m.Scale = Vector3.new(1,1,1)
- p.CFrame = CFrame.new(circlePos(i + frame,offset,tPos + Vector3.new(0,math.cos((frame)/mod)*3,0)),circlePos(i + frame - 1,offset,tPos + Vector3.new(0,math.cos((frame - 1)/mod)*3,0))) * CFrame.new(0,0,-dist/2)
- p.Parent = workspace
- local update
- local updateframe = 0
- update = game:GetService("RunService").RenderStepped:connect(function()
- updateframe = updateframe + 1
- m.Scale = m.Scale - Vector3.new(0.05,0.05,0)
- if updateframe >= 15 then
- p:Destroy()
- update:disconnect()
- end
- end)
- end
- oldTick = tick()
- if math.floor(actualframe/16) == actualframe/16 then
- for i,c in pairs(game:GetService("Players"):GetChildren()) do
- local isW = false
- for i,v in pairs(whitelist) do
- if c.Name == v then
- isW = true
- end
- end
- if c.Character.Parent == workspace then
- if isW == false then
- for i,v in pairs(search(c.Character)) do
- wait()
- if c ~= plr then
- if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("TrussPart") or v:IsA("UnionOperation") then
- if (v.Position - tPos).Magnitude < offset then
- for i,v in pairs(v.Parent:GetChildren()) do
- if v:IsA("LocalScript") or v:IsA("Script") then
- v:Destroy()
- elseif v:IsA("Humanoid") then
- if mode == "kill" then
- v.MaxHealth = 1
- v.Health = 0
- v.Parent:BreakJoints()
- end
- end
- end
- if mode == "kill" then
- v:Destroy()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- end)
- end))
- TextButton8.Name = "R15 Sans"
- TextButton8.Parent = Frame1
- TextButton8.Transparency = 0.5
- TextButton8.Size = UDim2.new(0, 100, 0, 30)
- TextButton8.Text = "R15 Sans"
- TextButton8.Position = UDim2.new(0.399999917, -107, 1.49011612e-08, 75)
- TextButton8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton8.BackgroundTransparency = 0.5
- TextButton8.BorderSizePixel = 0
- TextButton8.Font = Enum.Font.SourceSansBold
- TextButton8.FontSize = Enum.FontSize.Size14
- TextButton8.TextColor3 = Color3.new(0, 0, 0)
- TextButton8.TextTransparency = 0.5
- Frame9.Name = "styleLine"
- Frame9.Parent = TextButton8
- Frame9.Size = UDim2.new(0, 5, 1, 0)
- Frame9.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame9.BorderSizePixel = 0
- Script10.Parent = TextButton8
- table.insert(cors,sandbox(Script10,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- local id = 447847411
- --local id = 471974203
- local p = game.Players.LocalPlayer
- ---GhasterBlasters by xXVipergamerXx1-----
- ---MUST BE R15 TO USE!!!----
- local num = 0
- local char = p.Character
- local c = p.Character
- local rad = math.rad
- local hum = char.Humanoid
- ---------------------------------------------------
- local LeftUpperArm = char.LeftUpperArm
- local LeftShoulder = char.LeftUpperArm.LeftShoulder
- local LeftLowerArm = char.LeftLowerArm
- local LeftElbow = char.LeftLowerArm.LeftElbow
- --------------------------------------------------------
- local LeftUpperLeg = char.LeftUpperLeg
- local LeftHip = char.LeftUpperLeg.LeftHip
- local LeftLowerLeg = char.LeftLowerLeg
- local LeftKnee = char.LeftLowerLeg.LeftKnee
- ----------------------------------------------------------
- local RightUpperArm = char.RightUpperArm
- local RightShoulder = char.RightUpperArm.RightShoulder
- local RightLowerArm = char.RightLowerArm
- local RightElbow = char.RightLowerArm.RightElbow
- ----------------------------------------------------------
- local RightUpperLeg = char.RightUpperLeg
- local RightHip = char.RightUpperLeg.RightHip
- local RightLowerLeg = char.RightLowerLeg
- local RightKnee = char.RightLowerLeg.RightKnee
- ----------------------------------------------------------
- local UpperTorso = char.UpperTorso
- local LowerTorso = char.LowerTorso
- local Root = char.LowerTorso.Root
- --------------------------------------------
- local Head = char.Head
- local Neck = char.Head.Neck
- local RootPart = char.HumanoidRootPart
- local LeftHand = char.LeftHand
- local RightHand = char.RightHand
- local LeftFoot = char.LeftFoot
- local RightFoot = char.RightFoot
- ---------------------------------------------
- hum:SetStateEnabled("Dead",false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- local v3 = Vector3.new
- local idle = true
- local walk = true
- local walk1 = true
- local walkon = true
- local ns = NumberSequence.new
- local new = Instance.new
- local nr = NumberRange.new
- local bc =BrickColor.new
- local UpperTorso = char.UpperTorso
- local Waist = char.UpperTorso.Waist
- local mouse = p:GetMouse()
- local Blasters = true
- local debounce = true
- hum.MaxHealth = 500
- hum.Health = hum.MaxHealth
- local equiped = false
- new("ForceField",char).Visible = false
- local Create = LoadLibrary("RbxUtility").Create
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "SciFi",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- end
- end
- end
- end
- end
- EffectModel = Create("Model"){
- Parent = Character,
- Name = "Effects",
- }
- local music = Instance.new("Sound",char)
- music.SoundId = "rbxassetid://935501955"
- music.Looped = true
- music.Volume = 1
- music.Name = "killme2"
- local shootsnd = new("Sound",char)
- shootsnd.SoundId = "rbxassetid://340722848"
- shootsnd.Volume = 10
- shootsnd.Pitch = 1
- local hdebounce = true
- local RGhasterBlaster = new("Part",char)
- RGhasterBlaster.Size = v3(1,1,1)
- RGhasterBlaster.Name = "RGhasterBlaster"
- RGhasterBlaster.CanCollide = false
- RGhasterBlaster.Material = "Neon"
- RGhasterBlaster.Shape = "Ball"
- RGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame
- RGhasterBlaster.Anchored = false
- RGhasterBlaster.BrickColor = bc("White")
- RGhasterBlaster.Transparency = 1
- local LGhasterBlaster = new("Part",char)
- LGhasterBlaster.Size = v3(1,1,1)
- LGhasterBlaster.CanCollide = false
- LGhasterBlaster.Name = "LGhasterBlaster"
- LGhasterBlaster.Material = "Neon"
- LGhasterBlaster.BrickColor = bc("White")
- LGhasterBlaster.Shape = "Ball"
- LGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- LGhasterBlaster.Anchored = false
- LGhasterBlaster.Transparency = 1
- local zxc = Instance.new("SpecialMesh",LGhasterBlaster)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local zxc = Instance.new("SpecialMesh",RGhasterBlaster)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local lgbbg=Instance.new("BodyGyro",LGhasterBlaster)
- lgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- lgbbg.D=400
- lgbbp = Instance.new("BodyPosition", LGhasterBlaster)
- local rgbbg=Instance.new("BodyGyro",RGhasterBlaster)
- rgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- rgbbg.D=400
- rgbbp = Instance.new("BodyPosition", RGhasterBlaster)
- spawn(function()
- while Blasters == true do
- rgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(10,5,0)).p
- lgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-10,5,0)).p
- rgbbg.CFrame=CFrame.new(RGhasterBlaster.Position,mouse.Hit.p)
- lgbbg.CFrame=CFrame.new(LGhasterBlaster.Position,mouse.Hit.p)
- wait()
- end
- end)
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Fire"
- ParticleEmitter0.Parent = char.RightHand
- ParticleEmitter0.Transparency = NumberSequence.new(0,0,0,0,1,0)
- ParticleEmitter0.Rotation = NumberRange.new(-90, 90)
- ParticleEmitter0.Archivable = false
- ParticleEmitter0.Size = NumberSequence.new(0.75,0)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0, 0.1),Color3.new(1, 0, 0.1))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=56562006"
- ParticleEmitter0.ZOffset = 1
- ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5)
- ParticleEmitter0.Rate = 100
- ParticleEmitter0.RotSpeed = NumberRange.new(-90, 90)
- ParticleEmitter0.Speed = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter0.Enabled = false
- local transPoints = {
- NumberSequenceKeypoint.new(0,.819,.0375),
- NumberSequenceKeypoint.new(.207,.594,.0187),
- NumberSequenceKeypoint.new(.4,.55,.031),
- NumberSequenceKeypoint.new(.57,.619,.05),
- NumberSequenceKeypoint.new(.76,.8,.0375),
- NumberSequenceKeypoint.new(1,1,0),
- }
- local Size = NumberSequence.new(0.6,0.6,0.6)
- local Transparency = NumberSequence.new(transPoints)
- rayModel = Instance.new("Model",char)
- efxBlock = Instance.new("Part",char)
- efxBlock.BrickColor = BrickColor.new("Bright red")
- efxBlock.Material = "Neon"
- efxBlock.FormFactor = "Custom"
- efxBlock.Transparency = 1
- efxBlock.Size = Vector3.new(.3,.3,.3)
- local offset = Vector3.new(-0.11, .23, -0.5)
- local weld = Instance.new("Weld",char.Head)
- weld.Part0 = char.Head
- weld.Part1 = efxBlock
- weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
- efxBlock.Parent = char
- local mesh = Instance.new("SpecialMesh",efxBlock)
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Scale = Vector3.new(1,1,1)
- light = Instance.new("PointLight",char.Head)
- light.Range = 0.5
- light.Color = Color3.new(0,200/255,1)
- light.Shadows = false
- light.Enabled = false
- local particles = Instance.new("ParticleEmitter",efxBlock)
- particles.Color = ColorSequence.new(Color3.new(255,0,0),Color3.new(255,0,0))
- particles.LightEmission = .95
- particles.Size = Size
- particles.Name = "Fire"
- particles.Transparency = Transparency
- particles.VelocityInheritance = .5
- particles.LockedToPart = false
- particles.Rate = 100
- particles.Texture = "rbxassetid://56562006"
- particles.Lifetime = NumberRange.new(.5,.5)
- particles.Speed = NumberRange.new(7,7)
- particles.Enabled = false
- script.Parent = efxBlock
- fire = particles
- function equip()
- if equiped == false then
- equiped = true
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(-90)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(90)),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(60)),.1)--Head
- wait()
- end
- for i = 1,20 do
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency-0.1
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency-0.1
- wait()
- end
- hum.WalkSpeed = 15
- hum.JumpPower = 50
- particles.Enabled = true
- efxBlock.Transparency = 0
- ParticleEmitter0.Enabled = true
- music:Play()
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- else
- equiped = false
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(math.rad(-137.052), math.rad(-87.376), math.rad(-180.023)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(44.576), math.rad(80.787), 0),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(92.934),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(math.rad(92.132), math.rad(0.057), math.rad(0.229)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(59.588),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(1.089),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-38.044),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-17.704),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0, -0.206, 0.078)*CFrame.Angles(rad(-20.856),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(18.564),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- ParticleEmitter0.Enabled = false
- particles.Enabled = false
- music.Playing = false
- efxBlock.Transparency = 1
- for i = 1,20 do
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
- wait()
- end
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- hum.WalkSpeed = 15
- hum.JumpPower = 50
- end
- end
- function beam()
- if debounce == true then
- if equiped == true then
- debounce = false
- local finalflash = false
- local finalgo = 0
- local finalgo1 = 6
- game:GetService("RunService").RenderStepped:connect(function()
- if finalflash == true then
- finalgo = finalgo + 1
- finalgo1 = finalgo1 + 2
- char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- end
- end)
- shootsnd:Play()
- local RayThing = Instance.new("Part",char)
- RayThing.Size = Vector3.new(5,1,1)
- RayThing.Shape = "Cylinder"
- RayThing.Name = "FinalFlash"
- RayThing.CanCollide = false
- RayThing.Transparency = 0
- RayThing.Anchored = true
- RayThing.Material = "Neon"
- RayThing.BrickColor = BrickColor.new("Bright red")
- local inRayThing = Instance.new("Part",char)
- inRayThing.Size = Vector3.new(5,1,1)
- inRayThing.Transparency = 1
- inRayThing.Shape = "Cylinder"
- inRayThing.Name = "inFinalFlash"
- inRayThing.CanCollide = false
- inRayThing.Anchored = true
- inRayThing.Material = "Neon"
- inRayThing.BrickColor = BrickColor.new("Bright red")
- inRayThing.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -30, 1.5, BrickColor.new("Toothpaste").Color)
- v.Health = v.Health - 30
- wait(1)
- hdebounce = true
- end
- end
- end
- end)
- finalflash = true
- wait(0.5)
- finalflash = false
- for i = 1,10 do
- char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
- char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
- char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- wait()
- end
- inRayThing:Destroy()
- RayThing:Destroy()
- finalgo = 0
- finalgo1 = 6
- debounce = true
- end
- end
- end
- function beam2()
- if equiped == true then
- if debounce == true then
- debounce = false
- local finalflash = false
- local finalgo = 0
- local finalgo1 = 6
- game:GetService("RunService").RenderStepped:connect(function()
- if finalflash == true then
- finalgo = finalgo + 1
- finalgo1 = finalgo1 + 2
- char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- end
- end)
- shootsnd:Play()
- local RayThing = Instance.new("Part",char)
- RayThing.Size = Vector3.new(5,1,1)
- RayThing.Shape = "Cylinder"
- RayThing.Name = "FinalFlash"
- RayThing.CanCollide = false
- RayThing.Transparency = 0
- RayThing.Anchored = true
- RayThing.Material = "Neon"
- RayThing.BrickColor = BrickColor.new("Bright red")
- local inRayThing = Instance.new("Part",char)
- inRayThing.Size = Vector3.new(10,1,1)
- inRayThing.Transparency = 1
- inRayThing.Shape = "Cylinder"
- inRayThing.Name = "inFinalFlash"
- inRayThing.CanCollide = false
- inRayThing.Anchored = true
- inRayThing.Material = "Neon"
- inRayThing.BrickColor = BrickColor.new("Bright red")
- RayThing.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb = math.random(1,2)
- v.Health = v.Health - math.random(10,20)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(1)
- hdebounce = true
- end
- end
- end
- end)
- finalflash = true
- wait(0.5)
- finalflash = false
- for i = 1,10 do
- char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
- char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
- char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- wait()
- end
- inRayThing:Destroy()
- RayThing:Destroy()
- finalgo = 0
- finalgo1 = 6
- debounce = true
- end
- end
- end
- mounted = false
- function mount()
- if equiped == true then
- if mounted == false then
- mounted = true
- char.Humanoid.PlatformStand = true
- local mountw = new("Weld",RGhasterBlaster)
- mountw.Part0 = char.HumanoidRootPart
- mountw.Part1 = RGhasterBlaster
- mountw.Name = "mountw"
- mountw.C1 = CFrame.new(0,3,0)
- for i = 1,5 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperArm
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(70),rad(0),rad(0)),.5)--Head
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(-170),rad(0),rad(0)),.1)--Torso
- wait()
- end
- elseif mounted == true then
- mounted = false
- for i = 1,5 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperArm
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Head
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Torso
- wait()
- end
- char.Humanoid.PlatformStand = false
- RGhasterBlaster.mountw:destroy()
- RGhasterBlaster.CFrame = char.LeftHand.CFrame
- end
- end
- end
- local srot = 0
- mouse.Button1Down:connect(function()
- ral = math.random(1,2)
- if ral == 1 then
- beam()
- end
- if ral == 2 then
- beam2()
- end
- end)
- function cross()
- if equiped == true then
- if debounce == true then
- debounce = false
- local targeta = new("Part",char)
- targeta.Position = mouse.Hit.p
- targeta.Anchored = true
- targeta.CanCollide = false
- targeta.Transparency = 1
- local CrossGhast1 = new("Part",char)
- CrossGhast1.CanCollide = false
- CrossGhast1.Anchored = false
- CrossGhast1.Size = v3(1,1,1)
- CrossGhast1.Material = "Neon"
- CrossGhast1.BrickColor = bc("White")
- CrossGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP = Instance.new("BodyPosition",CrossGhast1)
- PointBP.Position = (targeta.CFrame*CFrame.new(20,1,0)).p
- PointBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG=Instance.new("BodyGyro",CrossGhast1)
- PointBG.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG.D=400
- local CrossGhast2 = new("Part",char)
- CrossGhast2.CanCollide = false
- CrossGhast2.Anchored = false
- CrossGhast2.Size = v3(1,1,1)
- CrossGhast2.Material = "Neon"
- CrossGhast2.BrickColor = bc("White")
- CrossGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP2 = Instance.new("BodyPosition",CrossGhast2)
- PointBP2.Position = (targeta.CFrame*CFrame.new(-20,1,0)).p
- PointBP2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG2=Instance.new("BodyGyro",CrossGhast2)
- PointBG2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG2.D=400
- local CrossGhast3 = new("Part",char)
- CrossGhast3.CanCollide = false
- CrossGhast3.Anchored = false
- CrossGhast3.Size = v3(1,1,1)
- CrossGhast3.Material = "Neon"
- CrossGhast3.BrickColor = bc("White")
- CrossGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP3 = Instance.new("BodyPosition",CrossGhast3)
- PointBP3.Position = (targeta.CFrame*CFrame.new(0,1,-20)).p
- PointBP3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG3=Instance.new("BodyGyro",CrossGhast3)
- PointBG3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG3.D=400
- local CrossGhasta = new("Part",char)
- CrossGhasta.CanCollide = false
- CrossGhasta.Anchored = false
- CrossGhasta.Size = v3(1,1,1)
- CrossGhasta.Material = "Neon"
- CrossGhasta.BrickColor = bc("White")
- CrossGhasta.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhasta)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.csdom/asset/?id=920580395"
- PointBPa = Instance.new("BodyPosition",CrossGhasta)
- PointBPa.Position = (targeta.CFrame*CFrame.new(0,1,20)).p
- PointBPa.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGa=Instance.new("BodyGyro",CrossGhasta)
- PointBGa.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGa.D=400
- for i = 1,50 do
- PointBG.CFrame=CFrame.new(CrossGhast1.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBG2.CFrame=CFrame.new(CrossGhast2.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBG3.CFrame=CFrame.new(CrossGhast3.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBGa.CFrame=CFrame.new(CrossGhasta.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- wait()
- end
- shootsnd:Play()
- local GhastShot1 = new("Part",CrossGhast1)
- GhastShot1.Shape = "Cylinder"
- GhastShot1.Size = v3(100,5,5)
- GhastShot1.BrickColor = bc("Bright red")
- GhastShot1.Material = "Neon"
- GhastShot1.CanCollide = false
- GhastShot1.Anchored = true
- GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShot2 = new("Part",CrossGhast1)
- GhastShot2.Shape = "Cylinder"
- GhastShot2.Size = v3(100,5,5)
- GhastShot2.BrickColor = bc("Bright red")
- GhastShot2.Material = "Neon"
- GhastShot2.CanCollide = false
- GhastShot2.Anchored = true
- GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShot3 = new("Part",CrossGhast1)
- GhastShot3.Shape = "Cylinder"
- GhastShot3.Size = v3(100,5,5)
- GhastShot3.BrickColor = bc("Bright red")
- GhastShot3.Material = "Neon"
- GhastShot3.CanCollide = false
- GhastShot3.Anchored = true
- GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShota = new("Part",CrossGhast1)
- GhastShota.Shape = "Cylinder"
- GhastShota.Size = v3(100,5,5)
- GhastShota.BrickColor = bc("Bright red")
- GhastShota.Material = "Neon"
- GhastShota.CanCollide = false
- GhastShota.Anchored = true
- GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShota.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot1.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot3.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.2)
- for i = 1,10 do
- GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
- GhastShot2.Size = GhastShot2.Size+v3(0,-1,-1)
- GhastShot3.Size = GhastShot3.Size+v3(0,-1,-1)
- GhastShota.Size = GhastShota.Size+v3(0,-1,-1)
- GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShot1.Transparency = GhastShot1.Transparency+0.1
- GhastShot2.Transparency = GhastShot2.Transparency+0.1
- GhastShot3.Transparency = GhastShot3.Transparency+0.1
- GhastShota.Transparency = GhastShota.Transparency+0.1
- wait()
- end
- wait(1)
- for i = 1,10 do
- CrossGhast2.Transparency = CrossGhast2.Transparency+0.1
- CrossGhast1.Transparency = CrossGhast1.Transparency+0.1
- CrossGhasta.Transparency = CrossGhasta.Transparency+0.1
- CrossGhast3.Transparency = CrossGhast3.Transparency+0.1
- wait()
- end
- CrossGhast1:destroy()
- CrossGhast2:destroy()
- CrossGhast3:destroy()
- CrossGhasta:destroy()
- wait(1)
- debounce = true
- end
- end
- end
- local dodgedebounce = true
- function DodgeLeft()
- if dodgedebounce == true then
- dodgedebounce = false
- local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
- local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
- wait(0.8)
- bodyp.Position=currentpos
- wait(0.5)
- bodyp:Destroy()
- wait(1)
- dodgedebounce = true
- end
- end
- function RightDodge()
- if dodgedebounce == true then
- dodgedebounce = false
- local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
- local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p
- wait(0.8)
- bodyp.Position=currentpos
- wait(0.5)
- bodyp:Destroy()
- wait(1)
- dodgedebounce = true
- end
- end
- function octo()
- if equiped == true then
- if debounce == true then
- debounce = false
- local target2 = new("Part",char)
- target2.Position = mouse.Hit.p
- target2.Anchored = true
- target2.CanCollide = false
- target2.Transparency = 1
- local OctoGhast1 = new("Part",char)
- OctoGhast1.CanCollide = false
- OctoGhast1.Anchored = false
- OctoGhast1.Size = v3(1,1,1)
- OctoGhast1.Material = "Neon"
- OctoGhast1.BrickColor = bc("White")
- OctoGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto1 = Instance.new("BodyPosition",OctoGhast1)
- PointBPOcto1.Position = (target2.CFrame*CFrame.new(20,1,0)).p
- PointBPOcto1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto1=Instance.new("BodyGyro",OctoGhast1)
- PointBGOcto1.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto1.D=400
- local OctoGhast2 = new("Part",char)
- OctoGhast2.CanCollide = false
- OctoGhast2.Anchored = false
- OctoGhast2.Size = v3(1,1,1)
- OctoGhast2.Material = "Neon"
- OctoGhast2.BrickColor = bc("White")
- OctoGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto2 = Instance.new("BodyPosition",OctoGhast2)
- PointBPOcto2.Position = (target2.CFrame*CFrame.new(-20,1,0)).p
- PointBPOcto2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto2=Instance.new("BodyGyro",OctoGhast2)
- PointBGOcto2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto2.D=400
- local OctoGhast3 = new("Part",char)
- OctoGhast3.CanCollide = false
- OctoGhast3.Anchored = false
- OctoGhast3.Size = v3(1,1,1)
- OctoGhast3.Material = "Neon"
- OctoGhast3.BrickColor = bc("White")
- OctoGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto3 = Instance.new("BodyPosition",OctoGhast3)
- PointBPOcto3.Position = (target2.CFrame*CFrame.new(0,1,-20)).p
- PointBPOcto3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto3=Instance.new("BodyGyro",OctoGhast3)
- PointBGOcto3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto3.D=400
- local OctoGhast4 = new("Part",char)
- OctoGhast4.CanCollide = false
- OctoGhast4.Anchored = false
- OctoGhast4.Size = v3(1,1,1)
- OctoGhast4.Material = "Neon"
- OctoGhast4.BrickColor = bc("White")
- OctoGhast4.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast4)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto4 = Instance.new("BodyPosition",OctoGhast4)
- PointBPOcto4.Position = (target2.CFrame*CFrame.new(0,1,20)).p
- PointBPOcto4.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto4=Instance.new("BodyGyro",OctoGhast4)
- PointBGOcto4.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto4.D=400
- local OctoGhast5 = new("Part",char)
- OctoGhast5.CanCollide = false
- OctoGhast5.Anchored = false
- OctoGhast5.Size = v3(1,1,1)
- OctoGhast5.Material = "Neon"
- OctoGhast5.BrickColor = bc("White")
- OctoGhast5.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast5)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto5 = Instance.new("BodyPosition",OctoGhast5)
- PointBPOcto5.Position = (target2.CFrame*CFrame.new(15,1,-20)).p
- PointBPOcto5.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto5=Instance.new("BodyGyro",OctoGhast5)
- PointBGOcto5.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto5.D=400
- local OctoGhast6 = new("Part",char)
- OctoGhast6.CanCollide = false
- OctoGhast6.Anchored = false
- OctoGhast6.Size = v3(1,1,1)
- OctoGhast6.Material = "Neon"
- OctoGhast6.BrickColor = bc("White")
- OctoGhast6.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast6)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto6 = Instance.new("BodyPosition",OctoGhast6)
- PointBPOcto6.Position = (target2.CFrame*CFrame.new(-15,1,20)).p
- PointBPOcto6.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto6=Instance.new("BodyGyro",OctoGhast6)
- PointBGOcto6.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto6.D=400
- local OctoGhast7 = new("Part",char)
- OctoGhast7.CanCollide = false
- OctoGhast7.Anchored = false
- OctoGhast7.Size = v3(1,1,1)
- OctoGhast7.Material = "Neon"
- OctoGhast7.BrickColor = bc("White")
- OctoGhast7.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast7)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto7 = Instance.new("BodyPosition",OctoGhast7)
- PointBPOcto7.Position = (target2.CFrame*CFrame.new(15,1,15)).p
- PointBPOcto7.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto7=Instance.new("BodyGyro",OctoGhast7)
- PointBGOcto7.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto7.D=400
- local OctoGhast8 = new("Part",char)
- OctoGhast8.CanCollide = false
- OctoGhast8.Anchored = false
- OctoGhast8.Size = v3(1,1,1)
- OctoGhast8.Material = "Neon"
- OctoGhast8.BrickColor = bc("White")
- OctoGhast8.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast8)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto8 = Instance.new("BodyPosition",OctoGhast8)
- PointBPOcto8.Position = (target2.CFrame*CFrame.new(-15,1,-15)).p
- PointBPOcto8.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto8=Instance.new("BodyGyro",OctoGhast8)
- PointBGOcto8.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto8.D=400
- for i = 1,50 do
- PointBGOcto5.CFrame=CFrame.new(OctoGhast5.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto4.CFrame=CFrame.new(OctoGhast4.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto1.CFrame=CFrame.new(OctoGhast1.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto2.CFrame=CFrame.new(OctoGhast2.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto3.CFrame=CFrame.new(OctoGhast3.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto6.CFrame=CFrame.new(OctoGhast6.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto7.CFrame=CFrame.new(OctoGhast7.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto8.CFrame=CFrame.new(OctoGhast8.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- wait()
- end
- shootsnd:Play()
- local GhastShotaA = new("Part",OctoGhast1)
- GhastShotaA.Shape = "Cylinder"
- GhastShotaA.Size = v3(100,5,5)
- GhastShotaA.BrickColor = bc("Bright red")
- GhastShotaA.Material = "Neon"
- GhastShotaA.CanCollide = false
- GhastShotaA.Anchored = true
- GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaB = new("Part",OctoGhast2)
- GhastShotaB.Shape = "Cylinder"
- GhastShotaB.Size = v3(100,5,5)
- GhastShotaB.BrickColor = bc("Bright red")
- GhastShotaB.Material = "Neon"
- GhastShotaB.CanCollide = false
- GhastShotaB.Anchored = true
- GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaC = new("Part",OctoGhast3)
- GhastShotaC.Shape = "Cylinder"
- GhastShotaC.Size = v3(100,5,5)
- GhastShotaC.BrickColor = bc("Bright red")
- GhastShotaC.Material = "Neon"
- GhastShotaC.CanCollide = false
- GhastShotaC.Anchored = true
- GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaD = new("Part",OctoGhast4)
- GhastShotaD.Shape = "Cylinder"
- GhastShotaD.Size = v3(100,5,5)
- GhastShotaD.BrickColor = bc("Bright red")
- GhastShotaD.Material = "Neon"
- GhastShotaD.CanCollide = false
- GhastShotaD.Anchored = true
- GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaE = new("Part",OctoGhast5)
- GhastShotaE.Shape = "Cylinder"
- GhastShotaE.Size = v3(100,5,5)
- GhastShotaE.BrickColor = bc("Bright red")
- GhastShotaE.Material = "Neon"
- GhastShotaE.CanCollide = false
- GhastShotaE.Anchored = true
- GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaF = new("Part",OctoGhast6)
- GhastShotaF.Shape = "Cylinder"
- GhastShotaF.Size = v3(100,5,5)
- GhastShotaF.BrickColor = bc("Bright red")
- GhastShotaF.Material = "Neon"
- GhastShotaF.CanCollide = false
- GhastShotaF.Anchored = true
- GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaG = new("Part",OctoGhast7)
- GhastShotaG.Shape = "Cylinder"
- GhastShotaG.Size = v3(100,5,5)
- GhastShotaG.BrickColor = bc("Bright red")
- GhastShotaG.Material = "Neon"
- GhastShotaG.CanCollide = false
- GhastShotaG.Anchored = true
- GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastShotaH = new("Part",OctoGhast8)
- GhastShotaH.Shape = "Cylinder"
- GhastShotaH.Size = v3(100,5,5)
- GhastShotaH.BrickColor = bc("Bright red")
- GhastShotaH.Material = "Neon"
- GhastShotaH.CanCollide = false
- GhastShotaH.Anchored = true
- GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaA.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaB.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaC.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaD.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaE.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaF.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaG.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaH.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.2)
- for i = 1,20 do
- GhastShotaA.Size = GhastShotaA.Size+v3(0,-1,-1)
- GhastShotaB.Size = GhastShotaB.Size+v3(0,-1,-1)
- GhastShotaC.Size = GhastShotaC.Size+v3(0,-1,-1)
- GhastShotaD.Size = GhastShotaD.Size+v3(0,-1,-1)
- GhastShotaE.Size = GhastShotaE.Size+v3(0,-1,-1)
- GhastShotaF.Size = GhastShotaF.Size+v3(0,-1,-1)
- GhastShotaG.Size = GhastShotaG.Size+v3(0,-1,-1)
- GhastShotaH.Size = GhastShotaH.Size+v3(0,-1,-1)
- GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastShotaA.Transparency = GhastShotaA.Transparency+0.1
- GhastShotaB.Transparency = GhastShotaB.Transparency+0.1
- GhastShotaC.Transparency = GhastShotaC.Transparency+0.1
- GhastShotaD.Transparency = GhastShotaD.Transparency+0.1
- GhastShotaE.Transparency = GhastShotaE.Transparency+0.1
- GhastShotaF.Transparency = GhastShotaF.Transparency+0.1
- GhastShotaG.Transparency = GhastShotaG.Transparency+0.1
- GhastShotaH.Transparency = GhastShotaH.Transparency+0.1
- wait()
- end
- wait(0.1)
- debounce = true
- for i = 1,20 do
- OctoGhast1.Transparency = OctoGhast1.Transparency+0.1
- OctoGhast2.Transparency = OctoGhast2.Transparency+0.1
- OctoGhast3.Transparency = OctoGhast3.Transparency+0.1
- OctoGhast4.Transparency = OctoGhast4.Transparency+0.1
- OctoGhast5.Transparency = OctoGhast5.Transparency+0.1
- OctoGhast6.Transparency = OctoGhast6.Transparency+0.1
- OctoGhast7.Transparency = OctoGhast7.Transparency+0.1
- OctoGhast8.Transparency = OctoGhast8.Transparency+0.1
- wait()
- end
- OctoGhast1:destroy()
- OctoGhast2:destroy()
- OctoGhast3:destroy()
- OctoGhast4:destroy()
- OctoGhast5:destroy()
- OctoGhast6:destroy()
- OctoGhast7:destroy()
- OctoGhast8:destroy()
- end
- end
- end
- local bonehit2nd = new("Sound",char)
- bonehit2nd.SoundId = "rbxassetid://401680588"
- bonehit2nd.Volume = 5
- local bonehit3nd = new("Sound",char)
- bonehit3nd.SoundId = "rbxassetid://306247749"
- bonehit3nd.Volume = 5
- function Bones()
- if RootPart.Velocity.y < 1 and hitfloor==nil then
- if debounce == true then
- debounce = false
- bonehit2nd:Play()
- for i = 1,30 do
- local bone = new("Part",char)
- bone.Touched:connect(function(hit)
- if hit.Parent == char 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
- for i = 1,20 do
- v.Health = v.Health-2
- wait(1)
- end
- wait(0.9)
- padebounce = true
- end
- end
- end
- end)
- bone.CFrame = char.HumanoidRootPart.CFrame
- bone.CanCollide = false
- bone.Material = "SmoothPlastic"
- bone.BrickColor = bc("White")
- bone.Anchored = true
- bone.CFrame = (char.HumanoidRootPart.CFrame + Vector3.new(math.random(-50,50),-7,math.random(-50,50))) * 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()
- bonehit3nd:Play()
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,1,0)
- wait()
- end
- wait(1)
- for i = 1, 9 do
- wait(.1)
- bone.Transparency = bone.Transparency + .3
- end
- bone:Destroy()
- end)
- gdisp()
- end
- end
- wait(1)
- debounce = true
- end
- end
- AheadShotsdebounce = true
- function AheadShots()
- if equiped == true then
- if AheadShotsdebounce == true then
- AheadShotsdebounce = false
- local targetahead = new("Part",char)
- targetahead.Shape = "Ball"
- targetahead.Anchored = true
- targetahead.CanCollide = false
- targetahead.BrickColor = bc("Toothpaste")
- targetahead.Material = "Neon"
- targetahead.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)
- targetahead.Transparency = 1
- local targetahead2 = new("Part",char)
- targetahead2.Shape = "Ball"
- targetahead2.CanCollide = false
- targetahead2.Anchored = true
- targetahead2.BrickColor = bc("Toothpaste")
- targetahead2.Material = "Neon"
- targetahead2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-30)
- targetahead2.Transparency = 1
- local targetahead3 = new("Part",char)
- targetahead3.Shape = "Ball"
- targetahead3.Anchored = true
- targetahead3.CanCollide = false
- targetahead3.BrickColor = bc("Toothpaste")
- targetahead3.Material = "Neon"
- targetahead3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-50)
- targetahead3.Transparency = 1
- local Blasta1 = new("Part",char)
- Blasta1.Size = v3(1,1,1)
- Blasta1.CanCollide = false
- Blasta1.Name = "Blasta1"
- Blasta1.Material = "Neon"
- Blasta1.BrickColor = bc("White")
- Blasta1.Shape = "Ball"
- Blasta1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta1.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local blasta1bg=Instance.new("BodyGyro",Blasta1)
- blasta1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- blasta1bg.D=400
- blasta1bp = Instance.new("BodyPosition", Blasta1)
- local Blasta2 = new("Part",char)
- Blasta2.Size = v3(1,1,1)
- Blasta2.CanCollide = false
- Blasta2.Name = "Blasta2"
- Blasta2.Material = "Neon"
- Blasta2.BrickColor = bc("White")
- Blasta2.Shape = "Ball"
- Blasta2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta2.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta2bg=Instance.new("BodyGyro",Blasta2)
- Blasta2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta2bg.D=400
- Blasta2bp = Instance.new("BodyPosition", Blasta2)
- local Blasta3 = new("Part",char)
- Blasta3.Size = v3(1,1,1)
- Blasta3.CanCollide = false
- Blasta3.Name = "Blasta3"
- Blasta3.Material = "Neon"
- Blasta3.BrickColor = bc("White")
- Blasta3.Shape = "Ball"
- Blasta3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta3.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta3bg=Instance.new("BodyGyro",Blasta3)
- Blasta3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta3bg.D=400
- Blasta3bp = Instance.new("BodyPosition", Blasta3)
- local Blasta4 = new("Part",char)
- Blasta4.Size = v3(1,1,1)
- Blasta4.CanCollide = false
- Blasta4.Name = "Blasta4"
- Blasta4.Material = "Neon"
- Blasta4.BrickColor = bc("White")
- Blasta4.Shape = "Ball"
- Blasta4.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta4.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta4)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta4bg=Instance.new("BodyGyro",Blasta4)
- Blasta4bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta4bg.D=400
- Blasta4bp = Instance.new("BodyPosition", Blasta4)
- local Blasta5 = new("Part",char)
- Blasta5.Size = v3(1,1,1)
- Blasta5.CanCollide = false
- Blasta5.Name = "Blasta5"
- Blasta5.Material = "Neon"
- Blasta5.BrickColor = bc("White")
- Blasta5.Shape = "Ball"
- Blasta5.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta5.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta5)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta5bg=Instance.new("BodyGyro",Blasta5)
- Blasta5bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta5bg.D=400
- Blasta5bp = Instance.new("BodyPosition", Blasta5)
- local Blasta6 = new("Part",char)
- Blasta6.Size = v3(1,1,1)
- Blasta6.CanCollide = false
- Blasta6.Name = "Blasta6"
- Blasta6.Material = "Neon"
- Blasta6.BrickColor = bc("White")
- Blasta6.Shape = "Ball"
- Blasta6.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta6.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta6)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta6bg=Instance.new("BodyGyro",Blasta6)
- Blasta6bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta6bg.D=400
- Blasta6bp = Instance.new("BodyPosition", Blasta6)
- for i = 1,50 do
- blasta1bp.Position=(targetahead.CFrame*CFrame.new(20,2,0)).p
- blasta1bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
- Blasta2bp.Position=(targetahead2.CFrame*CFrame.new(20,2,0)).p
- Blasta2bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
- Blasta3bp.Position=(targetahead3.CFrame*CFrame.new(20,2,0)).p
- Blasta3bg.CFrame=CFrame.new(Blasta3.Position,targetahead3.Position)
- Blasta4bp.Position=(targetahead.CFrame*CFrame.new(-20,2,0)).p
- Blasta4bg.CFrame=CFrame.new(Blasta4.Position,targetahead.Position)
- Blasta5bp.Position=(targetahead2.CFrame*CFrame.new(-20,2,0)).p
- Blasta5bg.CFrame=CFrame.new(Blasta5.Position,targetahead2.Position)
- Blasta6bp.Position=(targetahead3.CFrame*CFrame.new(-20,2,0)).p
- Blasta6bg.CFrame=CFrame.new(Blasta6.Position,targetahead3.Position)
- wait()
- end
- shootsnd:Play()
- local GhastAcrossShot1 = new("Part",Blasta1)
- GhastAcrossShot1.Shape = "Cylinder"
- GhastAcrossShot1.Size = v3(100,5,5)
- GhastAcrossShot1.BrickColor = bc("Bright red")
- GhastAcrossShot1.Material = "Neon"
- GhastAcrossShot1.CanCollide = false
- GhastAcrossShot1.Anchored = true
- GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot2 = new("Part",Blasta2)
- GhastAcrossShot2.Shape = "Cylinder"
- GhastAcrossShot2.Size = v3(100,5,5)
- GhastAcrossShot2.BrickColor = bc("Bright red")
- GhastAcrossShot2.Material = "Neon"
- GhastAcrossShot2.CanCollide = false
- GhastAcrossShot2.Anchored = true
- GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot3 = new("Part",Blasta2)
- GhastAcrossShot3.Shape = "Cylinder"
- GhastAcrossShot3.Size = v3(100,5,5)
- GhastAcrossShot3.BrickColor = bc("Bright red")
- GhastAcrossShot3.Material = "Neon"
- GhastAcrossShot3.CanCollide = false
- GhastAcrossShot3.Anchored = true
- GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot4 = new("Part",Blasta4)
- GhastAcrossShot4.Shape = "Cylinder"
- GhastAcrossShot4.Size = v3(100,5,5)
- GhastAcrossShot4.BrickColor = bc("Bright red")
- GhastAcrossShot4.Material = "Neon"
- GhastAcrossShot4.CanCollide = false
- GhastAcrossShot4.Anchored = true
- GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot5 = new("Part",Blasta5)
- GhastAcrossShot5.Shape = "Cylinder"
- GhastAcrossShot5.Size = v3(100,5,5)
- GhastAcrossShot5.BrickColor = bc("Bright red")
- GhastAcrossShot5.Material = "Neon"
- GhastAcrossShot5.CanCollide = false
- GhastAcrossShot5.Anchored = true
- GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot6 = new("Part",Blasta5)
- GhastAcrossShot6.Shape = "Cylinder"
- GhastAcrossShot6.Size = v3(100,5,5)
- GhastAcrossShot6.BrickColor = bc("Bright red")
- GhastAcrossShot6.Material = "Neon"
- GhastAcrossShot6.CanCollide = false
- GhastAcrossShot6.Anchored = true
- GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot1.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot3.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot4.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot5.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot6.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.5)
- for i = 1,20 do
- GhastAcrossShot1.Size = GhastAcrossShot1.Size+v3(0,-1,-1)
- GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot1.Transparency = GhastAcrossShot1.Transparency+0.1
- GhastAcrossShot2.Size = GhastAcrossShot2.Size+v3(0,-1,-1)
- GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot2.Transparency = GhastAcrossShot2.Transparency+0.1
- GhastAcrossShot3.Size = GhastAcrossShot3.Size+v3(0,-1,-1)
- GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot3.Transparency = GhastAcrossShot3.Transparency+0.1
- GhastAcrossShot4.Size = GhastAcrossShot4.Size+v3(0,-1,-1)
- GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot4.Transparency = GhastAcrossShot4.Transparency+0.1
- GhastAcrossShot5.Size = GhastAcrossShot5.Size+v3(0,-1,-1)
- GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot5.Transparency = GhastAcrossShot5.Transparency+0.1
- GhastAcrossShot6.Size = GhastAcrossShot6.Size+v3(0,-1,-1)
- GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot6.Transparency = GhastAcrossShot6.Transparency+0.1
- wait()
- end
- GhastAcrossShot1:Destroy()
- GhastAcrossShot2:Destroy()
- GhastAcrossShot3:Destroy()
- GhastAcrossShot4:Destroy()
- GhastAcrossShot5:Destroy()
- GhastAcrossShot6:Destroy()
- for i = 1,20 do
- Blasta1.Transparency = Blasta1.Transparency+0.1
- Blasta2.Transparency = Blasta2.Transparency+0.1
- Blasta3.Transparency = Blasta3.Transparency+0.1
- Blasta4.Transparency = Blasta4.Transparency+0.1
- Blasta5.Transparency = Blasta5.Transparency+0.1
- Blasta6.Transparency = Blasta6.Transparency+0.1
- wait()
- end
- Blasta1:Destroy()
- Blasta2:Destroy()
- Blasta3:Destroy()
- Blasta4:Destroy()
- Blasta5:Destroy()
- Blasta6:Destroy()
- wait(0.5)
- AheadShotsdebounce = true
- end
- end
- end
- local BlasterRaindebounce = true
- function BlasterRain()
- if equiped == true then
- if BlasterRaindebounce == true then
- BlasterRaindebounce = false
- local RainTarget1 = new("Part",char)
- RainTarget1.BrickColor = bc("White")
- RainTarget1.Shape = "Ball"
- RainTarget1.Material = "Neon"
- RainTarget1.Anchored = true
- RainTarget1.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-20)
- RainTarget1.Transparency = 1
- local RainTarget2 = new("Part",char)
- RainTarget2.BrickColor = bc("White")
- RainTarget2.Shape = "Ball"
- RainTarget2.Material = "Neon"
- RainTarget2.Anchored = true
- RainTarget2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-40)
- RainTarget2.Transparency = 1
- local RainTarget3 = new("Part",char)
- RainTarget3.BrickColor = bc("White")
- RainTarget3.Shape = "Ball"
- RainTarget3.Material = "Neon"
- RainTarget3.Anchored = true
- RainTarget3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-60)
- RainTarget3.Transparency = 1
- local RainBlaster1 = new("Part",char)
- RainBlaster1.Size = v3(1,1,1)
- RainBlaster1.CanCollide = false
- RainBlaster1.Name = "RainBlaster1"
- RainBlaster1.Material = "Neon"
- RainBlaster1.BrickColor = bc("White")
- RainBlaster1.Shape = "Ball"
- RainBlaster1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- RainBlaster1.Anchored = false
- local zxc = Instance.new("SpecialMesh",RainBlaster1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local RainBlaster3 = new("Part",char)
- RainBlaster3.Size = v3(1,1,1)
- RainBlaster3.CanCollide = false
- RainBlaster3.Name = "RainBlaster3"
- RainBlaster3.Material = "Neon"
- RainBlaster3.BrickColor = bc("White")
- RainBlaster3.Shape = "Ball"
- RainBlaster3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- RainBlaster3.Anchored = false
- local RainBlaster3bg=Instance.new("BodyGyro",RainBlaster3)
- RainBlaster3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- RainBlaster3bg.D=400
- RainBlaster3bp = Instance.new("BodyPosition", RainBlaster3)
- local zxc = Instance.new("SpecialMesh",RainBlaster3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local RainBlaster1bg=Instance.new("BodyGyro",RainBlaster1)
- RainBlaster1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- RainBlaster1bg.D=400
- RainBlaster1bp = Instance.new("BodyPosition", RainBlaster1)
- local RainBlaster2 = new("Part",char)
- RainBlaster2.Size = v3(1,1,1)
- RainBlaster2.CanCollide = false
- RainBlaster2.Name = "RainBlaster1"
- RainBlaster2.Material = "Neon"
- RainBlaster2.BrickColor = bc("White")
- RainBlaster2.Shape = "Ball"
- RainBlaster2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- RainBlaster2.Anchored = false
- local zxc = Instance.new("SpecialMesh",RainBlaster2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local RainBlaster2bg=Instance.new("BodyGyro",RainBlaster2)
- RainBlaster2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- RainBlaster2bg.D=400
- RainBlaster2bp = Instance.new("BodyPosition", RainBlaster2)
- for i = 1,60 do
- RainBlaster1bp.Position=(RainTarget1.CFrame*CFrame.new(0,20,0)).p
- RainBlaster1bg.CFrame=CFrame.new(RainBlaster1.Position,RainTarget1.Position)
- RainBlaster3bp.Position=(RainTarget3.CFrame*CFrame.new(0,20,0)).p
- RainBlaster3bg.CFrame=CFrame.new(RainBlaster3.Position,RainTarget3.Position)
- RainBlaster2bp.Position=(RainTarget2.CFrame*CFrame.new(0,20,0)).p
- RainBlaster2bg.CFrame=CFrame.new(RainBlaster2.Position,RainTarget2.Position)
- wait()
- end
- shootsnd:Play()
- local RainBlasterShot1 = new("Part",RainBlaster1)
- RainBlasterShot1.Shape = "Cylinder"
- RainBlasterShot1.Size = v3(100,5,5)
- RainBlasterShot1.BrickColor = bc("Bright red")
- RainBlasterShot1.Material = "Neon"
- RainBlasterShot1.CanCollide = false
- RainBlasterShot1.Anchored = true
- RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local RainBlasterShot2 = new("Part",RainBlaster2)
- RainBlasterShot2.Shape = "Cylinder"
- RainBlasterShot2.Size = v3(100,5,5)
- RainBlasterShot2.BrickColor = bc("Bright red")
- RainBlasterShot2.Material = "Neon"
- RainBlasterShot2.CanCollide = false
- RainBlasterShot2.Anchored = true
- RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- local RainBlasterShot3 = new("Part",RainBlaster2)
- RainBlasterShot3.Shape = "Cylinder"
- RainBlasterShot3.Size = v3(100,5,5)
- RainBlasterShot3.BrickColor = bc("Bright red")
- RainBlasterShot3.Material = "Neon"
- RainBlasterShot3.CanCollide = false
- RainBlasterShot3.Anchored = true
- RainBlasterShot3.CFrame = RainBlaster3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot1.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- RainBlasterShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.5)
- for i = 1,20 do
- wait()
- RainBlasterShot1.Size = RainBlasterShot1.Size+v3(0,-1,-1)
- RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot1.Transparency = RainBlasterShot1.Transparency+0.1
- RainBlasterShot2.Size = RainBlasterShot2.Size+v3(0,-1,-1)
- RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot2.Transparency = RainBlasterShot2.Transparency+0.1
- RainBlasterShot3.Size = RainBlasterShot3.Size+v3(0,-1,-1)
- RainBlasterShot3.CFrame = RainBlaster3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot3.Transparency = RainBlasterShot3.Transparency+0.1
- end
- for i = 1,20 do
- RainBlaster1.Transparency = RainBlaster1.Transparency+0.1
- RainBlaster2.Transparency = RainBlaster2.Transparency+0.1
- RainBlaster3.Transparency = RainBlaster3.Transparency+0.1
- wait()
- end
- RainBlaster1:Destroy()
- RainBlaster2:Destroy()
- RainBlaster3:Destroy()
- RainBlasterShot1:Destroy()
- RainBlasterShot2:Destroy()
- wait(0.5)
- BlasterRaindebounce = true
- end
- end
- end
- local grabing = false
- function grab()
- local hit = mouse.Target
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health-50
- local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
- wait(0.6)
- bodyp:destroy()
- end
- end
- end
- function GiantBlast3r()
- if equiped == true then
- if debounce == true then
- debounce = false
- local GiantBlaster = new("Part",char)
- GiantBlaster.Name = "GiantBlaster"
- GiantBlaster.CanCollide = false
- GiantBlaster.Anchored = false
- GiantBlaster.BrickColor = bc("White")
- GiantBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(10,0,0)
- GiantBlaster.Transparency = 1
- local zxc = Instance.new("SpecialMesh",GiantBlaster)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(6,6,6)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local GiantBlasterbg=Instance.new("BodyGyro",GiantBlaster)
- GiantBlasterbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- GiantBlasterbg.D=400
- GiantBlasterbp = Instance.new("BodyPosition", GiantBlaster)
- for i = 1,50 do
- GiantBlasterbg.CFrame=CFrame.new(GiantBlaster.Position,mouse.Hit.p)
- GiantBlasterbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(0,30,0)).p
- GiantBlaster.Transparency = GiantBlaster.Transparency -0.1
- wait()
- end
- local GhastShot1 = new("Part",GiantBlaster)
- GhastShot1.Shape = "Cylinder"
- GhastShot1.Size = v3(400,10,10)
- GhastShot1.BrickColor = bc("Bright red")
- GhastShot1.Material = "Neon"
- GhastShot1.CanCollide = false
- GhastShot1.Anchored = true
- GhastShot1.CFrame = GiantBlaster.CFrame*CFrame.new(0,0,-200)*CFrame.Angles(0,rad(90),0)
- GhastShot1.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-20
- wait(0.01)
- end
- if hitnumb == 1 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
- end
- if hitnumb == 2 then
- ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- shootsnd:Play()
- wait(0.5)
- for i = 1,10 do
- GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
- GhastShot1.CFrame = GiantBlaster.CFrame*CFrame.new(0,0,-200)*CFrame.Angles(0,rad(90),0)
- GhastShot1.Transparency = GhastShot1.Transparency+0.1
- wait()
- end
- GhastShot1:Destroy()
- debounce = true
- for i = 1,50 do
- GiantBlaster.Transparency = GiantBlaster.Transparency+0.1
- wait()
- end
- GiantBlaster:Destroy()
- end
- end
- end
- mouse.KeyDown:connect(function(k)
- if k == "h" then
- GiantBlast3r()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- AheadShots()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "y" then
- grab()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "g" then
- BlasterRain()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "t" then
- Bones()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "z" then
- DodgeLeft()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- octo()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "x" then
- RightDodge()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "c" then
- equip()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "f" then
- mount()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "r" then
- cross()
- end
- end)
- p.Character.Humanoid.Died:connect(function()
- local jkl = Instance.new("Sound",Workspace)
- jkl.SoundId = "rbxassetid://427025525"
- jkl.Volume = 10
- jkl:Play()
- for _, V in pairs(char:getChildren()) do
- if V:isA("BasePart") then
- V.Transparency = 1
- elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then
- V.Handle.Transparency = 1
- end
- end
- char.Head.face:destroy()
- for i = 1,50 do
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
- dust = Instance.new("Part")
- dust.Locked = true
- dust.Size = Vector3.new(0.1,0.1,0.1)
- dust.BrickColor = BrickColor.new("Bright red")
- dust.Transparency = 0
- dust.TopSurface = "Smooth"
- dust.BottomSurface = "Smooth"
- dust.CFrame = char.HumanoidRootPart.CFrame
- dust.CanCollide = true
- dust.Reflectance = 0.1
- dust.Material = "Neon"
- dust.Parent = char
- dust.Anchored = false
- end
- end)
- DayNightCycle = true --[1] Cycles through day and night.
- DynamicLighting = true --[2] Give your game a dynamic look?
- SimulatedShadows = true --[3] Make the shadows stand out. (Enable [2] for this to work)
- DarkAmbient = true --[4] Gives your game darkness, great for zombie games.
- AmbientBrightness = 55 --[5] Number Must between 0 to 255. (Enable [2] and [4] for this to work)
- Fog = true --[6] Give your game foggy look.
- FogDistance = 1500 --[7] How far will the fog be away from you. (Enable [6] for this to work)
- ---------------------------------------------------------------------------------------------------------------
- if Fog then
- game:GetService("Lighting").FogEnd = FogDistance
- end
- if DarkAmbient and DynamicLighting then
- game:GetService("Lighting").OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255)
- end
- if DynamicLighting then
- game:GetService("Lighting").GlobalShadows = true
- if SimulatedShadows then
- game:GetService("Lighting").Brightness = 1.5
- game:GetService("Lighting").Ambient = Color3.new(0/255, 0/255, 0/255)
- game:GetService("Lighting").ShadowColor = Color3.new(61/255, 61/255, 61/255)
- end
- end
- --[[
- [Head/Waist Follow Mouse/Camera Script.]
- [Works with both R6 and R15, lets you turn your character's head and waist towards your mouse/camera.]
- [Scripted by (Unknown), upgraded by OhHeyItsCory.]
- [I'm not sure who made the original script and the person I found it from definitely didn't make it.]
- [If you find the original creator, please let me know so I can properly credit them <3]
- [Anyways, here's a list of what I've added.]
- [Waist rotation. (Previously, only the head turned.)]
- [Tweening. (Basically, animating the rotation instead of instantly turning.)]
- [Full body rotation. (If set to true, rotates the entire body towards the mouse.)]
- [Specific rotation limits. (The original script used one variable to set the limits of both horizontal and vertical rotation, now there's variables for both limits!)]
- --]]
- wait()
- --[Pre-Funcs]:
- local Ang = CFrame.Angles --[Storing these as variables so I dont have to type them out.]
- local aSin = math.asin
- local aTan = math.atan
- --[Constants]:
- local Cam = game.Workspace.CurrentCamera
- local Plr = game.Players.LocalPlayer
- local Mouse = Plr:GetMouse()
- local Body = Plr.Character or Plr.CharacterAdded:wait()
- local Head = Body:WaitForChild("Head")
- local Hum = Body:WaitForChild("Humanoid")
- local Core = Body:WaitForChild("HumanoidRootPart")
- local IsR6 = (Hum.RigType.Value==0) --[Checking if the player is using R15 or R6.]
- local Trso = (IsR6 and Body:WaitForChild("Torso")) or Body:WaitForChild("UpperTorso")
- local Neck = (IsR6 and Trso:WaitForChild("Neck")) or Head:WaitForChild("Neck") --[Once we know the Rig, we know what to find.]
- local Waist = (not IsR6 and Trso:WaitForChild("Waist")) --[R6 doesn't have a waist joint, unfortunately.]
- --[[
- [Whether rotation follows the camera or the mouse.]
- [Useful with tools if true, but camera tracking runs smoother.]
- --]]
- local MseGuide = false
- --[[
- [Whether the whole character turns to face the mouse.]
- [If set to true, MseGuide will be set to true and both HeadHorFactor and BodyHorFactor will be set to 0]
- --]]
- local TurnCharacterToMouse = false
- --[[
- [Horizontal and Vertical limits for head and body tracking.]
- [Setting to 0 negates tracking, setting to 1 is normal tracking, and setting to anything higher than 1 goes past real life head/body rotation capabilities.]
- --]]
- local HeadHorFactor = 1
- local HeadVertFactor = 0.6
- local BodyHorFactor = 0.5
- local BodyVertFactor = 0.4
- --[[
- [How fast the body rotates.]
- [Setting to 0 negates tracking, and setting to 1 is instant rotation. 0.5 is a nice in-between that works with MseGuide on or off.]
- [Setting this any higher than 1 causes weird glitchy shaking occasionally.]
- --]]
- local UpdateSpeed = 0.5
- local NeckOrgnC0 = Neck.C0 --[Get the base C0 to manipulate off of.]
- local WaistOrgnC0 = (not IsR6 and Waist.C0) --[Get the base C0 to manipulate off of.]
- --[Setup]:
- Neck.MaxVelocity = 1/3
- -- Activation]:
- if TurnCharacterToMouse == true then
- MseGuide = true
- HeadHorFactor = 0
- BodyHorFactor = 0
- end
- game:GetService("RunService").RenderStepped:Connect(function()
- local CamCF = Cam.CoordinateFrame
- if ((IsR6 and Body["Torso"]) or Body["UpperTorso"])~=nil and Body["Head"]~=nil then --[Check for the Torso and Head...]
- local TrsoLV = Trso.CFrame.lookVector
- local HdPos = Head.CFrame.p
- if IsR6 and Neck or Neck and Waist then --[Make sure the Neck still exists.]
- if Cam.CameraSubject:IsDescendantOf(Body) or Cam.CameraSubject:IsDescendantOf(Plr) then
- local Dist = nil;
- local Diff = nil;
- if not MseGuide then --[If not tracking the Mouse then get the Camera.]
- Dist = (Head.CFrame.p-CamCF.p).magnitude
- Diff = Head.CFrame.Y-CamCF.Y
- if not IsR6 then --[R6 and R15 Neck rotation C0s are different; R15: X axis inverted and Z is now the Y.]
- Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aSin(Diff/Dist)*HeadVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
- Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang((aSin(Diff/Dist)*BodyVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
- else --[R15s actually have the properly oriented Neck CFrame.]
- Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aSin(Diff/Dist)*HeadVertFactor), 0, -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor),UpdateSpeed/2)
- end
- else
- local Point = Mouse.Hit.p
- Dist = (Head.CFrame.p-Point).magnitude
- Diff = Head.CFrame.Y-Point.Y
- if not IsR6 then
- Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aTan(Diff/Dist)*HeadVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
- Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang(-(aTan(Diff/Dist)*BodyVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
- else
- Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aTan(Diff/Dist)*HeadVertFactor), 0, (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor), UpdateSpeed/2)
- end
- end
- end
- end
- end
- if TurnCharacterToMouse == true then
- Hum.AutoRotate = false
- Core.CFrame = Core.CFrame:lerp(CFrame.new(Core.Position, Vector3.new(Mouse.Hit.p.x, Core.Position.Y, Mouse.Hit.p.z)), UpdateSpeed / 2)
- else
- Hum.AutoRotate = true
- end
- end)
- local p = game:GetService("Players").LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local forceup = false
- local forcedown = false
- local forceright = false
- local forceleft = false
- function up()
- local Hit = mouse.Target
- if mouse ~= nil then
- if mouse.Target ~= nil then
- for _, v in pairs(Hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if forceup == false then
- forceup = true
- local bodyp=Instance.new("BodyPosition",Hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(Hit.Parent.HumanoidRootPart.CFrame*CFrame.new(0,10,0)).p
- end
- end
- end
- end
- end
- end
- function UpRelease()
- if forceup == true then
- forceup = false
- bodyp:destroy()
- end
- end
- function down()
- local Hit = mouse.Target
- if mouse ~= nil then
- if mouse.Target ~= nil then
- for _, v in pairs(Hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if forcedown == false then
- forcedown = true
- local bodyp=Instance.new("BodyPosition",Hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(Hit.Parent.HumanoidRootPart.CFrame*CFrame.new(0,-10,0)).p
- end
- end
- end
- end
- end
- end
- function downRelease()
- if forcedown == true then
- forcedown = false
- bodyp:destroy()
- end
- end
- function left()
- local Hit = mouse.Target
- if mouse ~= nil then
- if mouse.Target ~= nil then
- for _, v in pairs(Hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if forceleft == false then
- forceleft = true
- local bodyp=Instance.new("BodyPosition",Hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(Hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
- end
- end
- end
- end
- end
- end
- function leftRelease()
- if forceleft == true then
- forceleft = false
- bodyp:destroy()
- end
- end
- function right()
- local Hit = mouse.Target
- if mouse ~= nil then
- if mouse.Target ~= nil then
- for _, v in pairs(Hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if forceright == false then
- forceright = true
- local bodyp=Instance.new("BodyPosition",Hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(Hit.Parent.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p
- end
- end
- end
- end
- end
- end
- function rightRelease()
- if forceright == true then
- forceright = false
- bodyp:destroy()
- end
- end
- mouse.KeyDown:connect(function(k)
- if k == "i" then
- up()
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k == "i" then
- UpRelease()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "k" then
- down()
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k == "k" then
- downRelease()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "l" then
- left()
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k =="l" then
- leftRelease()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "j" then
- right()
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k == "j" then
- rightRelease()
- end
- end)
- end)
- end))
- TextButton11.Name = "PlaceHolder"
- TextButton11.Parent = Frame1
- TextButton11.Transparency = 0.5
- TextButton11.Size = UDim2.new(0, 100, 0, 30)
- TextButton11.Text = "Omega's_God"
- TextButton11.Position = UDim2.new(0.399999917, -107, 0.100000024, 75)
- TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton11.BackgroundTransparency = 0.5
- TextButton11.BorderSizePixel = 0
- TextButton11.Font = Enum.Font.SourceSansBold
- TextButton11.FontSize = Enum.FontSize.Size14
- TextButton11.TextColor3 = Color3.new(0, 0, 0)
- TextButton11.TextTransparency = 0.5
- TextButton11.TextWrapped = true
- Frame12.Name = "styleLine"
- Frame12.Parent = TextButton11
- Frame12.Size = UDim2.new(0, 5, 1, 0)
- Frame12.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame12.BorderSizePixel = 0
- Script13.Parent = TextButton11
- table.insert(cors,sandbox(Script13,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- local id = 471974203
- local p = game.Players.LocalPlayer
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local hed = chr.Head
- local rutprt = chr.HumanoidRootPart
- local torso = chr.Torso
- local otheranims=false
- local swimming=false
- ---//*DEBOUNCES
- canChangeFromC = true
- canChangeFromA = true
- canChangeFromCF = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ----*\\
- ---//*AUDIO FOR MODES
- ---
- dorado = Instance.new("Sound",chr) ---casualFighting
- dorado.SoundId = "rbxassetid://188095869"
- dorado.Volume = 2
- dorado.Looped = true
- ---
- marxA = Instance.new("Sound",chr) ---Annoyed
- marxA.SoundId = "rbxassetid://464032364"
- marxA.Pitch = 0.5
- marxA.Volume = 2
- marxA.Looped = true
- ---
- ----*\\
- --//*Instances
- AAura = Instance.new("ParticleEmitter")
- CFAura1 = Instance.new("ParticleEmitter")
- CFAura2 = Instance.new("ParticleEmitter")
- RuneP = Instance.new("Part",chr.Torso)
- RuneP.Parent = nil
- annoyedPOWERUP = Instance.new("Sound")
- casualFightingPOWERUP = Instance.new("Sound")
- ShieldP = Instance.new("Part")
- ShieldP.Parent = nil
- local ShieldM = Instance.new("SpecialMesh")
- ShieldHolder = Instance.new("Model",chr)
- RShieldP = Instance.new("Part")
- RShieldP.Parent = nil
- ---*\\
- --//*MODES (in order of magnitude)
- local calm = true --default
- local annoyed = false
- local casualFighting = false
- local seriousFighting = false
- local planetaryThreat = false
- local galacticThreat = false
- local universalThreat = false
- ----
- local multiversalThreat = false
- -----*\\
- chr.Animate.Disabled=true
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local RunSpeed=30
- local WlkSpeed=16
- local SwimSpeed=14
- local SwimDashSpeed=28
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- coroutine.wrap(function()
- for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- local angles = CFrame.Angles
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- local rutwald=Instance.new('Weld',rutprt)
- rutwald.Part0=rutprt
- rutwald.Part1=torso
- rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- --Rage modes (maybe)
- casualR=false
- annoyedR=false
- casualFightingR=false
- seriousFightingR=false
- planetaryThreatR=false
- galacticThreatR=false
- universalThreatR=false
- miltiversalThreatR=false
- -----
- maus.KeyDown:connect(function(kei)
- if kei == "1" then
- if canChangeFromC == true then
- canChangeFromC = false
- calm = true -- active mode
- annoyed = false
- casualFighting = false
- seriousFighting = false
- planetaryThreat = false
- galacticThreat = false
- universalThreat = false
- multiversalThreat = false
- dorado:Stop()
- marxA:Stop()
- ---------EFFECTS
- CFAura1.Parent = nil
- CFAura2.Parent = nil
- AAura.Parent = nil
- ---------
- ---------DEBOUNCE ENABLE
- wait(1)
- canChangeFromCF = true
- canChangeFromA = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- end
- end
- end)
- maus.KeyDown:connect(function(kei)
- if kei == "2" then
- if canChangeFromA == true then
- canChangeFromA = false
- calm = false
- annoyed = true --active mode
- casualFighting = false
- seriousFighting = false
- planetaryThreat = false
- galacticThreat = false
- universalThreat = false
- multiversalThreat = false
- dorado:Stop()
- marxA:Play()
- ---------EFFECTS
- CFAura1.Parent = nil
- CFAura2.Parent = nil
- AAura.Parent = chr.Torso
- annoyedPOWERUP.Parent = chr.Torso
- annoyedPOWERUP.Volume = 3
- annoyedPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
- annoyedPOWERUP:Play()
- AAura.Texture = "rbxassetid://347730682"
- local color1 = Color3.new(127,0,0)
- local color2 = Color3.new(127,0,0)
- AAura.Color = ColorSequence.new(color1,color2)
- AAura.Size = NumberSequence.new(6,6,6,6,6,6)
- AAura.Lifetime = NumberRange.new(0.3,0.3,0.3,0.3,0.3)
- AAura.Rate = 20
- AAura.Transparency = NumberSequence.new(0.6,0.6,0.6,0.6,0.6,0.6)
- AAura.Speed = NumberRange.new(10,10,10,10,10,10)
- AAura.LockedToPart = true
- AExplodeP = Instance.new("Part",chr)
- AExplodeP.Anchored = true
- AExplodeP.TopSurface = 0
- AExplodeP.Material = "Neon"
- AExplodeP.BottomSurface = 0
- AExplodeP.CanCollide = false
- AExplodeP.CFrame = chr.Torso.CFrame
- AExplodeP.BrickColor = BrickColor.new("Really red")
- AExplodeP.Size = Vector3.new(1,1,1)
- AExplodeM = Instance.new("SpecialMesh",AExplodeP)
- AExplodeM.MeshType = "Sphere"
- AExplodeP2 = Instance.new("Part",chr)
- AExplodeP2.Anchored = true
- AExplodeP2.TopSurface = 0
- AExplodeP2.Material = "Neon"
- AExplodeP2.BottomSurface = 0
- AExplodeP2.CanCollide = false
- AExplodeP2.CFrame = chr.Torso.CFrame
- AExplodeP2.BrickColor = BrickColor.new("Really red")
- AExplodeP2.Size = Vector3.new(1,1,1)
- AExplodeM2 = Instance.new("FileMesh",AExplodeP2)
- AExplodeM2.MeshId = "rbxassetid://20329976"
- for i = 1,50,2 do wait()
- AExplodeM.Scale = Vector3.new(i,i,i)
- AExplodeP.Transparency = i/50
- AExplodeM2.Scale = Vector3.new(i,i-30,i)
- AExplodeP2.Transparency = i/50
- end
- AExplodeP:Remove()
- AExplodeP2:Remove()
- ---------
- ---------DEBOUNCE ENABLE
- wait(1)
- canChangeFromCF = true
- canChangeFromC = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- end
- end
- end)
- maus.KeyDown:connect(function(kei)
- if kei == "3" then
- if canChangeFromCF == true then
- canChangeFromCF = false
- calm = false
- annoyed = false
- casualFighting = true -- active mode
- seriousFighting = false
- planetaryThreat = false
- galacticThreat = false
- universalThreat = false
- multiversalThreat = false
- dorado:Play()
- marxA:Stop()
- ---------EFFECTS
- AAura.Parent = nil
- casualFightingPOWERUP.Parent = chr.Torso
- casualFightingPOWERUP.Volume = 3
- casualFightingPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
- casualFightingPOWERUP:Play()
- CFAura1.Parent = chr.Torso
- CFAura1.Texture = "rbxassetid://347730682"
- local color1 = Color3.new(127,0,127)
- local color2 = Color3.new(127,0,127)
- local sequence = ColorSequence.new(color1,color2)
- CFAura1.Color = ColorSequence.new(color1,color2)
- CFAura1.Size = NumberSequence.new(6,6,6,6,6,6)
- CFAura1.Lifetime = NumberRange.new(0.3,0.3,0.3,0.3,0.3)
- CFAura1.Rate = 20
- CFAura1.Transparency = NumberSequence.new(0.6,0.6,0.6,0.6,0.6,0.6)
- CFAura1.Speed = NumberRange.new(10,10,10,10,10,10)
- CFAura1.LockedToPart = true
- CFAura2.Parent = chr.Torso
- CFAura2.Texture = "rbxassetid://269782022"
- local color1 = Color3.new(0,0,0)
- local color2 = Color3.new(0,0,0)
- local sequence = ColorSequence.new(color1,color2)
- CFAura2.Color = ColorSequence.new(color1,color2)
- CFAura2.Size = NumberSequence.new(6,6,6,6,6,6)
- CFAura2.Lifetime = NumberRange.new(0.2,0.2,0.2,0.2,0.2)
- CFAura2.Rate = 20
- CFAura2.Transparency =NumberSequence.new(0.4,0.4,0.4,0.4,0.4,0.4)
- CFAura2.Speed = NumberRange.new(10,10,10,10,10,10)
- CFAura2.LockedToPart = true
- CFExplodeP = Instance.new("Part",chr)
- CFExplodeP.Anchored = true
- CFExplodeP.CanCollide = false
- CFExplodeP.CFrame = chr.Torso.CFrame
- CFExplodeP.BrickColor = BrickColor.new("Magenta")
- CFExplodeP.Size = Vector3.new(1,1,1)
- CFExplodeM = Instance.new("SpecialMesh",CFExplodeP)
- CFExplodeM.MeshType = "FileMesh"
- CFExplodeM.MeshId = "http://www.roblox.com/Asset/?id=9982590"
- for i = 1,50,2 do wait()
- CFExplodeM.Scale = Vector3.new(i,i,i)
- CFExplodeP.Transparency = i/50
- end
- CFExplodeP:Remove()
- ---------DEBOUNCE ENABLE
- wait(1)
- canChangeFromC = true
- canChangeFromA = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- end
- end
- end)
- ---//*MOVES
- --*\\
- maus.KeyDown:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=true
- end
- if kei=='w' then fldb.w=true end
- if kei=='a' then fldb.a=true end
- if kei=='s' then fldb.s=true end
- if kei=='d' then fldb.d=true end
- end)
- maus.KeyUp:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=false
- end
- if kei=='w' then fldb.w=false end
- if kei=='a' then fldb.a=false end
- if kei=='s' then fldb.s=false end
- if kei=='d' then fldb.d=false end
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if not otheranims and not swimming then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Sprinting"
- elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
- anim='Jumping'
- elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
- anim='Falling'
- end
- end
- if anim=="Idling" then
- idlesineinc=35
- if casualFighting == true then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.4+math.cos(syne/idlesineinc)/25,-.3)*CFrame.Angles(math.rad(90),0,math.rad(-20)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1,.4+math.cos(syne/idlesineinc)/25,.5)*CFrame.Angles(math.rad(-10),math.rad(20-(math.cos(syne/idlesineinc)/35)),math.rad(-20)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-1,-1.7-math.cos(syne/idlesineinc)/20,0.2)*CFrame.Angles(math.rad(0),math.cos(syne/idlesineinc)/55+math.rad(25),math.rad(-20)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(1,-1.5-math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.rad(0),math.cos(syne/idlesineinc)/55+math.rad(-30),math.rad(0)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,math.rad(-70),0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-0.5+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/55+math.rad(-5),math.rad(60),math.rad(0)),.1)
- end
- if calm == true then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if annoyed == true then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(-40)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(40)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- end
- if anim=="Walking" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
- end
- if anim=="Sprinting" then
- if calm == true then
- RunSpeed = 25
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-15),0,math.rad(12.5)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-15),0,math.rad(-12.5)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(-10),math.rad(-7),math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,0)*CFrame.Angles(math.rad(-10),math.rad(7),math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55,0)*CFrame.Angles(math.rad(15),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-15),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
- end
- if annoyed == true then
- RunSpeed = 50
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55,0)*CFrame.Angles(math.rad(15),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-25),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
- end
- if casualFighting == true then
- RunSpeed = 75
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.rad(-25),math.cos(syne/2.5)/10,math.sin(rutprt.RotVelocity.y/2)/4),.1)
- end
- end
- if anim=="Jumping" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2.3,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Falling" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
- end
- if runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=RunSpeed
- elseif not runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=WlkSpeed
- end
- end)
- end)
- end))
- TextButton14.Name = "PlaceHolder"
- TextButton14.Parent = Frame1
- TextButton14.Transparency = 0.5
- TextButton14.Size = UDim2.new(0, 100, 0, 30)
- TextButton14.Text = "PlaceHolder"
- TextButton14.Position = UDim2.new(0.399999917, -107, 0.200000018, 75)
- TextButton14.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton14.BackgroundTransparency = 0.5
- TextButton14.BorderSizePixel = 0
- TextButton14.Font = Enum.Font.SourceSansBold
- TextButton14.FontSize = Enum.FontSize.Size14
- TextButton14.TextColor3 = Color3.new(0, 0, 0)
- TextButton14.TextTransparency = 0.5
- Frame15.Name = "styleLine"
- Frame15.Parent = TextButton14
- Frame15.Size = UDim2.new(0, 5, 1, 0)
- Frame15.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame15.BorderSizePixel = 0
- Script16.Parent = TextButton14
- table.insert(cors,sandbox(Script16,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- end)
- end))
- TextButton17.Name = "PlaceHolder"
- TextButton17.Parent = Frame1
- TextButton17.Transparency = 0.5
- TextButton17.Size = UDim2.new(0, 100, 0, 30)
- TextButton17.Text = "PlaceHolder"
- TextButton17.Position = UDim2.new(0.399999917, -107, 0.300000042, 75)
- TextButton17.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton17.BackgroundTransparency = 0.5
- TextButton17.BorderSizePixel = 0
- TextButton17.Font = Enum.Font.SourceSansBold
- TextButton17.FontSize = Enum.FontSize.Size14
- TextButton17.TextColor3 = Color3.new(0, 0, 0)
- TextButton17.TextTransparency = 0.5
- Frame18.Name = "styleLine"
- Frame18.Parent = TextButton17
- Frame18.Size = UDim2.new(0, 5, 1, 0)
- Frame18.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame18.BorderSizePixel = 0
- Script19.Parent = TextButton17
- table.insert(cors,sandbox(Script19,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- end)
- end))
- TextButton20.Name = "Dex"
- TextButton20.Parent = Frame1
- TextButton20.Transparency = 0.5
- TextButton20.Size = UDim2.new(0, 100, 0, 30)
- TextButton20.Text = "Dex_Explorer"
- TextButton20.Position = UDim2.new(1, -107, -0.0999999866, 75)
- TextButton20.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton20.BackgroundTransparency = 0.5
- TextButton20.BorderSizePixel = 0
- TextButton20.Font = Enum.Font.SourceSansBold
- TextButton20.FontSize = Enum.FontSize.Size14
- TextButton20.TextColor3 = Color3.new(0, 0, 0)
- TextButton20.TextTransparency = 0.5
- Frame21.Name = "styleLine"
- Frame21.Parent = TextButton20
- Frame21.Size = UDim2.new(0, 5, 1, 0)
- Frame21.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame21.BorderSizePixel = 0
- Script22.Parent = TextButton20
- TextButton23.Name = "Wings"
- TextButton23.Parent = Frame1
- TextButton23.Transparency = 0.5
- TextButton23.Size = UDim2.new(0, 100, 0, 30)
- TextButton23.Text = "Wings"
- TextButton23.Position = UDim2.new(1, -107, 1.49011612e-08, 75)
- TextButton23.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton23.BackgroundTransparency = 0.5
- TextButton23.BorderSizePixel = 0
- TextButton23.Font = Enum.Font.SourceSansBold
- TextButton23.FontSize = Enum.FontSize.Size14
- TextButton23.TextColor3 = Color3.new(0, 0, 0)
- TextButton23.TextTransparency = 0.5
- Frame24.Name = "styleLine"
- Frame24.Parent = TextButton23
- Frame24.Size = UDim2.new(0, 5, 1, 0)
- Frame24.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame24.BorderSizePixel = 0
- Script25.Parent = TextButton23
- table.insert(cors,sandbox(Script25,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- --bird wings Gifted by harrypotterfan249, Local Script!
- --Jump Two Time
- --Down Press Q
- script.Parent = nil
- function fly()
- for i,v in pairs(script:GetChildren()) do
- pcall(function() v.Value = "" end)
- game:GetService("Debris"):AddItem(v,.1)
- end
- function weld(p0,p1,c0,c1,par)
- local w = Instance.new("Weld",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- return w
- end
- local motors = {}
- function motor(p0,p1,c0,c1,des,vel,par)
- local w = Instance.new("Motor6D",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- w.MaxVelocity = tonumber(vel) or .05
- w.DesiredAngle = tonumber(des) or 0
- return w
- end
- function lerp(a,b,c)
- return a+(b-a)*c
- end
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function ccomplerp(c1,c2,al)
- local com1 = {c1:components()}
- local com2 = {c2:components()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(unpack(com1))
- end
- function tickwave(time,length,offset)
- return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
- end
- function invcol(c)
- c = c.Color
- return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
- end
- local oc = oc or function(...) return ... end
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local tor = char.Torso
- local hum = char.Humanoid
- hum.PlatformStand = false
- pcall(function()
- char.Wings:Destroy()
- end)
- pcall(function()
- char.Angel:Destroy() -- hat
- end)
- local mod = Instance.new("Model",char)
- mod.Name = "Wings"
- local special = {
- --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
- --antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
- antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- taart = {"Royal purple",nil,.4,.4,true},
- mitta = {"Black",nil,0,0,false},
- penjuin3 = {"White",nil,0,0,false},
- thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- littleau999 = {"Reddish brown",1030,0,0,false},
- unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
- oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
- krodmiss = {"Really black",nil,0,0,false},
- }
- local topcolor = BrickColor.new("Crimson")
- local feacolor = BrickColor.new("Crimson")
- local ptrans = 0
- local pref = 0
- local fire = false
- local fmcol = Color3.new()
- local fscol = Color3.new()
- local spec = special[plr.Name:lower()]
- if spec then
- topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
- end
- local part = Instance.new("Part")
- part.FormFactor = "Custom"
- part.Size = Vector3.new(.2,.2,.2)
- part.TopSurface,part.BottomSurface = 0,0
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Crimson")
- part.Transparency = ptrans
- part.Reflectance = pref
- local ef = Instance.new("Fire",fire and part or nil)
- ef.Size = .15
- ef.Color = fmcol or Color3.new()
- ef.SecondaryColor = fscol or Color3.new()
- part:BreakJoints()
- function newpart()
- local clone = part:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- local feath = newpart()
- feath.BrickColor = BrickColor.new("Crimson")
- feath.Transparency = 0
- Instance.new("SpecialMesh",feath).MeshType = "Sphere"
- function newfeather()
- local clone = feath:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- ---------- RIGHT WING
- local r1 = newpart()
- r1.Size = Vector3.new(.3,1.5,.3)*1.2
- local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
- local r2 = newpart()
- r2.Size = Vector3.new(.4,1.8,.4)*1.2
- local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
- local r3 = newpart()
- r3.Size = Vector3.new(.3,2.2,.3)*1.2
- local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
- local r4 = newpart()
- r4.Size = Vector3.new(.25,1.2,.25)*1.2
- local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local rf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- ---------- LEFT WING
- local l1 = newpart()
- l1.Size = Vector3.new(.3,1.5,.3)*1.2
- local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
- local l2 = newpart()
- l2.Size = Vector3.new(.4,1.8,.4)*1.2
- local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
- local l3 = newpart()
- l3.Size = Vector3.new(.3,2.2,.3)*1.2
- local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
- local l4 = newpart()
- l4.Size = Vector3.new(.25,1.2,.25)*1.2
- local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local lf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local lf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local lf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rwing = {rm1,rm2,rm3,rm4}
- local lwing = {lm1,lm2,lm3,lm4}
- local oc0 = {}
- for i,v in pairs(rwing) do
- oc0[v] = v.C0
- end
- for i,v in pairs(lwing) do
- oc0[v] = v.C0
- end
- function gotResized()
- if lastsize then
- if tor.Size == lastsize then return end -- This shouldn't happen?
- local scaleVec = tor.Size/lastsize
- for i,v in pairs(oc0) do
- oc0[i] = v-v.p+scaleVec*v.p
- end
- lastsize = tor.Size
- end
- lastsize = tor.Size
- end
- tor.Changed:connect(function(p)
- if p == "Size" then
- gotResized()
- end
- end)
- gotResized()
- local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
- local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
- local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
- local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
- function setwings(tab,time)
- time = time or 10
- for i=1,4 do
- rwing[i].DesiredAngle = tab[i]
- lwing[i].DesiredAngle = tab[i]
- rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
- lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
- local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
- local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
- end
- for i,v in pairs(rf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- end
- setwings(outhigh,1)
- flying = false
- moving = false
- for i,v in pairs(tor:GetChildren()) do
- if v.ClassName:lower():match("body") then
- v:Destroy()
- end
- end
- local ctor = tor:Clone()
- ctor:ClearAllChildren()
- ctor.Name = "cTorso"
- ctor.Transparency = 1
- ctor.CanCollide = false
- ctor.FormFactor = "Custom"
- ctor.Size = Vector3.new(.2,.2,.2)
- ctor.Parent = mod
- weld(tor,ctor)
- local bg = Instance.new("BodyGyro",ctor)
- bg.maxTorque = Vector3.new()
- bg.P = 15000
- bg.D = 1000
- local bv = Instance.new("BodyVelocity",ctor)
- bv.maxForce = Vector3.new()
- bv.P = 15000
- vel = Vector3.new()
- cf = CFrame.new()
- flspd = 0
- keysdown = {}
- keypressed = {}
- ktime = {}
- descendtimer = 0
- jumptime = tick()
- hum.Jumping:connect(function()
- jumptime = tick()
- end)
- cam = workspace.CurrentCamera
- kd = plr:GetMouse().KeyDown:connect(oc(function(key)
- keysdown[key] = true
- keypressed[key] = true
- if key == "q" then
- descendtimer = tick()
- elseif key == " " and not hum.Jump then
- jumptime = tick()
- elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
- reqrotx = key == "a" and math.pi*2 or -math.pi*2
- end
- ktime[key] = tick()
- end))
- ku = plr:GetMouse().KeyUp:connect(function(key)
- keysdown[key] = false
- if key == " " then
- descendtimer = tick()
- end
- end)
- function mid(a,b,c)
- return math.max(a,math.min(b,c or -a))
- end
- function bn(a)
- return a and 1 or 0
- end
- function gm(tar)
- local m = 0
- for i,v in pairs(tar:GetChildren()) do
- if v:IsA("BasePart") then
- m = m + v:GetMass()
- end
- m = m + gm(v)
- end
- return m
- end
- reqrotx = 0
- local grav = 196.2
- local con
- con = game:GetService("RunService").Stepped:connect(oc(function()
- --[[if not mod:IsDescendantOf(workspace) then
- pcall(function() kd:disconnect() end)
- pcall(function() ku:disconnect() end)
- bg:Destroy()
- bv:Destroy()
- con:disconnect()
- script:Destroy()
- return
- end]]
- local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
- local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
- if flying then
- local lfldir = fldir
- fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
- local lmoving = moving
- moving = fldir.magnitude > .1
- if lmoving and not moving then
- idledir = lfldir*Vector3.new(1,0,1)
- descendtimer = tick()
- end
- local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
- if moving and keysdown["0"] and lmoving then
- fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
- end
- local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
- local descending = (not moving and keysdown["q"] and not keysdown[" "])
- cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
- local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
- hum.PlatformStand = true
- bg.maxTorque = Vector3.new(1,1,1)*9e5
- local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
- bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
- reqrotx = reqrotx - reqrotx/10
- bv.maxForce = Vector3.new(1,1,1)*9e4*.5
- local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
- local ani = tickwave(1.5-anioff,1)
- bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
- vel = moving and cf.lookVector*flspd or Vector3.new()
- flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
- setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
- for i=1,4 do
- --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
- rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
- lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
- end
- local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
- if hit and down.Y < -.85 and tick()-flystart > 1 then
- flying = false
- hum.PlatformStand = false
- tor.Velocity = Vector3.new()
- end
- else
- bg.maxTorque = Vector3.new()
- bv.maxForce = Vector3.new()
- local ani = tickwave(walking and .8 or 4.5,1)
- setwings(idle,10)
- local x,y,z = fspd/160,uspd/700,sspd/900
- for i=1,4 do
- rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
- lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
- end
- if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
- vel = Vector3.new(0,50,0)
- bv.velocity = vel
- idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
- cf = tor.CFrame * CFrame.Angles(-.01,0,0)
- tor.CFrame = cf
- bg.cframe = cf
- flystart = tick()
- flying = true
- end
- end
- keypressed = {}
- end))
- end fly()
- --Bird Wings By Rosemarijohn2
- end)
- end))
- TextButton26.Name = "PlaceHolder"
- TextButton26.Parent = Frame1
- TextButton26.Transparency = 0.5
- TextButton26.Size = UDim2.new(0, 100, 0, 30)
- TextButton26.Text = "PlaceHolder"
- TextButton26.Position = UDim2.new(1, -107, 0.100000016, 75)
- TextButton26.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton26.BackgroundTransparency = 0.5
- TextButton26.BorderSizePixel = 0
- TextButton26.Font = Enum.Font.SourceSansBold
- TextButton26.FontSize = Enum.FontSize.Size14
- TextButton26.TextColor3 = Color3.new(0, 0, 0)
- TextButton26.TextTransparency = 0.5
- Frame27.Name = "styleLine"
- Frame27.Parent = TextButton26
- Frame27.Size = UDim2.new(0, 5, 1, 0)
- Frame27.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame27.BorderSizePixel = 0
- Script28.Parent = TextButton26
- table.insert(cors,sandbox(Script28,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- end)
- end))
- TextButton29.Name = "PlaceHolder"
- TextButton29.Parent = Frame1
- TextButton29.Transparency = 0.5
- TextButton29.Size = UDim2.new(0, 100, 0, 30)
- TextButton29.Text = "PlaceHolder"
- TextButton29.Position = UDim2.new(1, -107, 0.200000018, 75)
- TextButton29.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton29.BackgroundTransparency = 0.5
- TextButton29.BorderSizePixel = 0
- TextButton29.Font = Enum.Font.SourceSansBold
- TextButton29.FontSize = Enum.FontSize.Size14
- TextButton29.TextColor3 = Color3.new(0, 0, 0)
- TextButton29.TextTransparency = 0.5
- Frame30.Name = "styleLine"
- Frame30.Parent = TextButton29
- Frame30.Size = UDim2.new(0, 5, 1, 0)
- Frame30.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame30.BorderSizePixel = 0
- Script31.Parent = TextButton29
- table.insert(cors,sandbox(Script31,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- end)
- end))
- TextButton32.Name = "PlaceHolder"
- TextButton32.Parent = Frame1
- TextButton32.Transparency = 0.5
- TextButton32.Size = UDim2.new(0, 100, 0, 30)
- TextButton32.Text = "PlaceHolder"
- TextButton32.Position = UDim2.new(1, -107, 0.300000042, 75)
- TextButton32.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton32.BackgroundTransparency = 0.5
- TextButton32.BorderSizePixel = 0
- TextButton32.Font = Enum.Font.SourceSansBold
- TextButton32.FontSize = Enum.FontSize.Size14
- TextButton32.TextColor3 = Color3.new(0, 0, 0)
- TextButton32.TextTransparency = 0.5
- Frame33.Name = "styleLine"
- Frame33.Parent = TextButton32
- Frame33.Size = UDim2.new(0, 5, 1, 0)
- Frame33.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame33.BorderSizePixel = 0
- Script34.Parent = TextButton32
- table.insert(cors,sandbox(Script34,function()
- local plrgui = script.Parent.Parent.Parent.Parent
- local plr = plrgui.Parent
- script.Parent.MouseButton1Down:connect(function()
- end)
- end))
- Frame35.Name = "Login"
- Frame35.Parent = ScreenGui0
- Frame35.Size = UDim2.new(0, 300, 0, 388)
- Frame35.Style = Enum.FrameStyle.DropShadow
- Frame35.Position = UDim2.new(0.5, -150, 0, 0)
- Frame35.Active = true
- Frame35.Visible = false
- Frame35.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame35.Draggable = true
- TextLabel36.Name = "Title"
- TextLabel36.Parent = Frame35
- TextLabel36.Size = UDim2.new(1, 4, 0, 32)
- TextLabel36.Text = "Omega's Admin hub Gui"
- TextLabel36.Position = UDim2.new(0, -2, 0, -2)
- TextLabel36.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- TextLabel36.BorderSizePixel = 0
- TextLabel36.Font = Enum.Font.SourceSansItalic
- TextLabel36.FontSize = Enum.FontSize.Size24
- TextLabel36.TextColor3 = Color3.new(1, 1, 1)
- TextLabel36.TextYAlignment = Enum.TextYAlignment.Top
- Frame37.Name = "styleLine"
- Frame37.Parent = TextLabel36
- Frame37.Transparency = 0.30000001192093
- Frame37.Size = UDim2.new(1, 0, 0, 4)
- Frame37.Position = UDim2.new(0, 0, 0, 28)
- Frame37.BackgroundColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Frame37.BackgroundTransparency = 0.30000001192093
- Frame37.BorderSizePixel = 0
- Frame37.ZIndex = 2
- TextLabel38.Name = "Creditse"
- TextLabel38.Parent = Frame35
- TextLabel38.Transparency = 1
- TextLabel38.Size = UDim2.new(1, -6, 0, 10)
- TextLabel38.Text = "Created by Omega_Phoenix"
- TextLabel38.Position = UDim2.new(0, 0, 1, -15)
- TextLabel38.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel38.BackgroundTransparency = 1
- TextLabel38.BorderSizePixel = 0
- TextLabel38.Font = Enum.Font.SourceSans
- TextLabel38.FontSize = Enum.FontSize.Size14
- TextLabel38.TextColor3 = Color3.new(1, 0.968628, 0.94902)
- TextLabel38.TextTransparency = 0.80000001192093
- TextLabel38.TextWrapped = true
- TextBox39.Name = "Username"
- TextBox39.Parent = Frame35
- TextBox39.Transparency = 0.5
- TextBox39.Size = UDim2.new(0.449999988, 100, 0, 30)
- TextBox39.Text = "Username"
- TextBox39.Position = UDim2.new(0.480000079, -107, 0.100000001, 75)
- TextBox39.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox39.BackgroundTransparency = 0.5
- TextBox39.Font = Enum.Font.SourceSans
- TextBox39.FontSize = Enum.FontSize.Size14
- Frame40.Name = "styleLine"
- Frame40.Parent = TextBox39
- Frame40.Size = UDim2.new(0, 5, 1, 0)
- Frame40.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame40.BorderSizePixel = 0
- TextLabel41.Name = "LoginTitle"
- TextLabel41.Parent = Frame35
- TextLabel41.Size = UDim2.new(0.0399999991, 200, -0.0599999949, 50)
- TextLabel41.Text = "Please Login"
- TextLabel41.Position = UDim2.new(0.119999982, 0, 0.139999986, 0)
- TextLabel41.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel41.BorderSizePixel = 0
- TextLabel41.Font = Enum.Font.SourceSans
- TextLabel41.FontSize = Enum.FontSize.Size14
- Frame42.Name = "styleLine"
- Frame42.Parent = TextLabel41
- Frame42.Size = UDim2.new(0, 5, 1, 0)
- Frame42.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame42.BorderSizePixel = 0
- TextBox43.Name = "Password"
- TextBox43.Parent = Frame35
- TextBox43.Transparency = 0.5
- TextBox43.Size = UDim2.new(0.449999988, 100, 0, 30)
- TextBox43.Text = "Password"
- TextBox43.Position = UDim2.new(0.480000079, -107, 0.300000012, 75)
- TextBox43.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox43.BackgroundTransparency = 0.5
- TextBox43.Font = Enum.Font.SourceSans
- TextBox43.FontSize = Enum.FontSize.Size14
- Frame44.Name = "styleLine"
- Frame44.Parent = TextBox43
- Frame44.Size = UDim2.new(0, 5, 1, 0)
- Frame44.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame44.BorderSizePixel = 0
- TextButton45.Name = "LoginButton"
- TextButton45.Parent = Frame35
- TextButton45.Size = UDim2.new(0, 200, 0, 50)
- TextButton45.Text = "Press to Login"
- TextButton45.Position = UDim2.new(0.150000006, 0, 0.750000119, 0)
- TextButton45.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton45.Font = Enum.Font.SourceSans
- TextButton45.FontSize = Enum.FontSize.Size14
- Script46.Parent = TextButton45
- table.insert(cors,sandbox(Script46,function()
- script.Parent.MouseButton1Down:Connect(function()
- if script.Parent.Parent.Username.Text == "Omega" then
- if script.Parent.Parent.Password.Text == "Phoenix" then
- script.Parent.Parent.Visible = false
- script.Parent.Parent.Parent.Main.Visible = true
- script.Parent.Parent.Parent.OpenCloseLogin.Visible = false
- script.Parent.Parent.Parent.OpenCloseMain.Visible = true
- end
- elseif script.Parent.Parent.Username.Text == "fire" then
- if script.Parent.Parent.Password.Text == "fire" then
- script.Parent.Parent.Visible = false
- script.Parent.Parent.Parent.Main.Visible = true
- script.Parent.Parent.Parent.OpenCloseLogin.Visible = false
- script.Parent.Parent.Parent.OpenCloseMain.Visible = true
- end
- elseif script.Parent.Parent.Username.Text ~= "Omega" then
- if script.Parent.Parent.Password.Text ~= "Phoenix" then
- script.Parent.Parent.LoginTitle.Text = "Invalid Username or Password!"
- wait(3)
- script.Parent.Parent.LoginTitle.Text = "Please Login"
- elseif script.Parent.Parent.Username.Text ~= "fire" then
- if script.Parent.Parent.Password.Text ~= "fire" then
- script.Parent.Parent.LoginTitle.Text = "Invalid Username or Password!"
- wait(3)
- end
- end
- end
- end)
- end))
- Frame47.Name = "styleLine"
- Frame47.Parent = TextButton45
- Frame47.Size = UDim2.new(0, 5, 1, 0)
- Frame47.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame47.BorderSizePixel = 0
- Frame48.Name = "OpenCloseLogin"
- Frame48.Parent = ScreenGui0
- Frame48.Transparency = 1
- Frame48.Size = UDim2.new(0, 100, 0, 30)
- Frame48.Position = UDim2.new(0, 0, 0, 450)
- Frame48.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame48.BackgroundTransparency = 1
- Frame48.BorderSizePixel = 0
- Frame48.ZIndex = 3
- TextButton49.Name = "Open"
- TextButton49.Parent = Frame48
- TextButton49.Size = UDim2.new(0, 100, 0, 30)
- TextButton49.Text = "Open"
- TextButton49.BackgroundColor3 = Color3.new(0.533333, 0.533333, 0.533333)
- TextButton49.BorderSizePixel = 0
- TextButton49.ZIndex = 2
- TextButton49.Font = Enum.Font.SourceSansBold
- TextButton49.FontSize = Enum.FontSize.Size18
- TextButton49.TextColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Frame50.Name = "StyleBar"
- Frame50.Parent = TextButton49
- Frame50.Size = UDim2.new(0, 5, 0, 30)
- Frame50.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame50.BorderSizePixel = 0
- Frame50.ZIndex = 3
- Script51.Parent = TextButton49
- table.insert(cors,sandbox(Script51,function()
- local maingui = script.Parent.Parent.Parent.Main
- local Login = script.Parent.Parent.Parent.Login
- local OpenClose = script.Parent.Parent
- local button = script.Parent
- button.MouseButton1Click:Connect(function()
- if Login.Visible == true then
- Login.Visible = false
- button.Text = "Open"
- elseif Login.Visible == false then
- Login.Visible = true
- button.Text = "Close"
- end
- end)
- end))
- Frame52.Name = "OpenCloseMain"
- Frame52.Parent = ScreenGui0
- Frame52.Transparency = 1
- Frame52.Size = UDim2.new(0, 100, 0, 30)
- Frame52.Position = UDim2.new(0, 0, 0, 450)
- Frame52.Visible = false
- Frame52.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame52.BackgroundTransparency = 1
- Frame52.BorderSizePixel = 0
- Frame52.ZIndex = 3
- TextButton53.Name = "Open"
- TextButton53.Parent = Frame52
- TextButton53.Size = UDim2.new(0, 100, 0, 30)
- TextButton53.Text = "Open"
- TextButton53.BackgroundColor3 = Color3.new(0.533333, 0.533333, 0.533333)
- TextButton53.BorderSizePixel = 0
- TextButton53.ZIndex = 2
- TextButton53.Font = Enum.Font.SourceSansBold
- TextButton53.FontSize = Enum.FontSize.Size18
- TextButton53.TextColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Frame54.Name = "StyleBar"
- Frame54.Parent = TextButton53
- Frame54.Size = UDim2.new(0, 5, 0, 30)
- Frame54.BackgroundColor3 = Color3.new(0.196078, 0.588235, 1)
- Frame54.BorderSizePixel = 0
- Frame54.ZIndex = 3
- Script55.Parent = TextButton53
- table.insert(cors,sandbox(Script55,function()
- local maingui = script.Parent.Parent.Parent.Main
- local Login = script.Parent.Parent.Parent.Login
- local OpenClose = script.Parent.Parent
- local button = script.Parent
- button.MouseButton1Click:Connect(function()
- if maingui.Visible == true then
- maingui.Visible = false
- button.Text = "Open"
- elseif maingui.Visible == false then
- maingui.Visible = true
- button.Text = "Close"
- end
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement