So I have a script that is in the ServerScriptservice and it gets that the player is in a certain team and adds the shield into the player's left arm but for some reason, it is not adding to the player's arm at all what when wrong?

---[|Script|]---

local plrInstance = game.Players.LocalPlayer;
local plr = plrInstance.Name;
local c = plrInstance.Character or plrInstance.CharacterAdded:wait();
local Roman = script.Roman:Clone()
local Carthage = script.Carthage:Clone()

if game.Players.LocalPlayer.TeamColor == BrickColor.new("Maroon")then
    Roman.Parent = game.Workspace.c["Left Arm"]
    Roman.Name = 'Roman Shield'
elseif
    game.Players.LocalPlayer.TeamColor== BrickColor.new("Earth green") then
        Carthage.Parent = game.Workspace.c["Left Arm"]
        Carthage.Name = "Carthage Shield"
end

3 comments

0

The script is local and therefore cannot run in the ServerScriptService

0

ah

0

But where should I put the script