Advertisement
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
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local bar = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local TextButton = Instance.new("TextButton")
- local kick = Instance.new("TextButton")
- local des = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.G_osty:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.664233565, 0, 0.266497463, 0)
- Frame.Size = UDim2.new(0, 295, 0, 240)
- bar.Name = "bar"
- bar.Parent = Frame
- bar.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- bar.BorderSizePixel = 0
- bar.Size = UDim2.new(0, 295, 0, 27)
- TextLabel.Parent = bar
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 295, 0, 27)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = "G_osty's Magical GUI"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 20
- TextLabel.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextLabel.TextWrapped = true
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.0456252843, 0, 0.295833319, 0)
- TextBox.Size = UDim2.new(0, 133, 0, 29)
- TextBox.Font = Enum.Font.GothamSemibold
- TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 17
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0.0456252843, 0, 0.583333313, 0)
- TextButton.Size = UDim2.new(0, 133, 0, 28)
- TextButton.Font = Enum.Font.GothamSemibold
- TextButton.Text = "gay em"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextSize = 17
- kick.Name = "kick"
- kick.Parent = Frame
- kick.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- kick.BorderSizePixel = 0
- kick.Position = UDim2.new(0.52359134, 0, 0.29583329, 0)
- kick.Size = UDim2.new(0, 133, 0, 28)
- kick.Font = Enum.Font.GothamSemibold
- kick.Text = "Kick Player"
- kick.TextColor3 = Color3.new(1, 1, 1)
- kick.TextSize = 17
- des.Name = "des"
- des.Parent = Frame
- des.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- des.BorderSizePixel = 0
- des.Position = UDim2.new(0.52359134, 0, 0.583333254, 0)
- des.Size = UDim2.new(0, 133, 0, 28)
- des.Font = Enum.Font.GothamSemibold
- des.Text = "Clr workspace"
- des.TextColor3 = Color3.new(1, 1, 1)
- des.TextSize = 17
- -- Scripts:
- des.MouseButton1Click:connect(function()
- game.Workspace:ClearAllChildren()
- end)
- kick.MouseButton1Click:connect(function()
- game.Players[TextBox.Text]:Kick("G_osty has kicked you from the game.")
- end)
- TextButton.MouseButton1Click:connect(function()
- local pants = Instance.new("Pants")
- local shirt = Instance.new("Shirt")
- if game.Workspace[TextBox.Text].Pants then
- game.Workspace[TextBox.Text].Pants:Destroy()
- end
- if game.Workspace[TextBox.Text].Shirt then
- game.Workspace[TextBox.Text].Shirt:Destroy()
- end
- shirt.ShirtTemplate = "rbxassetid://2583005135"
- shirt.Parent = game.Workspace[TextBox.Text]
- pants.PantsTemplate = "rbxassetid://2191494311"
- pants.Parent = game.Workspace[TextBox.Text]
- end)
- game.Players.G_osty.Chatted:connect(function(msg)
- TextBox.Text = msg
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement