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
- walk = 0
- 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.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, -0.1))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 1.9, 0) *CFrame.Angles(0, 25, 0))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 1.9, 0) *CFrame.Angles(0, 0, 0) *CFrame.Angles(0, 0, 0))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0))
- local song = Instance.new("Sound", owner.Character.Head)
- song.Volume = 5
- song.SoundId = "rbxassetid://2128137966"
- song.Looped = true
- song:Play()
- local dialogue = Instance.new("Sound", owner.Character.Head)
- dialogue.Volume = 5
- dialogue.SoundId = "rbxassetid://177266782"
- 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(35.5, 0, 15, 0)
- BillboardGui.StudsOffset = Vector3.new(-0.5, 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 = ""
- Text.TextColor3 = BrickColor.new("Really black").Color
- Text.TextSize = 100
- Text.TextScaled = true
- walkincrease = 0.1
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- walk = walk +walkincrease
- end
- end)anim()
- chatdeb = false
- function speak(talk, delay)
- if chatdeb == false then
- chatdeb = true
- msg = talk
- Text.TextColor3 = BrickColor.new("Really black").Color
- BillboardGui.StudsOffset = Vector3.new(-0.5, 6, 0)
- for i = 1,string.len(msg) do
- wait(delay)
- Text.Text = talk:sub(1,i)
- dialogue:Play()
- Text.Rotation = math.random(-10, 0)
- end
- for i = 1,65 do
- wait()
- Text.Rotation = math.random(-10, 0)
- end
- Text.TextStrokeTransparency = 0
- glitch = "#$#&#$*@#&$*$%*#$&&%(%$^@E$$^$$(^&*%(^^##^#$(%^#^@(%&@#%#$&$*%^($&@@$R(%&W@%!@)^&#&@#%!@%!@%@#^@^$*%^*%^^#$&$%*&$&$%&#%&#%&%$&%$&%$&$%&#^@#%@#%@#^$%&%^(&*)&)*&)&*)&*)()+_^^$#&&%*(^%*$&%^)*&^%$^$%ty*%^&#^$%*$^$&$^*$U#$&$%&#^#$&$^(*%^##$@#$&#&@#^#^"
- for i = 1,math.random(5, 12) do
- wait(0)
- BillboardGui.StudsOffset = Vector3.new(math.random(-1, 0), math.random(5.5, 6.6), 0)
- Text.Text = glitch:sub(1,string.len(talk))
- Text.Rotation = math.random(-10, 10)
- Text.TextColor3 = Color3.new(math.random(0, 50), 0, 0)
- Text.TextStrokeColor3 = Color3.new(math.random(0, 50), 0, 0)
- end
- chatdeb = false
- Text.TextStrokeTransparency = 1
- Text.Text = " "
- end
- end
- deb = false
- animt = true
- owner.Chatted:connect(function(msg)
- speak(msg, 0)
- chatdeb = false
- end)
- bothanim = 0
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- if animt == true then
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- bothanim = bothanim +0.05
- hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(bothanim) *-0.1, 0), 0.1)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, 0.1), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.9, 0) *CFrame.Angles(0, 25, 0), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 1.9, 0) *CFrame.Angles(0, 0, 0), 0.1)
- 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, math.cos(bothanim) *-0.1, 0) *CFrame.Angles(0, math.sin(bothanim) *-0.1, 0) 0.1)
- law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
- raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, 0.1), 0.1)
- llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.9, math.sin(bothanim) *0.1) *CFrame.Angles(math.sin(bothanim) *-0.1, 25, 0), 0.1)
- rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 1.9, math.sin(bothanim) *-0.1) *CFrame.Angles(math.sin(bothanim) *0.1, 0, 0), 0.1)
- end
- end
- end
- end)anim()
- speak("THE WORLD IS MINE!")
Add Comment
Please, Sign In to add comment