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
- mode = 0
- bothanim = 0
- local BillboardGui = Instance.new("BillboardGui")
- local Frame = Instance.new("Frame")
- local Text = Instance.new("TextBox")
- BillboardGui.MaxDistance = 50
- BillboardGui.Name = "Type"
- BillboardGui.Parent = owner.Character.Head
- BillboardGui.Active = true
- BillboardGui.Size = UDim2.new(15.5, 0, 15, 0)
- BillboardGui.StudsOffset = Vector3.new(0, 6, 0)
- Frame.Name = "Framer"
- Frame.Parent = BillboardGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 1
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.209999993, 0, 0.209999993, 0)
- Frame.Selectable = true
- Frame.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
- Text.Name = "Labeler"
- Text.Parent = Frame
- Text.BackgroundColor3 = Color3.new(0, 0, 0)
- Text.BackgroundTransparency = 1
- Text.BorderColor3 = Color3.new(0, 0, 0)
- Text.Position = UDim2.new(0.200000003, 0, 0.150000006, 0)
- Text.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
- Text.ClearTextOnFocus = false
- Text.Font = Enum.Font.Fantasy
- Text.Text = "Pleasant"
- Text.TextColor3 = BrickColor.new("Medium blue").Color
- Text.TextSize = 100
- Text.TextWrapped = true
- Text.TextScaled = true
- local sound = Instance.new("Sound", owner.Character.Head)
- sound.SoundId = "rbxassetid://1836672121"
- sound.Volume = 3
- sound.Name = "caster"
- sound.Looped = true
- sound:Play()
- local remote = Instance.new("RemoteEvent", owner.Character.Head)
- remote.Name = "cast"
- 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
- pbl = 0
- NLS([[
- while game:GetService("RunService").RenderStepped:wait() do
- owner.Character.Head.cast:FireServer(owner.Character.Head.caster.PlaybackLoudness)
- end
- ]], owner.Character)
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Accessory") or v:IsA("Decal") or v:IsA("SpecialMesh") then
- v:Destroy()
- end
- if v:IsA("Part") and v.Name ~= "Head" and v.Name ~= "HumanoidRootPart" then
- v.Transparency = 1
- local part = Instance.new("Part", owner.Character)
- part.Name = string.reverse(v.Name)
- part.BrickColor = BrickColor.new("Medium blue")
- part.CanCollide = false
- part.Material = "Neon"
- part.CFrame = v.CFrame
- part.Size = v.Size
- local weld = Instance.new("WeldConstraint", part)
- weld.Part0 = part
- weld.Part1 = v
- if v.Name == "Torso" then
- part.BrickColor = BrickColor.new("Steel blue")
- end
- elseif v:IsA("Part") and v.Name == "Head" then
- v.Transparency = 1
- local part = Instance.new("Part", owner.Character)
- part.Name = string.reverse(v.Name)
- part.BrickColor = BrickColor.new("Medium blue")
- part.CanCollide = false
- part.Material = "Neon"
- part.CFrame = v.CFrame
- part.Size = Vector3.new(1, 1, 1)
- local weld = Instance.new("WeldConstraint", part)
- weld.Part0 = part
- weld.Part1 = v
- end
- end
- hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
- law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.1, 0) *CFrame.Angles(0, 25, 0.1))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.1, 0) *CFrame.Angles(0, 0, -0.1))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0))
- mouse.KeyDown:connect(function(key)
- if key == "q" and mode == 0 or mode == -1 and key == "q" then
- mode = mode +1
- if mode == 0 then
- Text.Text = "Pleasant"
- Text.TextColor3 = BrickColor.new("Medium blue").Color
- owner.Character[string.reverse("Left Arm")].BrickColor = BrickColor.new("Medium blue")
- owner.Character[string.reverse("Right Arm")].BrickColor = BrickColor.new("Medium blue")
- owner.Character[string.reverse("Left Leg")].BrickColor = BrickColor.new("Medium blue")
- owner.Character[string.reverse("Right Leg")].BrickColor = BrickColor.new("Medium blue")
- owner.Character["daeH"].BrickColor = BrickColor.new("Medium blue")
- owner.Character["osroT"].BrickColor = BrickColor.new("Steel blue")
- sound.SoundId = "rbxassetid://1836672121"
- sound:Stop()
- sound:Play()
- end
- if mode == 1 then
- Text.Text = "Mayhem"
- Text.TextColor3 = BrickColor.new("Really red").Color
- owner.Character[string.reverse("Left Arm")].BrickColor = BrickColor.new("Really red")
- owner.Character[string.reverse("Right Arm")].BrickColor = BrickColor.new("Really red")
- owner.Character[string.reverse("Left Leg")].BrickColor = BrickColor.new("Really red")
- owner.Character[string.reverse("Right Leg")].BrickColor = BrickColor.new("Really red")
- owner.Character["daeH"].BrickColor = BrickColor.new("Really red")
- owner.Character["osroT"].BrickColor = BrickColor.new("Burgundy")
- sound.SoundId = "rbxassetid://1837015987"
- sound:Stop()
- sound:Play()
- end
- end
- if key == "c" and mode == 1 then
- mode = -1
- Text.TextSize = 70
- Text.TextScaled = false
- Text.Text = "G l i t c h e s"
- Text.TextColor3 = BrickColor.new("Black").Color
- owner.Character[string.reverse("Left Arm")].BrickColor = BrickColor.new("Really black")
- owner.Character[string.reverse("Right Arm")].BrickColor = BrickColor.new("Really black")
- owner.Character[string.reverse("Left Leg")].BrickColor = BrickColor.new("Really black")
- owner.Character[string.reverse("Right Leg")].BrickColor = BrickColor.new("Really black")
- owner.Character["daeH"].BrickColor = BrickColor.new("Really black")
- owner.Character["osroT"].Color = BrickColor.new("Black").Color
- sound.SoundId = "rbxassetid://1507470798"
- sound:Stop()
- sound:Play()
- end
- end)
- spawn(function()
- while game:GetService("RunService").Stepped:wait() do
- if mode == -1 then
- local a = math.random(1,9)
- if a == 1 then
- Text.Text = "G l i t c h e s"
- end
- if a == 2 then
- Text.Text = "Glitches"
- end
- if a == 3 then
- Text.Text = "G litches"
- end
- if a == 4 then
- Text.Text = "Gl itches"
- end
- if a == 5 then
- Text.Text = "Gli tches"
- end
- if a == 6 then
- Text.Text = "Glit ches"
- end
- if a == 7 then
- Text.Text = "Glitc hes"
- end
- if a == 8 then
- Text.Text = "Glitch es"
- end
- if a == 9 then
- Text.Text = "Glitche s"
- end
- end
- end
- end)
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- if mode == 0 then
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- bothanim = bothanim +0.1
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.7 +pbl/2000, 0 +pbl/2000) *CFrame.Angles(0 +pbl/2000, 0, 0+pbl/2000), 0.7)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(bothanim) *0.06 +math.cos(bothanim) *0.2, 0 +pbl/2000) *CFrame.Angles(0 +pbl/2000, 0, 0+pbl/2000), 0.7)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0, 0) *CFrame.Angles(0, 25, 0.1), 0.5)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0, 0) *CFrame.Angles(0, 0, -0.1), 0.5)
- llw.Part1 = owner.Character.HumanoidRootPart
- rlw.Part1 = owner.Character.HumanoidRootPart
- end
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- bothanim = bothanim +0.1
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.7 +pbl/2000, 0 +pbl/2000) *CFrame.Angles(0 +pbl/2000, 0, math.sin(bothanim) *0.2), 0.7)
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.sin(bothanim) *0.06 +math.cos(bothanim) *0.2, 0 +pbl/2000) *CFrame.Angles(0.4 +pbl/2000, 0, 0+pbl/2000), 0.7)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0, 0) *CFrame.Angles(0, 25, 0.1), 0.5)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0, 0) *CFrame.Angles(0, 0, -0.1), 0.5)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(math.cos(bothanim) *-0.2, 25,0), 0.3)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(math.cos(bothanim) *0.2, 0, 0), 0.3)
- llw.Part1 = owner.Character.Torso
- rlw.Part1 = owner.Character.Torso
- end
- end
- if mode == 1 then
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- bothanim = bothanim +0.1
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, math.sin(bothanim) *0.2, 0.3) *CFrame.Angles(0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.45, -0.8) *CFrame.Angles(0.8+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0.2, 0.3) *CFrame.Angles(-0.3 +math.rad(math.random(-1,1)), 25 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0.2, 0.3) *CFrame.Angles(-0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0.5, 2.1, 0) *CFrame.Angles(0, 25, 0), 0.5)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-0.5, 2.1, 0) *CFrame.Angles(0,0,0), 0.5)
- end
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- bothanim = bothanim +0.1
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0.3) *CFrame.Angles(0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.45, -0.8) *CFrame.Angles(0.8+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0.2, math.cos(-bothanim) *-0.2) *CFrame.Angles(math.cos(bothanim) *0.2 +math.rad(math.random(-1,1)), 25 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0.2, math.cos(-bothanim) *0.2) *CFrame.Angles(math.cos(bothanim) *-0.2+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0.5, 2.1, math.cos(bothanim) *0.4) *CFrame.Angles(math.cos(-bothanim) *0.2, 25, 0), 0.5)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-0.5, 2.1, math.cos(-bothanim) *0.4) *CFrame.Angles(math.cos(-bothanim) *-0.2, 0, 0), 0.5)
- end
- end
- if mode == -1 then
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- bothanim = bothanim +0.1
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0.3) *CFrame.Angles(0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.45, -0.8) *CFrame.Angles(0.8+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0.2, math.cos(-bothanim) *1) *CFrame.Angles(math.cos(bothanim) *2+math.rad(math.random(-1,1)), 25 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0.2, math.cos(-bothanim) *2) *CFrame.Angles(math.cos(bothanim) *-1+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0.5, 2.1, math.cos(bothanim) *1) *CFrame.Angles(math.cos(-bothanim) *2, 25, 0), 0.5)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-0.5, 2.1, math.cos(-bothanim) *2) *CFrame.Angles(math.cos(-bothanim) *-1, 0, 0), 0.5)
- end
- end
- end
- end)anim()
- remote.OnServerEvent:connect(function(P,X)
- pbl = X
- end)
- health = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- owner.Character.Humanoid.MaxHealth = math.huge
- owner.Character.Humanoid.Health = math.huge
- end
- end)health()
- eff= coroutine.wrap(function()
- while wait(math.random(1,4)) do
- if mode == -1 then
- for i = 1,math.random(15, 55) do
- game:GetService("RunService").Stepped:wait()
- sound.PlaybackSpeed = math.random(0.1, 20)
- hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 1)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(math.random(-2, 2),math.random(-2, 2), math.random(-2, 2)), 1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 1)
- end
- sound.PlaybackSpeed = 1
- end
- end
- end)eff()
Add Comment
Please, Sign In to add comment