✓ Accepted answer
It looks like you're using a serverscript. Try doing this if your game is filtering enabled:
add a RemoteEvent to game.ReplicatedStorage and call it ColorEvent
add a localscript on the starter gui
add a serverscript on the workspace
in the localscript add this
game.ReplicatedStorage.ColorEvent:FireServer()
- in the serverscript add this
game.ReplicatedStorage.ColorEvent.OnServerEvent:Connect(function(acplayer)
acplayer.Character['Body Colors'].HeadColor = BrickColor.new('Pastel brown')
end)
If your game is experimental mode (I don't recommend) then just turn the script into a LocalScript.
Also if you didn't know ServerScript = a normal script
For more info on roblox wiki visit this:
https://wiki.roblox.com/index.php?title=API:Class/Workspace/FilteringEnabled
2 comments
local acplayer = game.Workspace:FindFirstChild(player.Name)
yes I tried that already but it doesn't work, says the same error