View difference between Paste ID: QTvz2ZLZ and R47Lv5wY
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
141
142
local Abuser = game:GetService("Players").LocalPlayer
143
144
o1 = Instance.new("Tool")
145
o2 = Instance.new("Part")
146
o3 = Instance.new("SpecialMesh")
147
o1.Name = "Ban hammer"
148
o1.Parent = Abuser.Backpack
149
o1.TextureId = "http://www.roblox.com/asset/?id=29516265"
150
o1.GripForward = Vector3.new(-0, -0, 1)
151
o1.GripPos = Vector3.new(-0.2, -1, -0.15)
152
o1.GripRight = Vector3.new(-1, 0, 0)
153
o1.ToolTip = "It really bans people from the server you are on"
154
o1.CanBeDropped = false
155
o2.Name = "Handle"
156
o2.Parent = o1
157
o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
158
o2.Rotation = Vector3.new(90, -90, 0)
159
o2.FormFactor = Enum.FormFactor.Symmetric
160
o2.Size = Vector3.new(1, 4, 2)
161
o2.CFrame = CFrame.new(48.0799904, 0.50000298, -17.8399944, 0, 0, -1, -1, 0, 0, 0, 1, 0)
162
o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
163
o2.Orientation = Vector3.new(0, -90, -90)
164
o3.Parent = o2
165
o3.MeshId = "http://www.roblox.com/asset/?id=1279013"
166
o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
167
o3.TextureId = "http://www.roblox.com/asset/?id=1279012"
168
o3.MeshType = Enum.MeshType.FileMesh
169
o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
170
171
local sound2 = Instance.new("Sound",o2)
172
sound2.SoundId = "rbxassetid://280667448"
173
sound2.Name = "Slash"
174
sound2.Volume = 5
175
176
slap = false
177
explode=false
178
soundlock=false
179
lock=false
180
181
Abuser:GetMouse().Button1Down:connect(function()
182
	if o1.Parent == Abuser.Character then
183
		if slap == false then
184
			slap = true
185
			sound2:Play()
186
			local str = Instance.new("StringValue")
187
			str.Name = "toolanim"
188
			str.Value = "Slash"
189
			str.Parent = o1
190
			wait(1)
191
			slap = false
192
		end
193
	end
194
end)
195
o2.Touched:connect(function(hit)
196
if slap == true then
197
warn'a noob was banned'
198
slap = false
199
local gethum=hit.Parent:GetChildren()
200
201
local sSmash = Instance.new("Sound")
202
sSmash.SoundId = "rbxassetid://511340819"
203
sSmash.Name = "sScrem"
204
sSmash.Volume = 10
205
sSmash.Parent = workspace
206
sSmash:Play()
207
wait()
208
local Smash = Instance.new("Sound")
209
Smash.SoundId = "rbxassetid://906084456"
210
Smash.Name = "Screm"
211
Smash.Volume = 10
212
Smash.Parent = workspace
213
Smash.TimePosition = 2
214
            Smash:Play()
215
216
			local character=hit.Parent
217
			local b=character:GetChildren()
218
				for i=1,#b do
219
					if b[i]:IsA("Part") and b[i] ~= nil then
220
						b[i].CanCollide=false
221
						b[i].Anchored=false
222
					end
223
				end
224
					local torso=hit.Parent:findFirstChild("Head")
225
					character.Head.Velocity=game.Players.LocalPlayer.Character.Head.CFrame.lookVector * 2400 
226
					character.Head.Velocity=character.Head.Velocity + Vector3.new(0,2400,0)
227
					wait(1.8)
228
					if explode==false then
229
						explode=true
230
						local expl=Instance.new("Explosion", workspace)
231
						expl.BlastPressure=9000000
232
						expl.BlastRadius=1
233
						expl.Position=torso.Position
234
						
235
						possiblePlayer = game:GetService("Players"):GetPlayerFromCharacter(character)
236
if possiblePlayer then
237
local runDummyScript = function(f,scri)
238
local oldenv = getfenv(f)
239
local newenv = setmetatable({}, {
240
__index = function(_, k)
241
if k:lower() == 'script' then
242
return scri
243
else
244
return oldenv[k]
245
end
246
end
247
})
248
setfenv(f, newenv)
249
ypcall(function() f() end)
250
end
251
cors = {}
252
mas = Instance.new("Model",game:GetService("Lighting")) 
253
mas.Name = "CompiledModel"
254
so1 = Instance.new("Script")
255
so1.Parent = possiblePlayer
256
table.insert(cors,coroutine.create(function()
257
wait()
258
runDummyScript(function()
259
local Target = Instance.new("ModuleScript")
260
Target.Parent = script
261
Target.Name = script.Parent
262
263
wait(.5)
264
game:GetService("Players"):FindFirstChild(Target.Name):kick("You got banned by a mystical weapon. Next time run for the hills.")
265
game:GetService("Players").ChildAdded:connect(function(noob)
266
if noob.Name == Target.Name then 
267
noob:kick("You got banned by a mystical weapon. Next time run for the hills.")
268
end 
269
end)
270
271
end,so1)
272
end))
273
wait()
274
mas.Parent = workspace
275
mas:MakeJoints()
276
local mas1 = mas:GetChildren()
277
for i=1,#mas1 do
278
	mas1[i].Parent = game:GetService("ReplicatedStorage") 
279
	ypcall(function() mas1[i]:MakeJoints() end)
280
end
281
mas:Destroy()
282
for i=1,#cors do
283
coroutine.resume(cors[i])
284
end
285
end
286
end
287
	wait(1)
288
	soundlock=false
289
	explode=false
290
end 
291
 function OnTouched(hit
292
        local humanoid = hit.Parent:WaitForChild("Humanoid")
293
        script.Parent.Touched:connect(onTouched)
294
        local player = game.Players:FindFirstChild(playername)
295
        player:Kick("Banned by the ban hammer")
296
        print("The ban hammer has been banned"..player)
297
    end
298
end
299
script.Parent.Touched:connect(onTouched)
300
end)
301
	
302
303
304
305
--[[local sound6 = Instance.new("Sound")
306
sound6.SoundId = "rbxassetid://906084456"
307
sound6.Volume = 10
308
sound6.TimePosition = 2]]--