View difference between Paste ID: d2rqYQUG and R47Lv5wY
SHOW: | | - or go back to the newest paste.
1-
local Abuser = game:GetService("Players").LocalPlayer
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
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 local Abuser = game:GetService("Players").LocalPlayer
6
7
o1 = Instance.new("Tool")
8
o2 = Instance.new("Part")
9
o3 = Instance.new("SpecialMesh")
10
o1.Name = "Ban hammer"
11
o1.Parent = Abuser.Backpack
12
o1.TextureId = "http://www.roblox.com/asset/?id=29516265"
13
o1.GripForward = Vector3.new(-0, -0, 1)
14
o1.GripPos = Vector3.new(-0.2, -1, -0.15)
15
o1.GripRight = Vector3.new(-1, 0, 0)
16
o1.ToolTip = "It really bans people from the server you are on"
17
o1.CanBeDropped = false
18
o2.Name = "Handle"
19
o2.Parent = o1
20
o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
21
o2.Rotation = Vector3.new(90, -90, 0)
22
o2.FormFactor = Enum.FormFactor.Symmetric
23
o2.Size = Vector3.new(1, 4, 2)
24
o2.CFrame = CFrame.new(48.0799904, 0.50000298, -17.8399944, 0, 0, -1, -1, 0, 0, 0, 1, 0)
25
o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
26
o2.Orientation = Vector3.new(0, -90, -90)
27
o3.Parent = o2
28
o3.MeshId = "http://www.roblox.com/asset/?id=1279013"
29
o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
30
o3.TextureId = "http://www.roblox.com/asset/?id=1279012"
31
o3.MeshType = Enum.MeshType.FileMesh
32
o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
33
34
local sound2 = Instance.new("Sound",o2)
35
sound2.SoundId = "rbxassetid://280667448"
36
sound2.Name = "Slash"
37
sound2.Volume = 5
38
39
slap = false
40
explode=false
41
soundlock=false
42
lock=false
43
44
Abuser:GetMouse().Button1Down:connect(function()
45
	if o1.Parent == Abuser.Character then
46
		if slap == false then
47
			slap = true
48
			sound2:Play()
49
			local str = Instance.new("StringValue")
50
			str.Name = "toolanim"
51
			str.Value = "Slash"
52
			str.Parent = o1
53
			wait(1)
54
			slap = false
55
		end
56
	end
57
end)
58
o2.Touched:connect(function(hit)
59
if slap == true then
60
warn'a noob was banned'
61
slap = false
62
local gethum=hit.Parent:GetChildren()
63
64
local sSmash = Instance.new("Sound")
65
sSmash.SoundId = "rbxassetid://511340819"
66
sSmash.Name = "sScrem"
67
sSmash.Volume = 10
68
sSmash.Parent = workspace
69
sSmash:Play()
70
wait()
71
local Smash = Instance.new("Sound")
72
Smash.SoundId = "rbxassetid://906084456"
73
Smash.Name = "Screm"
74
Smash.Volume = 10
75
Smash.Parent = workspace
76
Smash.TimePosition = 2
77
            Smash:Play()
78
79
			local character=hit.Parent
80
			local b=character:GetChildren()
81
				for i=1,#b do
82
					if b[i]:IsA("Part") and b[i] ~= nil then
83
						b[i].CanCollide=false
84
						b[i].Anchored=false
85
					end
86
				end
87
					local torso=hit.Parent:findFirstChild("Head")
88
					character.Head.Velocity=game.Players.LocalPlayer.Character.Head.CFrame.lookVector * 2400 
89
					character.Head.Velocity=character.Head.Velocity + Vector3.new(0,2400,0)
90
					wait(1.8)
91
					if explode==false then
92
						explode=true
93
						local expl=Instance.new("Explosion", workspace)
94
						expl.BlastPressure=9000000
95
						expl.BlastRadius=1
96
						expl.Position=torso.Position
97
						
98
						possiblePlayer = game:GetService("Players"):GetPlayerFromCharacter(character)
99
if possiblePlayer then
100
local runDummyScript = function(f,scri)
101
local oldenv = getfenv(f)
102
local newenv = setmetatable({}, {
103
__index = function(_, k)
104
if k:lower() == 'script' then
105
return scri
106
else
107
return oldenv[k]
108
end
109
end
110
})
111
setfenv(f, newenv)
112
ypcall(function() f() end)
113
end
114
cors = {}
115
mas = Instance.new("Model",game:GetService("Lighting")) 
116
mas.Name = "CompiledModel"
117
so1 = Instance.new("Script")
118
so1.Parent = possiblePlayer
119
table.insert(cors,coroutine.create(function()
120
wait()
121
runDummyScript(function()
122
local Target = Instance.new("ModuleScript")
123
Target.Parent = script
124
Target.Name = script.Parent
125
126
wait(.5)
127
game:GetService("Players"):FindFirstChild(Target.Name):kick("You got banned by a mystical weapon. Next time run for the hills.")
128
game:GetService("Players").ChildAdded:connect(function(noob)
129
if noob.Name == Target.Name then 
130
noob:kick("You got banned by a mystical weapon. Next time run for the hills.")
131
end 
132
end)
133
134
end,so1)
135
end))
136
wait()
137
mas.Parent = workspace
138
mas:MakeJoints()
139
local mas1 = mas:GetChildren()
140
for i=1,#mas1 do
141
	mas1[i].Parent = game:GetService("ReplicatedStorage") 
142
	ypcall(function() mas1[i]:MakeJoints() end)
143
end
144
mas:Destroy()
145
for i=1,#cors do
146
coroutine.resume(cors[i])
147
end
148
end
149
end
150
	wait(1)
151
	soundlock=false
152
	explode=false
153
end 
154
end)
155
	
156
157
158
159
--[[local sound6 = Instance.new("Sound")
160
sound6.SoundId = "rbxassetid://906084456"
161
sound6.Volume = 10
162
sound6.TimePosition = 2]]--