Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- 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
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- local HATSPAM = false
- local SPAM = false
- local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
- local ON = Instance.new("TextButton")
- local OFF = Instance.new("TextButton")
- local KEWL = Instance.new("TextButton")
- local KEW = Instance.new("TextButton")
- local Kill = Instance.new("TextButton")
- local SPAMHATSMODE = Instance.new("TextButton")
- local SPAMBLOCKSMODE = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local KillName = Instance.new("TextBox")
- ScreenGui.ResetOnSpawn = false
- ScreenGui.Name = "FEGUIBYXX"
- ON.Name = "ON"
- ON.Parent = ScreenGui
- ON.BackgroundColor3 = Color3.new(1, 1, 1)
- ON.Size = UDim2.new(0, 200, 0, 50)
- ON.Font = Enum.Font.SourceSans
- ON.Text = "SPAM ON"
- ON.TextSize = 14
- KEWL.Name = "GOD"
- KEWL.Parent = ScreenGui
- KEWL.BackgroundColor3 = Color3.new(1, 1, 1)
- KEWL.Position = UDim2.new(0, 0, 0, 150)
- KEWL.Size = UDim2.new(0, 200, 0, 50)
- KEWL.Font = Enum.Font.SourceSans
- KEWL.Text = "FE GOD"
- KEWL.TextSize = 14
- Kill.Name = "KillPlr"
- Kill.Parent = ScreenGui
- Kill.BackgroundColor3 = Color3.new(1, 1, 1)
- Kill.Position = UDim2.new(0, 0, 0, 250)
- Kill.Size = UDim2.new(0, 200, 0, 50)
- Kill.Font = Enum.Font.SourceSans
- Kill.Text = "Kill"
- Kill.TextSize = 23
- KillName.Parent = ScreenGui
- KillName.BackgroundColor3 = Color3.new(1, 1, 1)
- KillName.Position = UDim2.new(0, 0, 0, 300)
- KillName.Size = UDim2.new(0, 200, 0, 50)
- KillName.Font = Enum.Font.SciFi
- KillName.Text = "PT Kill"
- KillName.TextSize = 15
- KEW.Name = "HATTOOL"
- KEW.Parent = ScreenGui
- KEW.BackgroundColor3 = Color3.new(1, 1, 1)
- KEW.Position = UDim2.new(0, 0, 0, 200)
- KEW.Size = UDim2.new(0, 200, 0, 50)
- KEW.Font = Enum.Font.SourceSans
- KEW.Text = "HATTOOL"
- KEW.TextSize = 14
- OFF.Name = "OFF"
- OFF.Parent = ScreenGui
- OFF.BackgroundColor3 = Color3.new(1, 1, 1)
- OFF.Position = UDim2.new(0, 0, 0, 50)
- OFF.Size = UDim2.new(0, 200, 0, 50)
- OFF.Font = Enum.Font.SourceSans
- OFF.Text = "spam off"
- OFF.TextSize = 14
- TextLabel.Parent = ScreenGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.Position = UDim2.new(0, 0, 0, 100)
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SciFi
- TextLabel.Text = "needs hats to work"
- TextLabel.TextSize = 20
- SPAMHATSMODE.Parent = ScreenGui
- SPAMHATSMODE.BackgroundColor3 = Color3.new(1, 1, 1)
- SPAMHATSMODE.Position = UDim2.new(0, 0, 0, 350)
- SPAMHATSMODE.Size = UDim2.new(0, 200, 0, 50)
- SPAMHATSMODE.Font = Enum.Font.SciFi
- SPAMHATSMODE.Text = "SPAMHATS MODE"
- SPAMHATSMODE.TextSize = 20
- SPAMBLOCKSMODE.Parent = ScreenGui
- SPAMBLOCKSMODE.BackgroundColor3 = Color3.new(1, 1, 1)
- SPAMBLOCKSMODE.Position = UDim2.new(0, 0, 0, 400)
- SPAMBLOCKSMODE.Size = UDim2.new(0, 200, 0, 50)
- SPAMBLOCKSMODE.Font = Enum.Font.SciFi
- SPAMBLOCKSMODE.Text = "SPAMBLOCKS MODE"
- SPAMBLOCKSMODE.TextSize = 20
- ON.MouseButton1Click:connect(function()
- SPAM = true
- end)
- SPAMHATSMODE.MouseButton1Click:connect(function()
- HATSPAM = true
- end)
- SPAMBLOCKSMODE.MouseButton1Click:connect(function()
- HATSPAM = false
- end)
- Kill.MouseButton1Click:connect(function()
- TARGET = KillName.Text
- lplayer =owner
- for i,v in pairs(lplayer.Backpack:GetChildren())do
- lplayer.Character.Humanoid:EquipTool(v)
- end
- for i,v in pairs(game:GetService("Players").LocalPlayer.Backpack:GetDescendants()) do
- if v:IsA("Tool") then
- v.Parent = lplayer.Character
- wait()
- v.Parent = game:GetService("Players")[TARGET].Character
- end
- end
- wait(1)
- lplayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(100000, 0, 100000))
- end)
- KEW.MouseButton1Click:connect(function()
- for i,v in pairs(owner.Character:GetChildren()) do
- if (v:IsA("Accessory")) then
- local p = Instance.new("Tool",owner.Character)
- v.Handle.Parent = p
- end
- end
- end)
- OFF.MouseButton1Click:connect(function()
- SPAM = false
- end)
- KEWL.MouseButton1Click:connect(function()
- owner.Character.Humanoid:Destroy()
- Instance.new("Humanoid",owner.Character)
- end)
- while true do
- if SPAM == true then
- for _,v in pairs(owner.Character:GetChildren()) do
- if (v:IsA("Accessory")) and v.Handle:FindFirstChild("Mesh") then
- if not HATSPAM then
- v.Handle:FindFirstChild("Mesh"):remove()
- end
- end
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if (v:IsA("Accessory")) then
- v.Parent = workspace
- end
- end
- wait(1.01)
- owner.Character.Humanoid.Health = -99
- end
- wait(3.7)
- end
Advertisement
Add Comment
Please, Sign In to add comment