Local script in button:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.FEevents.BanPlayer:FireServer()
end)
Server script in button:
game.ReplicatedStorage.FEevents.BanPlayer.OnServerEvent:Connect(function(player)
local bayun = Instance.new("BoolValue")
bayun.Name = script.Parent.Parent.BANPLAYERHOLDER.Text
bayun.Value = true
bayun.Parent = game.Workspace.BanishedPlayers.Banned
game.Players:FindFirstChild(script.Parent.Parent.BANPLAYERHOLDER.Text):Kick("You have been BANNED for: "..script.Parent.Parent.BANPLAYERReason.Text)
end)
The FEevent BanPlayer is a RemoteEvent, should it be a different event?

5 comments
Where is the scripts located?
In a button, within a gui. (Gui>Frame>Button)
ScreenGui
When you state :FireServer( player) -- parameter must be player , but in the OnServerEvent, there is no need for parameter player as it has already been passed.Try to print(player.Name) you will see, if it has passed it or not.
im confused?