Yes… you seen the title.
Hello, I own a Hood (Gangster Game/RP), and I am having problems. I have a police team named ‘CPD’ (Chicago Police Department for abbriv.) and /checkin works when you try to log on the police team but /checkout does not. Now, I did not make this script, so I’m planning to revamp this script however I need somebody’s help in order for me to help me find alternatives to fix because sometimes Lua wishes not to cooperate with Roblox itself.
I have a RemoveEvent in ReplicatedStorage (for CPD), I just added ‘Citizen’ as RemoteEvent in ReplicatedStorage and copied the same way you would go to teams. However, this still does not work. I’ll show a pic and script:
(THERE ARE MULTIPLE SCRIPTS FOR THIS, SO BE ALERT!):
Found in ServerScriptService
'game.ReplicatedStorage.CPD.OnServerEvent:Connect(function(Player)
if Player:IsInGroup(16525198) then
Player.TeamColor = BrickColor.new(‘Storm blue’)
Player:LoadCharacter()
end
end)
game.ReplicatedStorage.Citizen.OnServerEvent:Connect(function(Player)
if Player:IsInGroup(16525198) then
Player.TeamColor = BrickColor.new(‘White’)
Player:LoadCharacter()
end
end)
game.ReplicatedStorage.CFDP.OnServerEvent:Connect(function(Player)
if Player:IsInGroup(16525198) then
Player.TeamColor = BrickColor.new(‘Hurricane grey’) --Was hurricane grey/hurricane gray
Player:LoadCharacter()
end
end)
’
Found in StarterCharacterScripts
'local ReplicatedStorage = game:GetService(‘ReplicatedStorage’)
local Player = game.Players.LocalPlayer
Player.Chatted:Connect(function(Msg)
if Msg == ‘/checkin’ then
ReplicatedStorage.CPD:FireServer()
elseif Msg == ‘/checkout’ then
ReplicatedStorage.SigningOut:FireServer()
end
end)
Player.Chatted:Connect(function(Msg)
if Msg == ‘/checkinfd’ then
ReplicatedStorage.CFDP:FireServer()
elseif Msg == ‘/checkoutfd’ then
ReplicatedStorage.SigningOut:FireServer()
end
end)’
Oh and look at this, what are so familiar about these? (even same team brick color)
Anyways, please help. I do not understand this!