Hi! I was wondering why this code won't work. When I run this script it says it works but nothing happens.

local Kill = game.ReplicatedStorage.KillPlayer
local Kick = game.ReplicatedStorage.KickPlayer
local Fling = game.ReplicatedStorage.FlingPlayer
local Admin = game.ReplicatedStorage.AdminPlayer
local RemoveAdmin = game.ReplicatedStorage.RemoveAdminPlayer

Kill.OnServerEvent:Connect(function(player, PlayerToKill)
	game.Players:FindFirstChild(PlayerToKill).Character.Head:Remove()
end)

Kick.OnServerEvent:Connect(function(player, PlayerToKick, Reason)
	game.Players:FindFirstChild(PlayerToKick):Kick(Reason)
end)

Fling.OnServerEvent:Connect(function(player, PlayerToFling)
	game.Players:FindFirstChild(PlayerToFling).Character.HumanoidRootPart.Position = Vector3.new(500, 500, 500)
end)

Admin.OnServerEvent:Connect(function(player, PlayerToAdmin)
	game.Players:FindFirstChild(PlayerToAdmin).PlayerGui.Ad.Admin.Enabled = true
end)

RemoveAdmin.OnServerEvent:Connect(function(player, PlayerToRemoveAdmin)
	game.Players:FindFirstChild(PlayerToRemoveAdmin).PlayerGui.Ad.Admin.Enabled = false
	print("Worked")
end)

Also,

script.Parent.Main.Active = true

local Frame = script.Parent.Main
local rep = game.ReplicatedStorage
local User = Frame.User
local Reason = Frame.Reason

Frame.Commands.KillFrame.Kill.MouseButton1Click:Connect(function()
	rep.KillPlayer:FireServer(User.Text)
end)

Frame.Commands.KickFrame.Kick.MouseButton1Click:Connect(function()
	rep.KickPlayer:FireServer(User.Text, Reason.Text)
end)

Frame.Commands.FlingFrame.Fling.MouseButton1Click:Connect(function()
	rep.FlingPlayer:FireServer(User.Text)
end)

Frame.Commands.AdminFrame.Admin.MouseButton1Click:Connect(function()
	rep.AdminPlayer:FireServer(User.Text)
end)

Frame.Commands.RemoveAdminFrame.RemoveAdmin.MouseButton1Click:Connect(function()
	rep.RemoveAdminPlayer:FireServer(User.Text)
end)

Only the bottom one doesn't work of first script.