Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Explosion God script made by EliteShadow @ V3rm aka Crimsonal @ Roblox
- --]]
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- repeat wait() until Player.Character
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local Torso = Character.Torso
- local Head = Character.Head
- local RightArm = Character["Right Arm"]
- local LeftArm = Character["Left Arm"]
- local RightLeg = Character["Right Leg"]
- local LeftLeg = Character["Left Leg"]
- local Head = Character.Head
- local RightShoulder = Torso["Right Shoulder"]
- local LeftShoulder = Torso["Left Shoulder"]
- local Neck = Torso["Neck"]
- local RightHip = Torso["Right Hip"]
- local LeftHip = Torso["Left Hip"]
- wait(1)
- Instance.new("ForceField", Character).Visible = false
- local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local Torso = Character.Torso
- local Head = Character.Head
- local mouse = Player:GetMouse()
- local Root = Character.HumanoidRootPart
- local RunService = game:GetService("RunService").RenderStepped
- local Lighting = game:GetService("Lighting")
- Player:ClearCharacterAppearance()
- wait(0.1)
- Player.Character.Head.BrickColor = BrickColor.new("Really black")
- Player.Character.Torso.BrickColor = BrickColor.new("Really black")
- Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
- Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
- Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
- Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
- pcall(function() Player.Character.Torso.roblox:Destroy() end)
- z = Instance.new("Sound", Character)
- z.SoundId = "rbxassetid://823815836"--301463006
- z.Looped = true
- z.Pitch = 1
- z.Volume = math.huge
- wait(.1)
- z:Play()
- CV="Pastel blue"
- local txt = Instance.new("BillboardGui", Character)
- txt.Adornee = Character .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Antique"
- text.TextStrokeColor3 = Color3.new(255,85,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=Player.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=Character.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(0,0,0)
- v.Shape="Block"
- text.Text = "Power Ranger God"
- local selectionBoxOfTorso = Instance.new("SelectionBox",Torso)
- selectionBoxOfTorso.Adornee = Torso
- selectionBoxOfTorso.Color = BrickColor.new("1020")
- selectionBoxOfTorso.LineThickness = 0.01
- selectionBoxOfTorso.Transparency = 0
- local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
- selectionBoxOfRightArm.Adornee = Character["Right Arm"]
- selectionBoxOfRightArm.Color = BrickColor.new("1020")
- selectionBoxOfRightArm.LineThickness = 0.01
- selectionBoxOfRightArm.Transparency = 0
- local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
- selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
- selectionBoxOfRightLeg.Color = BrickColor.new("1020")
- selectionBoxOfRightLeg.LineThickness = 0.01
- selectionBoxOfRightLeg.Transparency = 0
- local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
- selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
- selectionBoxOfLeftArm.Color = BrickColor.new("1020")
- selectionBoxOfLeftArm.LineThickness = 0.01
- selectionBoxOfLeftArm.Transparency = 0
- local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
- selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
- selectionBoxOfLeftLeg.Color = BrickColor.new("1020")
- selectionBoxOfLeftLeg.LineThickness = 0.01
- selectionBoxOfLeftLeg.Transparency = 0
- LightOnBody = Instance.new("PointLight", Head)
- LightOnBody.Brightness = 3000
- LightOnBody.Range = 20
- LightOnBody.Color = Color3.new(255, 85, 0)
- local HandCF = CFrame.new(Root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local wave = Instance.new("Part", Torso)
- wave.BrickColor = BrickColor.new("Maroon")
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = HandCF
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 14, 1 do
- wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
- wave.Size = wm.Scale
- wave.CFrame = HandCF
- wave.Transparency = i/14
- wait()
- end
- wait()
- wave:Destroy()
- end)()
- local function RefreshWelds()
- Neck.C0 = NeckC0
- Neck.C1 = NeckC1
- RightShoulder.C0 = RightShoulderC0
- RightShoulder.C1 = RightShoulderC1
- LeftShoulder.C0 = LeftShoulderC0
- LeftShoulder.C1 = LeftShoulderC1
- RightHip.C0 = RightHipC0
- RightHip.C1 = RightHipC1
- LeftHip.C0 = LeftHipC0
- LeftHip.C1 = LeftHipC1
- end
- local LastArm = "Left"
- local Active = false
- game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
- if not Gpe then
- if Key.KeyCode == Enum.KeyCode.F and not Active then
- Active=true
- RefreshWelds()
- Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
- Torso.Anchored=true
- Humanoid.PlatformStand = true
- for i = 1,3 do
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,-0.2,0.55)
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0.2, -0.55)
- end
- local last1
- local last2
- local explosion = Instance.new("Sound", Character)
- explosion.Name="explosion"
- explosion.SoundId = "rbxassetid://2248511"
- explosion:Play()
- game.Debris:AddItem(explosion,10)
- spawn(function()
- for i = 1,15 do
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- game.Debris:AddItem(p,1)
- if not last1 then
- p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0) * CFrame.new(0,0,-10)
- last1=p
- else
- p.CFrame = last1.CFrame * CFrame.new(0, 0,-i*5)
- last1=p
- end
- local explo = Instance.new("Explosion", workspace)
- explo.Position=p.Position
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- wait()
- end
- end)
- spawn(function()
- for i = 1,15 do
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- game.Debris:AddItem(p,1)
- if not last2 then
- p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0) * CFrame.new(0,0,-10)
- last2=p
- else
- p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
- last2=p
- end
- local explo = Instance.new("Explosion", workspace)
- explo.Position=p.Position
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- wait()
- end
- end)
- wait(1)
- Torso.Anchored=false
- Humanoid.PlatformStand = false
- RefreshWelds()
- Active=false
- elseif Key.KeyCode == Enum.KeyCode.C and not Active then
- Active = true
- RefreshWelds()
- Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
- Torso.Anchored=true
- Humanoid.PlatformStand = true
- for i = 1,3 do
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, -0.5)
- wait()
- end
- local last1
- local last2
- local explosion = Instance.new("Sound", Character)
- explosion.Name="explosion"
- explosion.SoundId = "rbxassetid://2248511"
- explosion:Play()
- game.Debris:AddItem(explosion,10)
- spawn(function()
- for i = 1,15 do
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- game.Debris:AddItem(p,1)
- if not last1 then
- p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
- last1=p
- else
- p.CFrame = last1.CFrame * CFrame.new(0,0 ,-i*5)
- last1=p
- end
- local explo = Instance.new("Explosion", workspace)
- explo.Position=p.Position
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- wait()
- end
- end)
- spawn(function()
- for i = 1,15 do
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- game.Debris:AddItem(p,1)
- if not last2 then
- p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
- last2=p
- else
- p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
- last2=p
- end
- local explo = Instance.new("Explosion", workspace)
- explo.Position=p.Position
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- wait()
- end
- end)
- wait(1)
- for i = 1,3 do
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, 0.5)
- wait()
- end
- Torso.Anchored=false
- Humanoid.PlatformStand = false
- RefreshWelds()
- Active=false
- elseif Key.KeyCode == Enum.KeyCode.E and not Active
- then Active = true
- RefreshWelds()
- Torso.Anchored=true
- Humanoid.PlatformStand=true
- if LastArm == "Left" then
- LastArm="Right"
- Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
- for i = 1,3 do
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
- wait()
- end
- wait(0.5)
- RefreshWelds()
- for i = 1,3 do
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
- end
- Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- p.CFrame = Torso.CFrame * CFrame.new(1.5, 0, -2)
- game.Debris:AddItem(p,3)
- local explosion = Instance.new("Sound", Character)
- explosion.Name="explosion"
- explosion.SoundId = "rbxassetid://2248511"
- explosion:Play()
- game.Debris:AddItem(explosion, 10)
- local explo = Instance.new("Explosion", workspace)
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- explo.Position=p.Position
- elseif LastArm == "Right" then
- LastArm = "Left"
- Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
- for i = 1,3 do
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.5)
- wait()
- end
- wait(0.5)
- RefreshWelds()
- for i = 1,3 do
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.5)
- end
- Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
- local p = Instance.new("Part", Character)
- p.Anchored=true
- p.CanCollide=false
- p.Transparency=1
- p.Size=Vector3.new(.1,.1,.1)
- p.Shape = "Ball"
- p.BrickColor = BrickColor.new("Really black")
- p.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, -2)
- game.Debris:AddItem(p,3)
- local explosion = Instance.new("Sound", Character)
- explosion.Name="explosion"
- explosion.SoundId = "rbxassetid://2248511"
- explosion:Play()
- game.Debris:AddItem(explosion, 10)
- local explo = Instance.new("Explosion", workspace)
- explo.BlastPressure = math.huge
- explo.BlastRadius= math.huge
- explo.Position=p.Position
- end
- wait(0.5)
- Active = false
- RefreshWelds()
- Torso.Anchored=false
- Humanoid.PlatformStand=false
- end
- end
- end)
- --=Bird wings made by Lyokofan2000
- --Jump Two Time
- --Down Press Q
- --Wings Spin Press A Two Time
- --Wings Spin Press D Two Time
- 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 = invcol(char.Torso.BrickColor)
- local feacolor = char.Torso.BrickColor
- 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 = topcolor
- 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 = feacolor
- 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 Lyokofan2000
- local time = tick()
- local plr = game:GetService("Players").LocalPlayer
- local mouse,char = plr:GetMouse(),plr.Character
- local amountGhosts = 5
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- local toggle,cd,mcd = false,false,false
- local ghosts = {}
- local temptab = {}
- char:WaitForChild("Animate"):Destroy()
- char.Humanoid:WaitForChild("Animator"):Destroy()
- local state = "idle"
- local gt = false
- local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
- gyro.MaxTorque = Vector3.new(0,0,0)
- gyro.D = 0
- gyro.P = 100000000
- local wCol = BrickColor.new("Really red")
- local wCol2 = BrickColor.new("Really black")
- local gCol = BrickColor.new("Toothpaste")
- local gCol2 = BrickColor.new("Institutional white")
- function searchAll(m,clear)
- if clear then
- if clear == true then
- for i,v in pairs(temptab) do
- table.remove(temptab,1)
- end
- end
- end
- for i,v in pairs(m:GetChildren()) do
- if v then
- local s = v:Clone()
- for _,b in pairs(s:GetChildren()) do
- b:Destroy()
- end
- if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
- if s.Name ~= "HumanoidRootPart" then
- s.Anchored = true
- s.CanCollide = false
- s.Transparency = 0.95
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.FrontSurface = "Smooth"
- s.RightSurface = "Smooth"
- s.BackSurface = "Smooth"
- s.LeftSurface = "Smooth"
- if s.Material ~= Enum.Material.Neon then
- if gt == true then
- s.BrickColor = wCol2
- else
- s.BrickColor = gCol2
- end
- else
- if gt == true then
- s.BrickColor = wCol
- else
- s.BrickColor = gCol
- end
- end
- for _,c in pairs(v:GetChildren()) do
- if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
- c:Clone().Parent = s
- end
- end
- local objValue = Instance.new("ObjectValue",s)
- objValue.Name = "Target"
- objValue.Value = v
- table.insert(temptab,s)
- end
- --elseif s:IsA("CharacterMesh") then
- --table.insert(temptab,s)
- end
- --searchAll(v)
- end
- end
- return temptab
- end
- function CreateGhost()
- local ghost = Instance.new("Model",game.Workspace)
- searchAll(char,true)
- ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
- --Instance.new("Humanoid",ghost)
- for i,v in pairs(temptab) do
- v:Clone().Parent = ghost
- end
- table.insert(ghosts,ghost)
- end
- function ClearGhosts()
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- for i,v in pairs(ghosts) do
- table.remove(ghosts,1)
- end
- for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
- if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
- v:Destroy()
- end
- end
- end
- Instance.new("ForceField",char).Visible = false
- local e1 = Instance.new("Part",char)
- e1.Size = Vector3.new(0.2,0.2,0.2)
- e1.TopSurface = "Smooth"
- e1.BottomSurface = "Smooth"
- e1.Material = "Neon"
- e1.Transparency = 1
- e1.Anchored = true
- e1.CanCollide = false
- e1.BrickColor = gCol
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
- local em1 = Instance.new("SpecialMesh",e1)
- em1.MeshType = "Sphere"
- local e2 = Instance.new("Part",char)
- e2.Size = Vector3.new(0.2,0.2,0.2)
- e2.TopSurface = "Smooth"
- e2.BottomSurface = "Smooth"
- e2.Transparency = 1
- e2.Material = "Neon"
- e2.Anchored = true
- e2.CanCollide = false
- e2.BrickColor = gCol
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
- local em2 = Instance.new("SpecialMesh",e2)
- em2.MeshType = "Sphere"
- toggle = true
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 1
- char:FindFirstChild("Torso").Transparency = 1
- char:FindFirstChild("Right Arm").Transparency = 1
- char:FindFirstChild("Left Arm").Transparency = 1
- char:FindFirstChild("Right Leg").Transparency = 1
- char:FindFirstChild("Left Leg").Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- --[[mouse.KeyDown:connect(function(key)
- if key == "r" then
- print("R!")
- if cd == false then
- print("No cooldown!")
- cd = true
- if toggle == false then
- print("Entering godmode")
- toggle = true
- Instance.new("ForceField",char)
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 1
- char:FindFirstChild("Torso").Transparency = 1
- char:FindFirstChild("Right Arm").Transparency = 1
- char:FindFirstChild("Left Arm").Transparency = 1
- char:FindFirstChild("Right Leg").Transparency = 1
- char:FindFirstChild("Left Leg").Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- else
- print("Exiting godmode")
- toggle = false
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- end
- cd = false
- end
- end
- end)]]
- mouse.KeyDown:connect(function(key)
- spawn(function()
- if key == "f" and toggle == true and mcd == false then
- if #ghosts < amountGhosts then
- print(#ghosts.."<")
- mcd = true
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- else
- mcd = true
- ClearGhosts()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- end
- elseif key == "g" and toggle == true and mcd == false then
- if gt == true then
- gt = false
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- else
- gt = true
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = wCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = wCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = wCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = wCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- end
- end
- end)
- end)
- local frm = 0
- local toRemove = {}
- game:GetService("RunService").RenderStepped:connect(function()
- frm = frm + 1
- if char.Parent == game:GetService("Workspace").CurrentCamera then
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
- local delay = 0.9
- for i,v in pairs(ghosts) do
- for _,b in pairs(v:GetChildren()) do
- if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
- b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
- end
- end
- delay = delay - (0.5/(#ghosts+1))
- end
- --[[if math.floor(frm/8) == frm/8 then
- local isub = 0
- for i,v in pairs(ghosts) do
- if #v:GetChildren() < 6 then
- v:Destroy()
- table.remove(ghosts,i - isub)
- isub = isub + 1
- CreateGhost()
- end
- end
- end]]
- end
- --Animation states
- local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
- local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
- if state ~= "busy" then
- if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
- state = "idle"
- elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
- state = "running"
- --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
- state = "falling"
- elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
- state = "jumping"]]
- end
- char.Humanoid.WalkSpeed = 50
- char.Humanoid.JumpPower = 70
- end
- --Actual animations
- if state == "idle" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- elseif state == "running" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- end
- end)
- char.Humanoid.Died:connect(function()
- toggle = false
- ClearGhosts()
- char.Parent = game.Workspace
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- plr:LoadCharacter()
- end)
- local msgidGlob = 0
- local state = true
- local font = "Arcade"
- local tcol = Color3.fromRGB(255,217,0)
- local tscol = Color3.fromRGB(0,0,0)
- local fsiz = 28
- local tr = true
- local tsr = false
- local fade = 2
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- local r = 255
- local b = 0
- local g = 0
- plr.Chatted:connect(function(c)
- msgidGlob = msgidGlob + 1
- local curMsgId = msgidGlob
- if string.lower(c) == "!disable" then
- state = false
- elseif string.lower(c) == "!enable" then
- state = true
- elseif string.lower(string.sub(c,1,6)) == "!font " then
- local old = font
- font = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
- if string.lower(string.sub(c,9,#c)) == "rainbow" then
- tr = true
- else
- tr = false
- local old = tcol
- tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
- end
- elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
- if string.sub(c,10,#c) == "rainbow" then
- tsr = true
- else
- tsr = false
- local old = tscol
- tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
- end
- elseif string.lower(string.sub(c,1,6)) == "!size " then
- local old = fsiz
- fsiz = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,6)) == "!fade " then
- local old = fade
- fade = string.sub(c,7,#c) or old
- end
- if plr.Character and state == true then
- if plr.Character:FindFirstChild("Head") then
- for i,v in pairs(p:GetChildren()) do
- if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
- v:Destroy()
- end
- end
- local bbgui = Instance.new("BillboardGui",p)
- bbgui.Name = "J2CMSG"
- bbgui.AlwaysOnTop = true
- bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
- bbgui.Size = UDim2.new(0.2,0,0.14,0)
- local tl = Instance.new("TextLabel",bbgui)
- tl.BackgroundTransparency = 1
- tl.BorderSizePixel = 0
- tl.Size = UDim2.new(1,0,10,0)
- tl.Position = UDim2.new(0,0,-5,0)
- tl.Font = font or "SciFi"
- tl.FontSize = "Size"..fsiz or "Size36"
- tl.TextColor3 = tcol
- tl.TextScaled = false
- tl.TextWrapped = false
- tl.TextStrokeColor3 = tscol
- tl.TextStrokeTransparency = 0
- game:GetService("RunService").RenderStepped:connect(function()
- if tr then
- if tl.Parent ~= nil then
- tl.TextColor3 = Color3.fromRGB(r,g,b)
- end
- end
- end)
- for i=1,#c do
- if msgidGlob == curMsgId then
- tl.Text = string.sub(c,1,i)
- if string.sub(c,i,i) ~= " " then
- local s = Instance.new("Sound",p)
- s.SoundId = "rbxassetid://418252437"
- s.Volume = 1
- s.Pitch = 1
- s:Play()
- game.Debris:AddItem(s,2)
- end
- wait()
- end
- end
- wait(fade)
- if msgidGlob == curMsgId then
- for i=1,10 do
- if msgidGlob == curMsgId then
- tl.TextTransparency = tl.TextTransparency + 0.1
- tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
- tl.Position = tl.Position + UDim2.new(0,0,0,-3)
- wait()
- end
- end
- if msgidGlob == curMsgId then
- bbgui:Destroy()
- end
- end
- 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()
- if p.Parent ~= nil then
- p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
- else
- p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- end
- end)
- print("Ghost loaded! Time elapsed: "..tick() - time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement