Advertisement
antgame11

Untitled

Mar 25th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.77 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148.  
  149.  
  150. local player = game.Players.LocalPlayer
  151. local char = player.Character
  152. local invisible = false
  153. local invisiblehammer = false
  154.  
  155. local tool = Instance.new("Tool",workspace)
  156. tool.TextureId = "http://www.roblox.com/asset/?id=10684453"
  157. tool.Enabled = true
  158. tool.Name = "BanHammer"
  159. local thma = Instance.new("Camera",tool)
  160. thma.Name = "ThumbnailCamera"
  161. local smack = Instance.new("Sound",tool)
  162. smack.Name = "Smash"
  163. smack.Volume = 1
  164. smack.SoundId = "rbxassetid://147722910" -- rbxassetid://147722910 rbxassetid://514867425
  165. local handle = Instance.new("Part",tool)
  166. handle.Name = "Handle"
  167. handle.Size = Vector3.new(1, 5.2, 1)
  168. handle.Anchored = true
  169. handle.Position = Vector3.new(0,6,0)
  170. local txtfag = Instance.new("BillboardGui",handle)
  171. txtfag.Name = "BanHammerLabel"
  172. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  173. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  174. txtfag.Enabled = false
  175. local textfag = Instance.new("TextLabel", txtfag)
  176. textfag.Size = UDim2.new(6, 0, 1, 0)
  177. textfag.FontSize = "Size8"
  178. textfag.TextScaled = true
  179. textfag.TextTransparency = 0
  180. textfag.BackgroundTransparency = 1
  181. textfag.TextTransparency = 0
  182. textfag.TextStrokeTransparency = 0
  183. textfag.Font = Enum.Font.Highway
  184. textfag.Text = "The Ban Hammer"
  185. textfag.TextStrokeColor3 = Color3.new(0.55, 0.9, 0.16)
  186. local sparkles = Instance.new("Sparkles",handle)
  187. sparkles.SparkleColor = Color3.new(0,0,0)
  188. sparkles.Enabled = true
  189. local mesh = Instance.new("SpecialMesh",handle)
  190. mesh.Name = "Mesh"
  191. mesh.MeshType = Enum.MeshType.FileMesh
  192. mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  193. mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  194. mesh.Scale = Vector3.new(0.5,0.5,0.5)
  195. mesh.Offset = Vector3.new(0,0,0)
  196. mesh.VertexColor = Vector3.new(1,1,1)
  197. script.Parent = tool
  198. local animation = Instance.new("Animation",tool)
  199. animation.Name = "Animation"
  200. animation.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706"
  201. --Impletion [awful coding i know]
  202. wait()
  203. explode=false
  204. soundlock=false
  205. lock=false
  206. script.Parent.Activated:connect(function(click)
  207. if lock==false then
  208. lock=true
  209. local char=script.Parent.Parent
  210. local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
  211. anim:Play()
  212. wait(1.4)
  213. lock=false
  214. end
  215. end)
  216.  
  217. script.Parent.Handle.Touched:connect(function(hit)
  218. if tool.Parent.ClassName=="Model"then
  219. if hit.Parent:FindFirstChild("BanHammer")==nil then
  220. hit.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=432180642"
  221. local gethum=hit.Parent:GetChildren()
  222. for i=1,#gethum do
  223. if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= tool.Parent.Name and lock==true then
  224. local hum=gethum[i]
  225. hum.Sit=true
  226. if soundlock==false then
  227. soundlock=true
  228. script.Parent.Smash:Play()
  229. end
  230. local character=hit.Parent
  231. local b=character:GetChildren()
  232. for i=1,#b do
  233. if b[i]:IsA("Part") and b[i] ~= nil then
  234. b[i].CanCollide=false
  235. b[i].Anchored=false
  236. end
  237. end
  238. local HumanoidRootPart=hit.Parent:findFirstChild("HumanoidRootPart")
  239. character.HumanoidRootPart.Velocity=tool.Parent.HumanoidRootPart.CFrame.lookVector * 1200
  240. character.HumanoidRootPart.Velocity=character.HumanoidRootPart.Velocity + Vector3.new(0,300,0)
  241. wait(1.8)
  242. if explode==false then
  243. explode=true
  244. local expl=Instance.new("Explosion", workspace)
  245. expl.BlastPressure=900
  246. expl.BlastRadius=1
  247. expl.Position=HumanoidRootPart.Position
  248. for _,xccrptparts in pairs(character:GetChildren())do
  249. if xccrptparts.ClassName=="Part"then
  250. xccrptparts.Transparency = 0
  251. xccrptparts.Anchored = false
  252. end
  253. if xccrptparts.ClassName=="MeshPart"then
  254. xccrptparts.Transparency = 0
  255. xccrptparts.Anchored = false
  256. end
  257. end
  258. HumanoidRootPart.Transparency = 1
  259. local p=game.Players:GetPlayerFromCharacter(character)
  260. character.Humanoid:Destroy()
  261. end
  262. end
  263. end
  264. wait(1)
  265. soundlock=false
  266. explode=false
  267. end
  268. else
  269. if invisible==true then
  270. hit.Parent.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=252557606"
  271. local invisibility = coroutine.wrap(function()
  272. for _,en in pairs(hit.Parent:GetChildren())do
  273. if en.ClassName=="Part"then
  274. local turninv = coroutine.wrap(function(part)
  275. for count = 1,10 do
  276. part.Transparency = part.Transparency + 0.1
  277. wait(.1)
  278. end
  279. end)
  280. turninv(en)
  281. end
  282. if en.ClassName=="MeshPart"then
  283. local turninv = coroutine.wrap(function(part)
  284. for count = 1,10 do
  285. part.Transparency = part.Transparency + 0.1
  286. wait(.1)
  287. end
  288. end)
  289. turninv(en)
  290. end
  291. if en.ClassName=="Hat"then
  292. local turninv = coroutine.wrap(function(part)
  293. for count = 1,10 do
  294. part.Transparency = part.Transparency + 0.1
  295. wait(.1)
  296. end
  297. end)
  298. turninv(en.Handle)
  299. end
  300. if en.ClassName=="Accessory"then
  301. local turninv = coroutine.wrap(function(part)
  302. for count = 1,10 do
  303. part.Transparency = part.Transparency + 0.1
  304. wait(.1)
  305. end
  306. end)
  307. turninv(en.Handle)
  308. end
  309. end
  310. for count = 1,10 do
  311. hit.Parent.Head.face.Transparency = hit.Parent.Head.face.Transparency + 0.1
  312. if invisiblehammer == true then
  313. handle.Transparency = handle.Transparency + 0.1
  314. end
  315. textfag.TextTransparency = textfag.TextTransparency + 0.1
  316. textfag.TextStrokeTransparency = textfag.TextStrokeTransparency + 0.1
  317. sparkles.Enabled = false
  318. wait(.1)
  319. end
  320. end)
  321. invisibility()
  322. hit.Parent:WaitForChild("Humanoid").HealthDisplayDistance = 0
  323. hit.Parent:WaitForChild("Humanoid").NameDisplayDistance = 0
  324. end
  325. end
  326. end)
  327.  
  328. using = false
  329.  
  330. script.Parent.Equipped:connect(function(equip)
  331. wait(.1)
  332. tool.Parent.Humanoid.MaxHealth=math.huge*math.huge
  333. tool.Parent.Humanoid.Health=math.huge*math.huge
  334. tool.Parent.Humanoid.WalkSpeed=100
  335. using = true
  336. end)
  337.  
  338. script.Parent.Unequipped:connect(function(equip)
  339. if not tool.Parent:FindFirstChild("Humanoid")~=nil then
  340. if not tool.Parent.Humanoid.Health==0 then
  341. wait(.1)
  342. tool.Parent.Parent.Character.Humanoid.MaxHealth=100
  343. tool.Parent.Parent.Character.Humanoid.Health=100
  344. tool.Parent.Parent.Character.Humanoid.WalkSpeed=16
  345. sparkles.SparkleColor = Color3.new(0,0,0)
  346. using = false
  347. end
  348. end
  349. end)
  350.  
  351. local depth = 1
  352. local speed = 50
  353. local itsalive = Instance.new("Sound",tool)
  354. itsalive.Name = "NotEquippedMusic"
  355. itsalive.SoundId = "rbxassetid://149119648"
  356. itsalive.Volume = 8.75
  357. itsalive.Looped = true
  358. function alive()
  359. for i = 1, speed do wait()
  360. handle.CFrame = handle.CFrame * CFrame.new(0,-depth/speed,0)
  361. end
  362. for i = 1, speed do wait()
  363. handle.CFrame = handle.CFrame * CFrame.new(0,depth/speed,0)
  364. end
  365. end
  366.  
  367. print("Ban hammer Created!")
  368.  
  369. while true do
  370. if using==true then
  371. txtfag.Enabled = false
  372. handle.Anchored = false
  373. itsalive:Stop()
  374. sparkles.SparkleColor = BrickColor.Random().Color
  375. if tool.Parent:FindFirstChild("Humanoid")~=nil then
  376. tool.Parent = workspace
  377. handle.Position = handle.Position + Vector3.new(0,3,0)
  378. using=false
  379. end
  380. if tool.Parent:WaitForChild("Humanoid").Health==0 then
  381. tool.Parent = workspace
  382. handle.Position = handle.Position + Vector3.new(0,3,0)
  383. using=false
  384. end
  385. wait(.5)
  386. else
  387. txtfag.Enabled = true
  388. handle.Anchored = true
  389. itsalive:Play()
  390. repeat
  391. sparkles.SparkleColor = Color3.new(0,0,0)
  392. alive()
  393. until using==true
  394. end
  395. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement