Hi, I am trying to make a gui that can delete/add teams. I am almost done with it but I am having a problem with my remote events.
As soon as I join the game, my remote events just fire for no reason
also here is my code:
This is the code inside the Confirm button
local team = script.Parent.Parent.CurrentTeam.Value game.ReplicatedStorage.DeleteTeam:FireServer(team)
And this is the code inside ServerScriptService
game.ReplicatedStorage.DeleteTeam.OnServerEvent:Connect(function(player, team) local teamchosen = game.Teams:FindFirstChild(team) teamchosen:Destroy() end)
Anyways if you could help me figure out why this is happening that would be great, Thanks!