Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn([[
- A whole selection of powers packed in one.
- By DrakerMaker
- WIP Product
- ]])
- 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 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
- function wbtwe(first,second,c0)
- local weld = Instance.new("Weld", first)
- weld.Part0 = first
- weld.Part1 = second
- weld.C0 = second.CFrame:inverse() *second.CFrame *c0
- return weld
- end
- owner.Character["Left Arm"].Transparency = 1
- local arm = Instance.new("Part", owner.Character)
- arm.Name = "Arm"
- arm.CanCollide = false
- arm.Size = Vector3.new(1, 2, 1)
- arm.CFrame= owner.Character["Left Arm"].CFrame
- arm.TopSurface = "Smooth"
- arm.BottomSurface = "Smooth"
- arm.Material = "SmoothPlastic"
- arm.Locked = true
- wbtwe(arm, owner.Character["Left Arm"], CFrame.new(0, 0, 0))
- local band = Instance.new("Part", owner.Character)
- band.Name = "Band"
- band.CanCollide = false
- band.Size = Vector3.new(1.12, 0.18, 1.16)
- band.BrickColor = BrickColor.new("Institutional white")
- band.CFrame = arm.CFrame
- band.TopSurface = "Smooth"
- band.BottomSurface = "Smooth"
- band.Material = "Neon"
- band.Locked = true
- wbtwe(band, arm, CFrame.new(0, 0.6, 0))
- local song = Instance.new("Sound", owner.Character.Head)
- song.SoundId = "rbxassetid://1117396305"
- song.Volume = 2
- song.Looped = true
- song:Play()
- idle = 0.1
- walk = 0.5
- mode = 1
- float = 1
- deb = false
- local sign = Instance.new("BillboardGui", 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= "Even"
- 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.TextStrokeTransparency = 0
- text.Font = "SourceSansBold"
- text.Parent=sign
- hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
- law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.2))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.2))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.2, 2.2, 0) *CFrame.Angles(0, 25, 0.2))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.2, 2.2, 0) *CFrame.Angles(0, 0, -0.2))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, -0.3, 0))
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- if text.Text == "Even" then
- llw.Part1 = owner.Character["HumanoidRootPart"]
- rlw.Part1 = owner.Character["HumanoidRootPart"]
- idle = idle +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 +math.rad(math.random(-1, 1)), 25 +math.rad(math.random(-1, 1)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-1, 1))), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-1, 1)), 0 +math.rad(math.random(-1, 1)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-1, 1))), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.1) *CFrame.Angles(0, 25, 0.2), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.cos(idle) *0.05, 0), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0.1 +math.cos(idle) *0.2, 0), 0.1)
- end
- if text.Text == "CONQUEST" or text.Text == "BOLD" then
- llw.Part1 = owner.Character["HumanoidRootPart"]
- rlw.Part1 = owner.Character["HumanoidRootPart"]
- idle = idle +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 +math.rad(math.random(-6, 6)), 25 +math.rad(math.random(-6, 6)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-6, 6)), 0 +math.rad(math.random(-6, 6)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.1) *CFrame.Angles(0, 25, 0), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0 +math.rad(math.random(-2, 2)), 0.3 +math.rad(math.random(-2, 2)) +math.cos(idle) *0.05 +math.rad(math.random(-2, 2)), 0 +math.rad(math.random(-2, 2))), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0.1 +math.cos(idle) *0.2, 0) *CFrame.Angles(0 +math.rad(math.random(-2, 2)), 0.3 +math.rad(math.random(-2, 2)) +math.cos(idle) *0.05 +math.rad(math.random(-2, 2)), 0 +math.rad(math.random(-2, 2))), 0.1)
- end
- if text.Text == "Solar" then
- float = float +0.06
- llw.Part1 = owner.Character["Torso"]
- rlw.Part1 = owner.Character["Torso"]
- 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 +math.rad(math.random(-6, 6)), 25 +math.rad(math.random(-6, 6)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-6, 6)), 0 +math.rad(math.random(-6, 6)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.3) *CFrame.Angles(-0.2, 25, 0), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0.2) *CFrame.Angles(-0.4, 0.3, 0), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 +math.cos(float) *0.2, 0) *CFrame.Angles(math.cos(float) *0.03, 0.3, math.sin(float) *0.03), 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 text.Text == "Even" then
- if hitfloor then
- walk = walk +0.1
- llw.Part1 = owner.Character["HumanoidRootPart"]
- rlw.Part1 = owner.Character["HumanoidRootPart"]
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.2 +math.sin(idle) *0.05), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.05), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.05), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.sin(walk) *0.05, 0), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.04, 0), 0.1)
- end
- end
- if text.Text == "CONQUEST" or text.Text == "Solar" then
- if hitfloor then
- walk = walk +0.2
- llw.Part1 = owner.Character["Torso"]
- rlw.Part1 = owner.Character["Torso"]
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.9, 25, 0.2 +math.sin(idle) *0.05), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.9, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.9, 25, 0.05), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.9, 0, -0.05), 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, 0), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
- end
- end
- if text.Text == "BOLD" then
- if hitfloor then
- walk = walk +0.1
- llw.Part1 = owner.Character["HumanoidRootPart"]
- rlw.Part1 = owner.Character["HumanoidRootPart"]
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.2 +math.sin(idle) *0.05), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.05), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.05), 0.1)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.sin(walk) *0.05, 0), 0.1)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.04, 0), 0.1)
- end
- end
- end
- end
- end
- end
- end
- end)
- anim()
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- if deb == false then
- deb = true
- owner.Character.Humanoid.WalkSpeed = 0
- for i = 1,25 do
- game:GetService("RunService").Stepped:wait()
- song.PlaybackSpeed = song.PlaybackSpeed -0.1
- end
- mode = mode +1
- local part = Instance.new("Part", workspace)
- part.Shape = "Ball"
- part.CanCollide = false
- part.Anchored = true
- part.Material = "Neon"
- part.Size = Vector3.new(5, 5, 5)
- part.CFrame = owner.Character.Torso.CFrame
- local sound = Instance.new("Sound", owner.Character.Torso)
- sound.SoundId = "rbxassetid://365002938"
- sound.Volume = 4
- sound:Play()
- if mode == 2 then
- song.SoundId = "rbxassetid://4390839374"
- text.Text = "CONQUEST"
- text.TextColor3 = BrickColor.new("Royal purple").Color
- band.BrickColor = BrickColor.new("Royal purple")
- part.BrickColor = BrickColor.new("Royal purple")
- text.Font = "Fantasy"
- text.TextStrokeTransparency = 1
- song.PlaybackSpeed = 1
- owner.Character.Humanoid.WalkSpeed = 25
- deb = false
- end
- if mode == 3 then
- song.SoundId = "rbxassetid://2790846194"
- text.Text = "Solar"
- text.TextColor3 = BrickColor.new("New Yeller").Color
- band.BrickColor = BrickColor.new("New Yeller")
- part.BrickColor = BrickColor.new("New Yeller")
- text.Font = "Gotham"
- text.TextStrokeTransparency = 1
- song.PlaybackSpeed = 1
- owner.Character.Humanoid.WalkSpeed = 25
- deb = false
- end
- if mode == 4 then
- song.SoundId = "rbxassetid://953983708"
- text.Text = "BOLD"
- text.TextColor3 = BrickColor.new("Medium stone grey").Color
- band.BrickColor = BrickColor.new("Medium stone grey")
- part.BrickColor = BrickColor.new("Medium stone grey")
- text.Font = "SourceSansBold"
- song.PlaybackSpeed = 1
- owner.Character.Humanoid.WalkSpeed = 16
- deb = false
- end
- for i = 1,25 do
- game:GetService("RunService").Stepped:wait()
- part.Transparency = part.Transparency +0.1
- part.Size = part.Size +Vector3.new(1, 1, 1)
- end
- part:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement