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 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
- 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
Advertisement