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,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Camera0 = Instance.new("Camera")
- Tool1 = Instance.new("Tool")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Sparkles4 = Instance.new("Sparkles")
- Animation5 = Instance.new("Animation")
- LocalScript6 = Instance.new("LocalScript")
- Sound7 = Instance.new("Sound")
- Camera8 = Instance.new("Camera")
- Script9 = Instance.new("Script")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(1.06511235, 47.7869644, -10.1432943, -0.999975681, -0.0061770035, 0.00322932051, -2.32830616e-10, 0.46330294, 0.88620007, -0.00697021326, 0.886178493, -0.463291705)
- Camera0.CoordinateFrame = CFrame.new(1.06511235, 47.7869644, -10.1432943, -0.999975681, -0.0061770035, 0.00322932051, -2.32830616e-10, 0.46330294, 0.88620007, -0.00697021326, 0.886178493, -0.463291705)
- Camera0.Focus = CFrame.new(1.05865371, 46.0145645, -9.21671104, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(1.05865371, 46.0145645, -9.21671104, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool1.Name = "BanHammar"
- Tool1.Parent = mas
- Tool1.TextureId = "http://www.roblox.com/asset/?id=10684453"
- Tool1.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool1.GripPos = Vector3.new(0, -1, 0)
- Part2.Name = "Handle"
- Part2.Parent = Tool1
- Part2.CFrame = CFrame.new(0.691698551, 2.2697916, 14.1706076, -9.28728914e-05, -0.677499533, -0.735523343, 0.0380967073, 0.734986424, -0.677010179, 0.999273837, -0.0280841347, 0.0257421304)
- Part2.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
- Part2.Position = Vector3.new(0.691698551, 2.2697916, 14.1706076)
- Part2.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0099945)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Size = Vector3.new(1, 5.20000029, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Dark stone grey")
- Part2.FormFactor = Enum.FormFactor.Plate
- Part2.formFactor = Enum.FormFactor.Plate
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=10604848"
- SpecialMesh3.Scale = Vector3.new(0.5, 0.5, 0.5)
- SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=10605252"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Sparkles4.Parent = Part2
- Sparkles4.Color = Color3.new(0, 0, 0)
- Sparkles4.SparkleColor = Color3.new(0, 0, 0)
- Animation5.Parent = Tool1
- Animation5.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706"
- LocalScript6.Name = "main"
- LocalScript6.Parent = Tool1
- table.insert(cors,sandbox(LocalScript6,function()
- --Impletion [awful coding i know]
- wait()
- explode=false
- soundlock=false
- lock=false
- script.Parent.Activated:connect(function(click)
- if lock==false then
- lock=true
- local char=script.Parent.Parent
- local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
- anim:Play()
- wait(1.4)
- lock=false
- end
- end)
- script.Parent.Handle.Touched:connect(function(hit)
- local gethum=hit.Parent:GetChildren()
- for i=1,#gethum do
- if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and lock==true then
- local hum=gethum[i]
- hum.Sit=true
- if soundlock==false then
- soundlock=true
- script.Parent.Smash:Play()
- end
- 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("Torso")
- character.Torso.Velocity=game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 1200
- character.Torso.Velocity=character.Torso.Velocity + Vector3.new(0,300,0)
- wait(1.8)
- if explode==false then
- explode=true
- local expl=Instance.new("Explosion", workspace)
- expl.BlastPressure=9000000
- expl.BlastRadius=100
- expl.Position=torso.Position
- character:BreakJoints()
- local p=game.Players:GetPlayerFromCharacter(character)
- character:Destroy()
- if p ~= nil then
- p:Destroy()
- end
- end
- end
- end
- wait(1)
- soundlock=false
- explode=false
- end)
- script.Parent.Equipped:connect(function(equip)
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth=math.huge
- game.Players.LocalPlayer.Character.Humanoid.Health=math.huge
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=25
- end)
- end))
- Sound7.Name = "Smash"
- Sound7.Parent = Tool1
- Sound7.SoundId = "rbxassetid://147722910"
- Sound7.Volume = 1
- Camera8.Name = "ThumbnailCamera"
- Camera8.Parent = Tool1
- Camera8.CFrame = CFrame.new(1.93812001, 1.93207335, 7.85149097, -0.987820983, 0.00140062091, 0.155588225, 1.16415308e-10, 0.999959528, -0.00900173653, -0.155594513, -0.00889210403, -0.987781048)
- Camera8.CoordinateFrame = CFrame.new(1.93812001, 1.93207335, 7.85149097, -0.987820983, 0.00140062091, 0.155588225, 1.16415308e-10, 0.999959528, -0.00900173653, -0.155594513, -0.00889210403, -0.987781048)
- Camera8.Focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera8.focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Script9.Parent = mas
- table.insert(cors,sandbox(Script9,function()
- print("created by: 5k5k5k5k5")
- warn("Left Click To BAN!")
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement