Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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(),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("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 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
- lp = game.Players.LocalPlayer
- char = lp.Character
- head = char.Head
- hum = char.Humanoid
- bp = lp.Backpack
- gui = lp.PlayerGui
- scanmsg = nil
- toweractive = false
- equip = false
- scanner = Instance.new("Tool",bp)
- scanner.Name = "Scanner"
- shandle = Instance.new("Part",scanner)
- shandle.Size = Vector3.new(3,2,1)
- shandle.Name = "Handle"
- scanner.Equipped:connect(function()
- if toweractive == false then
- scanmsg = Instance.new("Message",gui)
- scanmsg.Text = "NO SIGNAL"
- end
- if toweractive == true then
- scanmsg = Instance.new("Message",gui)
- scanmsg.Text = "NO DATA"
- equip = true
- end
- end)
- scanner.Unequipped:connect(function()
- if scanmsg ~= nil then
- scanmsg:Destroy()
- equip = false
- end
- end)
- scanner.Activated:connect(function()
- if equip then
- mouse = lp:GetMouse()
- target = mouse.Target
- if target then
- if target.Parent then
- if target.Name == "Head" and target.Parent:FindFirstChildOfClass("Humanoid") then
- parent = target.Parent
- victimhum = parent.Humanoid
- player = game:GetService("Players"):GetPlayerFromCharacter(parent)
- if player == nil then
- if scanmsg ~= nil then
- scanmsg.Text = "[ISN'T A PLAYER]\nName-"..parent.Name.."\nWalkSpeed-"..tostring(victimhum.WalkSpeed).."[DEFAULT:16]\nJumpPower-"..tostring(victimhum.JumpPower).."[DEFAULT:50]\nSitting-"..tostring(victimhum.Sit).."\nPlatformStanding-"..tostring(victimhum.PlatformStand)
- end
- end
- if player ~= nil then
- if scanmsg ~= nil then
- scanmsg.Text = "Name-"..parent.Name.."\nWalkSpeed-"..tostring(victimhum.WalkSpeed).."[DEFAULT:16]\nJumpPower-"..tostring(victimhum.JumpPower).."[DEFAULT:50]\nSitting-"..tostring(victimhum.Sit).."\nPlatformStanding-"..tostring(victimhum.PlatformStand).."\nUserId-"..tostring(player.UserId).."\nAccountAge-"..tostring(player.AccountAge).."\nCharacterAppearanceId-"..tostring(player.CharacterAppearanceId)
- end
- end
- end
- end
- end
- end
- end)
- build = Instance.new("Tool",bp)
- build.Name = "Build antenna"
- bhandle = Instance.new("Part",build)
- bhandle.Size = Vector3.new(3,2,1)
- bhandle.Name = "Handle"
- build.Equipped:connect(function()
- wait(0.1)
- build:Destroy()
- hum.Sit = true
- wait(2)
- cframe = head.CFrame + Vector3.new(10,0,0)
- part = Instance.new("Part",workspace)
- part.Size = Vector3.new(5,1,5)
- part.CFrame = cframe
- wait(1)
- part.Anchored = true
- wait(1)
- part2 = Instance.new("Part",workspace)
- part2.Size = Vector3.new(1,5,1)
- part2.Position = part.Position
- part2.Anchored = true
- part2.BrickColor = BrickColor.Red()
- part2.Material = Enum.Material.Neon
- click = Instance.new("ClickDetector",part2)
- click.MaxActivationDistance = 15
- click.MouseClick:connect(function()
- if toweractive then
- toweractive = false
- part2.BrickColor = BrickColor.Red()
- else
- toweractive = true
- part2.BrickColor = BrickColor.Green()
- end
- end)
- wait(2)
- part3 = Instance.new("Part",workspace)
- part3.Anchored = true
- part3.Size = Vector3.new(5,3,5)
- part3.Position = part2.Position
- wait(2)
- part4 = Instance.new("Part",workspace)
- part4.Anchored = true
- part4.Size = Vector3.new(3,3,3)
- part4.Position = part3.Position
- wait(2)
- part5 = Instance.new("Part",workspace)
- part5.Anchored = true
- part5.Size = Vector3.new(2,2,2)
- part5.Position = part4.Position
- wait(2)
- part6 = Instance.new("Part",workspace)
- part6.Anchored = true
- part6.Size = Vector3.new(1,1,1)
- part6.Position = part5.Position
- wait(2)
- part7 = Instance.new("Part",workspace)
- part7.Anchored = true
- part7.Size = Vector3.new(5,5,5)
- part7.Position = part6.Position
- decalfront = Instance.new("Decal",part7)
- decalfront.Texture = "http://www.roblox.com/asset/?id=164773235"
- decalfront.Face = Enum.NormalId.Front
- decalback = Instance.new("Decal",part7)
- decalback.Texture = "http://www.roblox.com/asset/?id=164773235"
- decalback.Face = Enum.NormalId.Back
- decalleft = Instance.new("Decal",part7)
- decalleft.Texture = "http://www.roblox.com/asset/?id=164773235"
- decalleft.Face = Enum.NormalId.Left
- decalright = Instance.new("Decal",part7)
- decalright.Texture = "http://www.roblox.com/asset/?id=164773235"
- decalright.Face = Enum.NormalId.Right
- decaltop = Instance.new("Decal",part7)
- decaltop.Texture = "http://www.roblox.com/asset/?id=164773235"
- decaltop.Face = Enum.NormalId.Top
- decalbottom = Instance.new("Decal",part7)
- decalbottom.Texture = "http://www.roblox.com/asset/?id=164773235"
- decalbottom.Face = Enum.NormalId.Bottom
- wait(1)
- hum.Jump = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement