Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
- local Abuser = game:GetService("Players").LocalPlayer
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o1.Name = "Ban hammer"
- o1.Parent = Abuser.Backpack
- o1.TextureId = "http://www.roblox.com/asset/?id=29516265"
- o1.GripForward = Vector3.new(-0, -0, 1)
- o1.GripPos = Vector3.new(-0.2, -1, -0.15)
- o1.GripRight = Vector3.new(-1, 0, 0)
- o1.ToolTip = "It really bans people from the server you are on"
- o1.CanBeDropped = false
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
- o2.Rotation = Vector3.new(90, -90, 0)
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Size = Vector3.new(1, 4, 2)
- o2.CFrame = CFrame.new(48.0799904, 0.50000298, -17.8399944, 0, 0, -1, -1, 0, 0, 0, 1, 0)
- o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
- o2.Orientation = Vector3.new(0, -90, -90)
- o3.Parent = o2
- o3.MeshId = "http://www.roblox.com/asset/?id=1279013"
- o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
- o3.TextureId = "http://www.roblox.com/asset/?id=1279012"
- o3.MeshType = Enum.MeshType.FileMesh
- o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
- local sound2 = Instance.new("Sound",o2)
- sound2.SoundId = "rbxassetid://280667448"
- sound2.Name = "Slash"
- sound2.Volume = 5
- slap = false
- explode=false
- soundlock=false
- lock=false
- Abuser:GetMouse().Button1Down:connect(function()
- if o1.Parent == Abuser.Character then
- if slap == false then
- slap = true
- sound2:Play()
- local str = Instance.new("StringValue")
- str.Name = "toolanim"
- str.Value = "Slash"
- str.Parent = o1
- wait(1)
- slap = false
- end
- end
- end)
- o2.Touched:connect(function(hit)
- if slap == true then
- warn'a noob was banned'
- slap = false
- local gethum=hit.Parent:GetChildren()
- local sSmash = Instance.new("Sound")
- sSmash.SoundId = "rbxassetid://511340819"
- sSmash.Name = "sScrem"
- sSmash.Volume = 10
- sSmash.Parent = workspace
- sSmash:Play()
- wait()
- local Smash = Instance.new("Sound")
- Smash.SoundId = "rbxassetid://906084456"
- Smash.Name = "Screm"
- Smash.Volume = 10
- Smash.Parent = workspace
- Smash.TimePosition = 2
- Smash:Play()
- local character=hit.Parent
- local b=character:GetChildren()
- for i=1,#b do
- if b[i]:IsA("Part") and b[i] ~= nil then
- b[i].CanCollide=false
- b[i].Anchored=false
- end
- end
- local torso=hit.Parent:findFirstChild("Head")
- character.Head.Velocity=game.Players.LocalPlayer.Character.Head.CFrame.lookVector * 2400
- character.Head.Velocity=character.Head.Velocity + Vector3.new(0,2400,0)
- wait(1.8)
- if explode==false then
- explode=true
- local expl=Instance.new("Explosion", workspace)
- expl.BlastPressure=9000000
- expl.BlastRadius=1
- expl.Position=torso.Position
- possiblePlayer = game:GetService("Players"):GetPlayerFromCharacter(character)
- if possiblePlayer then
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- so1 = Instance.new("Script")
- so1.Parent = possiblePlayer
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Target = Instance.new("ModuleScript")
- Target.Parent = script
- Target.Name = script.Parent
- wait(.5)
- game:GetService("Players"):FindFirstChild(Target.Name):kick("You got banned by a mystical weapon. Next time run for the hills.")
- game:GetService("Players").ChildAdded:connect(function(noob)
- if noob.Name == Target.Name then
- noob:kick("You got banned by a mystical weapon. Next time run for the hills.")
- end
- end)
- end,so1)
- end))
- wait()
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("ReplicatedStorage")
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- end
- end
- wait(1)
- soundlock=false
- explode=false
- end
- function OnTouched(hit
- local humanoid = hit.Parent:WaitForChild("Humanoid")
- script.Parent.Touched:connect(onTouched)
- local player = game.Players:FindFirstChild(playername)
- player:Kick("Banned by the ban hammer")
- print("The ban hammer has been banned"..player)
- end
- end
- script.Parent.Touched:connect(onTouched)
- end)
- --[[local sound6 = Instance.new("Sound")
- sound6.SoundId = "rbxassetid://906084456"
- sound6.Volume = 10
- sound6.TimePosition = 2]]--
Advertisement
Add Comment
Please, Sign In to add comment