VoidScriptPlayer

Untitled

Apr 27th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. local HATSPAM = false
  88. local SPAM = false
  89. local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
  90. local ON = Instance.new("TextButton")
  91. local OFF = Instance.new("TextButton")
  92. local KEWL = Instance.new("TextButton")
  93. local KEW = Instance.new("TextButton")
  94. local Kill = Instance.new("TextButton")
  95. local SPAMHATSMODE = Instance.new("TextButton")
  96. local SPAMBLOCKSMODE = Instance.new("TextButton")
  97. local TextLabel = Instance.new("TextLabel")
  98. local KillName = Instance.new("TextBox")
  99.  
  100.  
  101.  
  102. ScreenGui.ResetOnSpawn = false
  103. ScreenGui.Name = "FEGUIBYXX"
  104.  
  105. ON.Name = "ON"
  106. ON.Parent = ScreenGui
  107. ON.BackgroundColor3 = Color3.new(1, 1, 1)
  108. ON.Size = UDim2.new(0, 200, 0, 50)
  109. ON.Font = Enum.Font.SourceSans
  110. ON.Text = "SPAM ON"
  111. ON.TextSize = 14
  112.  
  113. KEWL.Name = "GOD"
  114. KEWL.Parent = ScreenGui
  115. KEWL.BackgroundColor3 = Color3.new(1, 1, 1)
  116. KEWL.Position = UDim2.new(0, 0, 0, 150)
  117. KEWL.Size = UDim2.new(0, 200, 0, 50)
  118. KEWL.Font = Enum.Font.SourceSans
  119. KEWL.Text = "FE GOD"
  120. KEWL.TextSize = 14
  121.  
  122. Kill.Name = "KillPlr"
  123. Kill.Parent = ScreenGui
  124. Kill.BackgroundColor3 = Color3.new(1, 1, 1)
  125. Kill.Position = UDim2.new(0, 0, 0, 250)
  126. Kill.Size = UDim2.new(0, 200, 0, 50)
  127. Kill.Font = Enum.Font.SourceSans
  128. Kill.Text = "Kill"
  129. Kill.TextSize = 23
  130.  
  131. KillName.Parent = ScreenGui
  132. KillName.BackgroundColor3 = Color3.new(1, 1, 1)
  133. KillName.Position = UDim2.new(0, 0, 0, 300)
  134. KillName.Size = UDim2.new(0, 200, 0, 50)
  135. KillName.Font = Enum.Font.SciFi
  136. KillName.Text = "PT Kill"
  137. KillName.TextSize = 15
  138.  
  139. KEW.Name = "HATTOOL"
  140. KEW.Parent = ScreenGui
  141. KEW.BackgroundColor3 = Color3.new(1, 1, 1)
  142. KEW.Position = UDim2.new(0, 0, 0, 200)
  143. KEW.Size = UDim2.new(0, 200, 0, 50)
  144. KEW.Font = Enum.Font.SourceSans
  145. KEW.Text = "HATTOOL"
  146. KEW.TextSize = 14
  147.  
  148. OFF.Name = "OFF"
  149. OFF.Parent = ScreenGui
  150. OFF.BackgroundColor3 = Color3.new(1, 1, 1)
  151. OFF.Position = UDim2.new(0, 0, 0, 50)
  152. OFF.Size = UDim2.new(0, 200, 0, 50)
  153. OFF.Font = Enum.Font.SourceSans
  154. OFF.Text = "spam off"
  155. OFF.TextSize = 14
  156.  
  157. TextLabel.Parent = ScreenGui
  158. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  159. TextLabel.Position = UDim2.new(0, 0, 0, 100)
  160. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  161. TextLabel.Font = Enum.Font.SciFi
  162. TextLabel.Text = "needs hats to work"
  163. TextLabel.TextSize = 20
  164.  
  165. SPAMHATSMODE.Parent = ScreenGui
  166. SPAMHATSMODE.BackgroundColor3 = Color3.new(1, 1, 1)
  167. SPAMHATSMODE.Position = UDim2.new(0, 0, 0, 350)
  168. SPAMHATSMODE.Size = UDim2.new(0, 200, 0, 50)
  169. SPAMHATSMODE.Font = Enum.Font.SciFi
  170. SPAMHATSMODE.Text = "SPAMHATS MODE"
  171. SPAMHATSMODE.TextSize = 20
  172.  
  173. SPAMBLOCKSMODE.Parent = ScreenGui
  174. SPAMBLOCKSMODE.BackgroundColor3 = Color3.new(1, 1, 1)
  175. SPAMBLOCKSMODE.Position = UDim2.new(0, 0, 0, 400)
  176. SPAMBLOCKSMODE.Size = UDim2.new(0, 200, 0, 50)
  177. SPAMBLOCKSMODE.Font = Enum.Font.SciFi
  178. SPAMBLOCKSMODE.Text = "SPAMBLOCKS MODE"
  179. SPAMBLOCKSMODE.TextSize = 20
  180.  
  181. ON.MouseButton1Click:connect(function()
  182. SPAM = true
  183. end)
  184.  
  185. SPAMHATSMODE.MouseButton1Click:connect(function()
  186. HATSPAM = true
  187. end)
  188.  
  189. SPAMBLOCKSMODE.MouseButton1Click:connect(function()
  190. HATSPAM = false
  191. end)
  192.  
  193. Kill.MouseButton1Click:connect(function()
  194.  
  195. TARGET = KillName.Text
  196.  
  197. lplayer =owner
  198. for i,v in pairs(lplayer.Backpack:GetChildren())do
  199. lplayer.Character.Humanoid:EquipTool(v)
  200. end
  201. for i,v in pairs(game:GetService("Players").LocalPlayer.Backpack:GetDescendants()) do
  202. if v:IsA("Tool") then
  203. v.Parent = lplayer.Character
  204. wait()
  205. v.Parent = game:GetService("Players")[TARGET].Character
  206. end
  207. end
  208. wait(1)
  209. lplayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(100000, 0, 100000))
  210. end)
  211.  
  212. KEW.MouseButton1Click:connect(function()
  213.  
  214. for i,v in pairs(owner.Character:GetChildren()) do
  215. if (v:IsA("Accessory")) then
  216. local p = Instance.new("Tool",owner.Character)
  217. v.Handle.Parent = p
  218. end
  219. end
  220. end)
  221.  
  222. OFF.MouseButton1Click:connect(function()
  223. SPAM = false
  224. end)
  225.  
  226. KEWL.MouseButton1Click:connect(function()
  227. owner.Character.Humanoid:Destroy()
  228. Instance.new("Humanoid",owner.Character)
  229. end)
  230.  
  231. while true do
  232. if SPAM == true then
  233. for _,v in pairs(owner.Character:GetChildren()) do
  234. if (v:IsA("Accessory")) and v.Handle:FindFirstChild("Mesh") then
  235. if not HATSPAM then
  236. v.Handle:FindFirstChild("Mesh"):remove()
  237. end
  238. end
  239. end
  240. for i,v in pairs(owner.Character:GetChildren()) do
  241. if (v:IsA("Accessory")) then
  242. v.Parent = workspace
  243. end
  244. end
  245. wait(1.01)
  246. owner.Character.Humanoid.Health = -99
  247. end
  248. wait(3.7)
  249. end
Advertisement
Add Comment
Please, Sign In to add comment