Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- ezmot = function(p, a, b, cf)
- local weld = Instance.new("Motor",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local TweenService = game:GetService("TweenService")
- SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
- local MoveStyle = Enum.EasingStyle[MoveStyle2]
- local outorin = Enum.EasingDirection[outorin2]
- local dahspeed=1
- if SPart.Name=="Bullet" then
- dahspeed=1
- end
- local tweeningInformation = TweenInfo.new(
- AnimTime/dahspeed,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = CFr
- local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- function effect(p, scf, ecf, srt, ert, ssize, esize, str, etr, scol, ecol, mtype, spd, m)
- local part = Instance.new("Part", char)
- part.CanCollide = false
- part.Size = Vector3.new(1, 1, 1)
- part.CFrame = scf
- part.Transparency = str
- part.Color = scol
- part.Orientation = srt
- part.Anchored = true
- part.Material = m
- local mesh = Instance.new("SpecialMesh", part)
- mesh.Scale = ssize
- if mtype == "Wave" then
- mesh.MeshId = "rbxassetid://489415572"
- elseif mtype == "Sphere" then
- mesh.MeshType = "Sphere"
- elseif mtype == "Block" then
- mesh.MeshType = "Brick"
- end
- SetTween(part,{Transparency=etr,Color=ecol,CFrame=ecf, Orientation=ert},"Linear","Out",spd)
- SetTween(mesh,{Scale=esize},"Linear","Out",spd)
- game.Debris:AddItem(part, 25)
- end
- body = false
- ocf = nil
- cb = nil
- local view = Instance.new("Part", char)
- view.CanCollide = false
- view.Size = Vector3.new(1, 1, 1)
- view.Transparency = 1
- view.CFrame = root.CFrame
- view.Anchored = true
- view.Name = "view"
- local val = Instance.new("ObjectValue", char)
- val.Value = nil
- val.Name = "valuet"
- function enter(t)
- if t then
- local man = t.Parent
- if man then
- body = true
- cb = man
- val.Value = man
- local a = NLS([[
- workspace.CurrentCamera.CameraSubject = game:service("Players").LocalPlayer.Character.valuet.Value:FindFirstChildOfClass("Humanoid")
- ]], char)
- end
- end
- end
- function exit()
- body = false
- cb = nil
- if val.Value:FindFirstChild("HumanoidRootPart").CFrame then
- root.CFrame = val.Value:FindFirstChild("HumanoidRootPart").CFrame
- end
- local a = NLS([[
- workspace.CurrentCamera.CameraSubject = game:service("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- ]], char)
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- enter(mouse.Target)
- end
- if key == "n" then
- exit()
- end
- end)
- while true do
- Swait()
- if body == false then
- ocf = root.CFrame
- rootj.C0 = rootjnor * CFrame.new(0, 0, -400)
- local b = effect(char, root.CFrame*CFrame.new(0, -3, 0),root.CFrame*CFrame.new(0, -3, 0), Vector3.new(0, 0, 0), Vector3.new(0, 0, 0), Vector3.new(1, 0.65, 1), Vector3.new(14, 0.65, 14), 0, 2, Color3.new(0, 0, 0), Color3.new(0, 0, 0), "Sphere", 0.25, "Neon")
- end
- if cb ~= nil then
- if cb:FindFirstChild("HumanoidRootPart") then
- view.CFrame = cb:FindFirstChild("HumanoidRootPart").CFrame
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement