Advertisement
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
- textanim = 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.MultiLine = true
- Text.Text = "I . N . S . A . N . E"
- Text.TextColor3 = Color3.new(0,0,0)
- Text.TextSize = 100
- Text.TextStrokeTransparency = 0
- Text.TextWrapped = false
- local NightcoreiNSaNiTY = Instance.new("Sound")
- NightcoreiNSaNiTY.PlaybackSpeed = 0.89
- NightcoreiNSaNiTY.SoundId = "rbxassetid://2784904276"
- NightcoreiNSaNiTY.TimePosition = 190.9
- NightcoreiNSaNiTY.Volume = 6
- NightcoreiNSaNiTY.Looped = true
- NightcoreiNSaNiTY.Name = "Nightcore - iNSaNiTY"
- NightcoreiNSaNiTY.Parent = owner.Character.Head
- NightcoreiNSaNiTY:Play()
- 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
- run = 0
- idle = 0
- 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.45, 0.3, 0.1) *CFrame.Angles(-2.9, 25, -12))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1, 0, -0.4) *CFrame.Angles(2.9, 0, 12))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0.1))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, -0.1))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0, 0))
- local shadowhead = Instance.new("Part",owner.Character.Head)
- shadowhead.BrickColor = BrickColor.new("Really black")
- shadowhead.Size = Vector3.new(1.2, 0.6, 1)
- shadowhead.CanCollide = false
- shadowhead.Locked = true
- local shadowheadmesh = Instance.new("SpecialMesh",shadowhead)
- shadowheadmesh.MeshType = "Head"
- shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26)
- local weld2 = Instance.new("Weld",shadowhead)
- weld2.Part0 = shadowhead
- weld2.Part1 = owner.Character.Head
- weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- NLS([[
- while game:GetService("RunService").RenderStepped:wait() do
- workspace.CurrentCamera.CFrame=workspace.CurrentCamera.CFrame*CFrame.Angles(math.random(-1.2,1.2)/360,math.random(-1.2,1.2)/360,math.random(-1.2,1.2)/360)
- end
- ]], owner.Character)
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- idle = idle +0.1
- hw.C0=hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0.4 +math.sin(idle) *0.2, 0), 0.1)
- hrw.C0=hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(idle) *0.1, 0), 0.1)
- law.C0=law.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.45, 0.3, 0.1) *CFrame.Angles(-2.9 +math.sin(idle) *0.2, 25, -12), 0.1)
- raw.C0=raw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1, 0, -0.4) *CFrame.Angles(2.9 +math.sin(idle) *-0.2, 0, 12), 0.1)
- llw.C0=llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
- rlw.C0=rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, -0.1), 0.1)
- end
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- run = run +0.1
- hw.C0=hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0, 0), 0.1)
- hrw.C0=hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0), 0.1)
- law.C0=law.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.45, 0.1, math.sin(run) *0.1) *CFrame.Angles(math.sin(run) *-0.8, 25, 0), 0.1)
- raw.C0=raw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1.4, 0.1, math.sin(run) *-0.1) *CFrame.Angles(math.sin(run) *0.8, 0, 0), 0.1)
- llw.C0=llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.45, 2.1 +math.cos(run) *0.4, math.sin(run) *-0.8) *CFrame.Angles(math.sin(run) *-0.8, 25, 0), 0.1)
- rlw.C0=rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.4, 2.1 -math.cos(run) *0.4, math.sin(run) *0.8) *CFrame.Angles(math.sin(run) *0.8, 25, 0), 0.1)
- end
- end
- end)anim()
- while game:GetService("RunService").Stepped:wait() do
- textanim = textanim +0.1
- Text.Rotation = math.random(-5, 5)
- Text.TextColor3 = BrickColor.Random().Color
- Text.TextStrokeColor3 = BrickColor.Random().Color
- shadowhead.BrickColor = BrickColor.Random()
- local service = game:GetService("TweenService")
- local table = {}
- table.StudsOffset = Vector3.new(math.sin(textanim) *math.random(-1,1), 6 +math.cos(textanim) *math.random(-1,1), 0)
- local tween2 = service:Create(BillboardGui, TweenInfo.new(0.2), table)
- tween2:Play()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement