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
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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()}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;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("UserInput_Event")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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
- --[[
- REMAKE / YOU WANT WHAT ?
- Created by tomonaoboys
- Changed from Old Version:Targeting System, Key press, some effects
- Health is broken. yeah.
- and this script is not for R15.(Old Version too)
- Move list (* is require Target)
- Q : Target :Target someone. Can Target R15.
- F : Kill Target *
- G : Erase Target *
- C : Teleport Self
- --]]
- local Lighting=game:FindFirstChildOfClass("Lighting")local Players=game:FindFirstChildOfClass("Players")local PL=Players.LocalPlayer
- debri=game:GetService("Debris")Ghost=false
- PC=PL.Character Phm=PC:FindFirstChildOfClass("Humanoid")
- PL:ClearCharacterAppearance()
- PC.Archivable=true Targeted=nil Mouse=PL:GetMouse()
- Invisible=false
- ring="rbxassetid://3270017"
- function PlaySound(ID,Volume,Speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=ID s.Volume=Volume s.PlaybackSpeed=Speed s:Play()s.PlayOnRemove=true wait(10)s.Volume=0 s:Remove()end)end
- local Tabillboard=Instance.new("BillboardGui",nil)Tabillboard.Size=UDim2.new(1,0,1,0)Tabillboard.ExtentsOffsetWorldSpace=Vector3.new(0,4,0)targettext=Instance.new("TextLabel",Tabillboard)targettext.Size=UDim2.new(1,0,1,0)targettext.BackgroundTransparency=1 targettext.BorderSizePixel=0 targettext.Font="Bodoni" targettext.TextColor3=Color3.fromRGB(255,0,0)targettext.TextSize=20 targettext.TextStrokeTransparency=0 Tabillboard.AlwaysOnTop=true targettext.Text=""
- local namebillboard=Instance.new("BillboardGui",PC["Head"])namebillboard.Size=UDim2.new(1,0,1,0)namebillboard.ExtentsOffsetWorldSpace=Vector3.new(0,4,0)nametext=Instance.new("TextLabel",namebillboard)nametext.Size=UDim2.new(1,0,1,0)nametext.BackgroundTransparency=1 nametext.BorderSizePixel=0 nametext.Font="Bodoni" nametext.TextColor3=Color3.fromRGB(120,0,0)nametext.TextSize=30 nametext.TextStrokeTransparency=0 namebillboard.AlwaysOnTop=true nametext.Text=tostring(PL)namebillboard.Name=" billboard"namebillboard.Enabled=false
- local TMark=Instance.new("BillboardGui",nil)TMark.AlwaysOnTop=true TMark.Size=UDim2.new(8,0,8,0)local timg=Instance.new("ImageLabel",TMark)timg.Size=UDim2.new(1,0,1,0)timg.Image="rbxassetid://418573253"timg.BackgroundTransparency=1 timg.ImageTransparency=.6
- function clear()Targeted=nil TMark.Enabled=false TMark.Parent=nil TMark.Enabled=false Tabillboard.Parent=nil Tabillboard.Enabled=false end
- function a(part)
- local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)
- end
- function mov(part,vec3)
- local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3
- end
- spawn(function()
- while wait()do
- if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
- Phm.MaxHealth=(1/0)/(1/0)Phm.HealthDisplayType="AlwaysOff"Phm.Health=(1/0)/(1/0)Phm.WalkSpeed=8 Phm.PlatformStand=false
- if Ghost then PC.Parent=workspace.CurrentCamera else PC.Parent=workspace end
- local cl=PC:Clone()
- local c=cl:GetChildren()timg.Rotation=timg.Rotation+3
- nametext.Position=UDim2.new(0,math.random(5)-math.random(5),0,math.random(5)-math.random(5))
- local B=Instance.new("SelectionSphere")B.Color3=Color3.fromRGB(60,0,0)B.Visible=true B.Transparency=0.5 local part=Instance.new("Part")part.CanCollide=false part.Transparency=1 part.Size=Vector3.new(7,7,7)B.Parent=part part.CFrame=PC.Torso.CFrame part.Parent=workspace if Invisible==false then B.Adornee=part end part.Anchored=true debri:AddItem(part,.1)
- for i=1,#c do if c[i]:IsA("Humanoid")then c[i]:Destroy()end if c[i]:IsA("Part")then c[i].CanCollide=false c[i].Anchored=true if c[i].Name~="HumanoidRootPart"then c[i].Color=Color3.new(0,0,0)c[i].Transparency=.5 c[i].Material="Neon"else c[i]:Destroy()end if c[i].Name=="Head"then c[i][" billboard"].Enabled=true end end end debri:AddItem(cl,.1)cl.Parent=workspace
- local c=PC:GetChildren()for i=1,#c do if c[i]:IsA("Part")then c[i].Locked=true c[i].Anchored=false c[i].Transparency=1 end end
- local child=PC.Torso:GetChildren()for i=1,#child do if child[i]:IsA("Motor6D")==false then child[i]:Destroy()end end
- local child=PC["Left Arm"]:GetChildren()for i=1,#child do child[i]:Destroy()end
- local child=PC["Left Leg"]:GetChildren()for i=1,#child do child[i]:Destroy()end
- local child=PC["Right Arm"]:GetChildren()for i=1,#child do child[i]:Destroy()end
- local child=PC["Right Leg"]:GetChildren()for i=1,#child do child[i]:Destroy()end
- local child=PC.Head:GetChildren()for i=1,#child do if child[i]:IsA("SpecialMesh")==false then if child[i].Name~=" billboard"then child[i]:Destroy()end end end
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
- if not Gpe then
- if Key.KeyCode==Enum.KeyCode.Q then
- if Mouse.Target~=nil then
- if tostring(Mouse.Target.Parent)~=PL.Name then
- if Mouse.Target.Parent~=nil then
- if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- Tabillboard.Enabled=true
- Targeted=Mouse.Target.Parent
- print(Targeted)
- Tabillboard.Parent=Targeted TMark.Parent=Targeted
- if Targeted:FindFirstChild("Torso")~=nil then
- Tabillboard.Adornee=Targeted.Torso
- TMark.Adornee=Targeted.Torso TMark.Enabled=true
- targettext.Text="Targeted:"..tostring(Targeted)
- else
- Tabillboard.Adornee=Targeted.UpperTorso
- TMark.Adornee=Targeted.UpperTorso
- targettext.Text="Targeted:"..tostring(Targeted)
- end
- end
- end
- end
- end
- elseif Key.KeyCode==Enum.KeyCode.One then
- clear()
- elseif Key.KeyCode==Enum.KeyCode.Zero then
- if Ghost then Ghost=false print("Ghost Deactived")else Ghost=true print("Ghost Actived")end
- elseif Key.KeyCode==Enum.KeyCode.F then
- if Targeted~=nil then
- PlaySound("rbxassetid://130779009",5,1)
- Targeted:FindFirstChildOfClass("Humanoid").Health=nil Targeted:FindFirstChildOfClass("Humanoid").MaxHealth=nil Targeted:BreakJoints()local pos=nil
- if Targeted:FindFirstChild("Torso")~=nil then pos=Targeted.Torso.Position else pos=Targeted.UpperTorso.Position end
- local p1=Instance.new("Part")p1.Anchored=true p1.Material="Neon"p1.CanCollide=false local m=Instance.new("SpecialMesh",p1)m.MeshType="Sphere"p1.Color=Color3.new(1,0,0)p1.Size=Vector3.new(0,0,0)
- local p2=p1:Clone()local m2=p2["Mesh"]m2.MeshId=ring
- for i=0,1,.05 do
- p1.Parent=nil p2.Parent=nil p1.Position=pos p2.Position=pos p1.Transparency=i p2.Transparency=i p2.Orientation=Vector3.new(90,0,0)
- m.Scale=Vector3.new(200-i*50,200-i*50,200-i*50)
- m2.Scale=Vector3.new(16+i*5,16+i*5,10+i*5)
- p1.Parent=workspace p2.Parent=workspace wait()
- end p1:Destroy()p2:Destroy()
- end
- elseif Key.KeyCode==Enum.KeyCode.G then
- if Targeted~=nil then
- PlaySound("rbxassetid://130779009",5,1)
- Targeted:FindFirstChildOfClass("Humanoid").Health=nil Targeted:FindFirstChildOfClass("Humanoid").MaxHealth=nil Targeted:BreakJoints()local pos=nil
- if Targeted:FindFirstChild("Torso")~=nil then pos=Targeted.Torso.Position else pos=Targeted.UpperTorso.Position end
- local OT=Targeted clear()OT:Remove()
- local p1=Instance.new("Part")p1.Anchored=true p1.Material="Neon"p1.CanCollide=false local m=Instance.new("SpecialMesh",p1)m.MeshType="Sphere"p1.Color=Color3.new(.3,0,.5)p1.Size=Vector3.new(0,0,0)
- local p2=p1:Clone()local m2=p2["Mesh"]m2.MeshId=ring p2.Color=Color3.new(1,1,1)
- for i=0,1,.05 do
- p1.Parent=nil p2.Parent=nil p1.Position=pos p2.Position=pos p1.Transparency=i p2.Transparency=i p2.Orientation=Vector3.new(90,0,0)
- m.Scale=Vector3.new(200-i*50,200-i*50,200-i*50)
- m2.Scale=Vector3.new(20-i*5,20-i*5,20-i*5)
- p1.Parent=workspace p2.Parent=workspace wait()
- end p1:Destroy()p2:Destroy()
- end
- elseif Key.KeyCode==Enum.KeyCode.C then
- PlaySound("rbxassetid://260433746",5,1)
- local part2=Instance.new("Part",workspace)part2.Shape="Ball"part2.Size=Vector3.new(10,10,10)part2.CanCollide=false part2.Anchored=true part2.Material="Neon"part2.CFrame=PC.Torso.CFrame part2.Color=Color3.new(1,1,1)
- PC.Torso.CFrame=Mouse.Hit+Vector3.new(0,3,0)
- local part=Instance.new("Part",workspace)part.Color=Color3.new(1,1,1)part.Shape="Ball"part.Size=Vector3.new(10,10,10)part.CanCollide=false part.Anchored=true part.Material="Neon"part.CFrame=Mouse.Hit+Vector3.new(0,3,0)
- for i=0,1,.02 do part.Transparency=i part2.Transparency=i wait(.02)end
- part:Destroy()part2:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment