I made a FE team change script for my Sci-Fi space lab today, and.. It seems to not work.
Third Try [i had some previous attempts]
local Researcher = script.Parent.Researcher
local Security = script.Parent.Security
local player = game.Players.LocalPlayer
Researcher.MouseButton1Click:Connect(function()
player.Team = game.Teams.Researcher
game.ReplicatedStorage.Events.PlayerEvent:FireServer()
end)
Security.MouseButton1Click:Connect(function()
player.Team = game.Teams.Security
game.ReplicatedStorage.Events.PlayerEvent:FireServer()
end)
^ FE Team Script ^ v On Server Event v
local r = game:GetService("ReplicatedStorage")
local SEC = r.Events.TeamEvents.Security
local RES = r.Events.TeamEvents.Researcher
local playeradded = r.Events.ClientCon
game.Players.PlayerAdded:Connect(function(player)
wait()
playeradded:FireClient(player)
end)
SEC.OnServerEvent:Connect(function(splayer)
splayer.TeamColor = BrickColor.new("Deep orange")
end)
RES.OnServerEvent:Connect(function(splayer)
splayer.TeamColor = BrickColor.new("Cyan")
end)
Problem, it doesn't change my team without erroring.

9 comments
you cant get the server storage from the client
Oh.. How can i make it work correctly & functional?
use ReplicatedStorage instead, since it can be accessed by the client and server so its the best place to put remote events and functions
^ Ill try that.
you need to show us your OnServerEvent code
^ I didn't add that.
If it's throwing an error then post it
It isnt erroring.
Ok then check if it's running at all. Print something on line 1, if it's not it's either disabled or misplaced.