Advertisement
Guest User

Roblox Fe script

a guest
Jan 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  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,game,owner = owner,game
  4. local RealPlayer = Player
  5. 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
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Camera0 = Instance.new("Camera")
  25. Tool1 = Instance.new("Tool")
  26. Part2 = Instance.new("Part")
  27. SpecialMesh3 = Instance.new("SpecialMesh")
  28. Sparkles4 = Instance.new("Sparkles")
  29. Animation5 = Instance.new("Animation")
  30. LocalScript6 = Instance.new("LocalScript")
  31. Sound7 = Instance.new("Sound")
  32. Camera8 = Instance.new("Camera")
  33. Script9 = Instance.new("Script")
  34. Camera0.Parent = mas
  35. 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)
  36. 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)
  37. Camera0.Focus = CFrame.new(1.05865371, 46.0145645, -9.21671104, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  38. Camera0.focus = CFrame.new(1.05865371, 46.0145645, -9.21671104, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  39. Tool1.Name = "BanHammar"
  40. Tool1.Parent = mas
  41. Tool1.TextureId = "http://www.roblox.com/asset/?id=10684453"
  42. Tool1.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  43. Tool1.GripPos = Vector3.new(0, -1, 0)
  44. Part2.Name = "Handle"
  45. Part2.Parent = Tool1
  46. 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)
  47. Part2.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
  48. Part2.Position = Vector3.new(0.691698551, 2.2697916, 14.1706076)
  49. Part2.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0099945)
  50. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  51. Part2.Size = Vector3.new(1, 5.20000029, 1)
  52. Part2.BottomSurface = Enum.SurfaceType.Smooth
  53. Part2.BrickColor = BrickColor.new("Dark stone grey")
  54. Part2.TopSurface = Enum.SurfaceType.Smooth
  55. Part2.brickColor = BrickColor.new("Dark stone grey")
  56. Part2.FormFactor = Enum.FormFactor.Plate
  57. Part2.formFactor = Enum.FormFactor.Plate
  58. SpecialMesh3.Parent = Part2
  59. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=10604848"
  60. SpecialMesh3.Scale = Vector3.new(0.5, 0.5, 0.5)
  61. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=10605252"
  62. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  63. Sparkles4.Parent = Part2
  64. Sparkles4.Color = Color3.new(0, 0, 0)
  65. Sparkles4.SparkleColor = Color3.new(0, 0, 0)
  66. Animation5.Parent = Tool1
  67. Animation5.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706"
  68. LocalScript6.Name = "main"
  69. LocalScript6.Parent = Tool1
  70. table.insert(cors,sandbox(LocalScript6,function()
  71. --Impletion [awful coding i know]
  72. wait()
  73. explode=false
  74. soundlock=false
  75. lock=false
  76. script.Parent.Activated:connect(function(click)
  77. if lock==false then
  78. lock=true
  79. local char=script.Parent.Parent
  80. local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
  81. anim:Play()
  82. wait(1.4)
  83. lock=false
  84. end
  85. end)
  86.  
  87.  
  88.  
  89. script.Parent.Handle.Touched:connect(function(hit)
  90. local gethum=hit.Parent:GetChildren()
  91. for i=1,#gethum do
  92. if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and lock==true then
  93. local hum=gethum[i]
  94. hum.Sit=true
  95. if soundlock==false then
  96. soundlock=true
  97. script.Parent.Smash:Play()
  98. end
  99. local character=hit.Parent
  100. local b=character:GetChildren()
  101. for i=1,#b do
  102. if b[i]:IsA("Part") and b[i] ~= nil then
  103. b[i].CanCollide=false
  104. b[i].Anchored=false
  105. end
  106. end
  107. local torso=hit.Parent:findFirstChild("Torso")
  108. character.Torso.Velocity=game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 1200
  109. character.Torso.Velocity=character.Torso.Velocity + Vector3.new(0,300,0)
  110. wait(1.8)
  111. if explode==false then
  112. explode=true
  113. local expl=Instance.new("Explosion", workspace)
  114. expl.BlastPressure=9000000
  115. expl.BlastRadius=100
  116. expl.Position=torso.Position
  117. character:BreakJoints()
  118. local p=game.Players:GetPlayerFromCharacter(character)
  119. character:Destroy()
  120. if p ~= nil then
  121. p:Destroy()
  122. end
  123. end
  124. end
  125. end
  126. wait(1)
  127. soundlock=false
  128. explode=false
  129. end)
  130.  
  131. script.Parent.Equipped:connect(function(equip)
  132. game.Players.LocalPlayer.Character.Humanoid.MaxHealth=math.huge
  133. game.Players.LocalPlayer.Character.Humanoid.Health=math.huge
  134. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=25
  135. end)
  136. end))
  137. Sound7.Name = "Smash"
  138. Sound7.Parent = Tool1
  139. Sound7.SoundId = "rbxassetid://147722910"
  140. Sound7.Volume = 1
  141. Camera8.Name = "ThumbnailCamera"
  142. Camera8.Parent = Tool1
  143. 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)
  144. 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)
  145. Camera8.Focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  146. Camera8.focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  147. Script9.Parent = mas
  148. table.insert(cors,sandbox(Script9,function()
  149. print("created by: 5k5k5k5k5")
  150. warn("Left Click To BAN!")
  151.  
  152. end))
  153. for i,v in pairs(mas:GetChildren()) do
  154. v.Parent = workspace
  155. pcall(function() v:MakeJoints() end)
  156. end
  157. mas:Destroy()
  158. for i,v in pairs(cors) do
  159. spawn(function()
  160. pcall(v)
  161. end)
  162. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement