Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- function wbtwe(Part0, Part1, C0)
- local weld = Instance.new("Weld", Part0)
- weld.Part0 = Part0
- weld.Part1 = Part1
- weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
- return weld
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local Player_Size = 1
- float = 5
- wing = 5
- walk = 4
- mode = 1
- deb = false
- owner.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- owner.Character.Humanoid.MaxHealth = 500
- owner.Character.Humanoid.Health = 500
- local left=Instance.new("Part", owner.Character)
- left.Material = "Neon"
- left.BrickColor = BrickColor.new("Institutional white")
- left.Size = Vector3.new(5, 1, 0)
- left.CanCollide = false
- left.Locked = true
- local right=Instance.new("Part", owner.Character)
- right.Material = "Neon"
- right.BrickColor = BrickColor.new("Institutional white")
- right.Size = Vector3.new(5, 1, 0)
- right.CanCollide = false
- right.Locked = true
- local pad=Instance.new("Part", owner.Character)
- pad.Material = "Neon"
- pad.BrickColor = BrickColor.new("Institutional white")
- pad.Size = Vector3.new(2, 2, 0)
- pad.CanCollide = false
- pad.Locked = true
- local sign = Instance.new("BillboardGui")
- sign.Adornee = owner.Character.Head
- sign.Parent = owner.Character.Head
- sign.StudsOffset=Vector3.new(0.5,1,0)
- sign.Size=UDim2.new(3,0,6,0)
- text=Instance.new("TextLabel")
- text.Text= "Natural"
- text.TextScaled = true
- text.TextColor3 = Color3.new(1, 1, 1)
- text.Size=UDim2.new(1,0,1,0)
- text.Position=UDim2.new(-0.125,0,-0.25,0)
- text.BackgroundTransparency = 1
- text.Font = "Arcade"
- text.Parent=sign
- local msgg = Instance.new("BillboardGui")
- msgg.Adornee = owner.Character.Head
- msgg.Parent = owner.Character.Head
- msgg.StudsOffset=Vector3.new(0.5,3.5,0)
- msgg.Size=UDim2.new(3,0,6,0)
- msggg=Instance.new("TextLabel")
- msggg.Text= ""
- msggg.TextScaled = true
- msggg.TextColor3 = Color3.new(1, 1, 1)
- msggg.Size=UDim2.new(1,0,1,0)
- msggg.Position=UDim2.new(-0.125,0,-0.25,0)
- msggg.BackgroundTransparency = 1
- msggg.Font = "Arcade"
- msggg.Parent=msgg
- local music = Instance.new("Sound", owner.Character.Head)
- music.SoundId = "rbxassetid://2521602906"
- music.Volume = 2
- music.Looped = true
- music:Play()
- local change1 = Instance.new("Sound", owner.Character.Head)
- change1.SoundId = "rbxassetid://1841310110"
- change1.Volume = 2
- leftwing = wbtwe(left, owner.Character.Torso, CFrame.new(3, -2, -1) *CFrame.Angles(0, 0, math.cos(wing) *0.500))
- rightwing = wbtwe(right, owner.Character.Torso, CFrame.new(-3, -2, -1) *CFrame.Angles(0, 0, math.cos(-wing) *0.500))
- padweld = wbtwe(pad, owner.Character.Torso, CFrame.new(-0.5, 0.5, -1) *CFrame.Angles(0, 0, 4))
- hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, math.sin(-float) *0.100 -5, 0))
- law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.Torso, CFrame.new(0.2, 2.4, 0) *CFrame.Angles(0, 25, 0.3))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.Torso, CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(0, 0, -0.3))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, -0.6) *CFrame.Angles(0.6, -0.3, 0))
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:Wait() do
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- float = float +0.04
- if mode == 1 then
- wing = wing +0.04
- end
- if mode == 2 then
- wing = wing +0.069
- end
- if mode == 3 then
- wing = wing +0.075
- end
- if mode == 4 then
- wing = wing +0.095
- end
- if mode == 5 then
- wing = wing +0.095
- end
- if mode == 6 then
- wing = wing +0.095
- end
- if mode == 7 then
- wing = wing +0.095
- end
- if mode == 8 then
- wing = wing +0.095
- end
- if mode == 9 then
- wing = wing +0.095
- end
- if mode == 10 then
- wing = wing +0.150
- end
- if mode == 11 then
- wing = wing +0.300
- end
- if mode == 12 then
- wing = wing +0.190
- end
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.sin(-float) *0.500 -5, 0), 0.1)
- leftwing.C0 = leftwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(3, -2, -1) *CFrame.Angles(math.cos(wing) *-0.500, math.cos(wing) *0.500, 0), 0.1)
- rightwing.C0 = rightwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-3, -2, -1) *CFrame.Angles(math.cos(wing) *-0.500, math.cos(-wing) *-0.500, 0), 0.1)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.2, 2, 0) *CFrame.Angles(0, 25, 0.3), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.2, 2, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.6) *CFrame.Angles(0.6, -0.3, 0), 0.1)
- end
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
- if hitfloor then
- if mode == 1 then
- wing = wing +0.04
- end
- if mode == 2 then
- wing = wing +0.069
- end
- if mode == 3 then
- wing = wing +0.075
- end
- if mode == 4 then
- wing = wing +0.095
- end
- if mode == 5 then
- wing = wing +0.095
- end
- if mode == 6 then
- wing = wing +0.095
- end
- if mode == 7 then
- wing = wing +0.120
- end
- if mode == 8 then
- wing = wing +0.095
- end
- if mode == 9 then
- wing = wing +0.095
- end
- if mode == 10 then
- wing = wing +0.150
- end
- if mode == 11 then
- wing = wing +0.300
- end
- if mode == 12 then
- wing = wing +0.300
- end
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2, -1) *CFrame.Angles(0.5, 0, 0), 0.1)
- leftwing.C0 = leftwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(3, -2, -1) *CFrame.Angles(0, math.sin(wing) *0.7, 0), 0.1)
- rightwing.C0 = rightwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-3, -2, -1) *CFrame.Angles(0, math.sin(wing) *-0.7, 0), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.4, 0.9) *CFrame.Angles(-0.5, 0, 0), 0.1)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0) *CFrame.Angles(0.5, 25, -0.1), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0, 0) *CFrame.Angles(0.5, 0, 0.1), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 1.7, 0) *CFrame.Angles(0.5, 25, 0.1), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 1.7, 0) *CFrame.Angles(0.5, 0, -0.1), 0.1)
- end
- end
- end
- end)anim()
- mouse.KeyDown:connect(function(key)
- if key=="f" then
- if deb == false then
- deb = true
- mode = mode +1
- for i = 1,20 do
- game:GetService("RunService").Stepped:wait()
- music.PlaybackSpeed = music.PlaybackSpeed -0.05
- end
- local ex = Instance.new("Part", workspace)
- ex.Material = "Neon"
- ex.Size = Vector3.new(5, 5, 5)
- ex.CanCollide = false
- ex.Shape = "Ball"
- ex.Anchored = true
- ex.CFrame = owner.Character.Head.CFrame
- change1:Play()
- if mode == 2 then
- music.SoundId = "rbxassetid://1539245059"
- music.PlaybackSpeed = 1
- text.Text = "Purity"
- owner.Character.Humanoid.WalkSpeed = 25
- text.TextColor3 = BrickColor.new("Pink").Color
- left.BrickColor = BrickColor.new("Plum")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Plum")
- right.BrickColor = BrickColor.new("Plum")
- end
- if mode == 3 then
- music.SoundId = "rbxassetid://2586147657"
- music.PlaybackSpeed = 1.25
- text.Text = "Solar"
- owner.Character.Humanoid.WalkSpeed = 35
- text.TextColor3 = BrickColor.new("Bright yellow").Color
- left.BrickColor = BrickColor.new("Bright yellow")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Bright yellow")
- right.BrickColor = BrickColor.new("Bright yellow")
- end
- if mode == 4 then
- music.SoundId = "rbxassetid://1604456093"
- music.PlaybackSpeed = 1
- text.Text = "Calamity"
- owner.Character.Humanoid.WalkSpeed = 35
- text.TextColor3 = BrickColor.new("Medium stone grey").Color
- left.BrickColor = BrickColor.new("Medium stone grey")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Medium stone grey")
- right.BrickColor = BrickColor.new("Medium stone grey")
- end
- if mode == 5 then
- music.SoundId = "rbxassetid://481104377"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "Chaos"
- owner.Character.Humanoid.WalkSpeed = 35
- text.TextColor3 = BrickColor.new("Bright blue").Color
- left.BrickColor = BrickColor.new("Bright blue")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Bright blue")
- right.BrickColor = BrickColor.new("Bright blue")
- end
- if mode == 6 then
- music.SoundId = "rbxassetid://919231299"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "Destruction"
- owner.Character.Humanoid.WalkSpeed = 35
- text.TextColor3 = BrickColor.new("Really red").Color
- left.BrickColor = BrickColor.new("Really red")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Really red")
- right.BrickColor = BrickColor.new("Really red")
- end
- if mode == 7 then
- music.SoundId = "rbxassetid://3261146521"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "LIGHT"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = BrickColor.new("Institutional white").Color
- left.BrickColor = BrickColor.new("Institutional white")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Institutional white")
- right.BrickColor = BrickColor.new("Institutional white")
- end
- if mode == 8 then
- music.SoundId = "rbxassetid://2586147657"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "DESTINY"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = BrickColor.new("Plum").Color
- left.BrickColor = BrickColor.new("Plum")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Plum")
- right.BrickColor = BrickColor.new("Plum")
- end
- if mode == 9 then
- music.SoundId = "rbxassetid://1564523997"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "Solitude"
- owner.Character.Humanoid.WalkSpeed = 25
- text.TextColor3 = BrickColor.new("Really black").Color
- left.BrickColor = BrickColor.new("Really black")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Really black")
- right.BrickColor = BrickColor.new("Really black")
- end
- if mode == 10 then
- music.SoundId = "rbxassetid://614032233"
- music.PlaybackSpeed = 1
- text.Text = "MAYHEM"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = BrickColor.new("Really red").Color
- left.BrickColor = BrickColor.new("Really red")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Really red")
- right.BrickColor = BrickColor.new("Really red")
- end
- if mode == 11 then
- music.SoundId = "rbxassetid://183142252"
- music.PlaybackSpeed = 1
- music.Volume = 5
- text.Text = "BIG BLACK"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = BrickColor.new("Really black").Color
- left.BrickColor = BrickColor.new("Really black")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Really black")
- right.BrickColor = BrickColor.new("Really black")
- end
- if mode == 12 then
- music.SoundId = "rbxassetid://672082621"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "Division"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = BrickColor.new("Persimmon").Color
- left.BrickColor = BrickColor.new("Persimmon")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Persimmon")
- right.BrickColor = BrickColor.new("Persimmon")
- end
- if mode == 13 then
- music.SoundId = "rbxassetid://2521602906"
- music.PlaybackSpeed = 1
- music.Volume = 2
- text.Text = "Natural"
- owner.Character.Humanoid.WalkSpeed = 45
- text.TextColor3 = Color3.new(1, 1, 1)
- left.BrickColor = BrickColor.new("Institutional white")
- ex.BrickColor = left.BrickColor
- pad.BrickColor = BrickColor.new("Institutional white")
- right.BrickColor = BrickColor.new("Institutional white")
- owner.Character.Humanoid.WalkSpeed = 16
- mode = 1
- end
- deb = false
- for i = 1,25 do
- game:GetService("RunService").Stepped:wait()
- ex.Size = ex.Size +Vector3.new(1, 1, 1)
- ex.Transparency = ex.Transparency +0.05
- end
- ex:Destroy()
- end
- end
- end)
Add Comment
Please, Sign In to add comment