I'm doing a mini-game where players can equip skins. In the lobby I wanted to set up statues that show each player their own skin I tried this:
local player = game.Players.LocalPlayer
wait (0.1)
while true do
wait (1)
if game.Players.LocalPlayer.Backpack.Skins.Weapons.AK12.Value == 1 then
script.Parent.Parent.Parent.BrickColor = BrickColor.new("Bright blue")
script.Parent.Parent.Parent.Material = ('SmoothPlastic')
end
end
but obviously it does not work because a script has no local player

1 comment
Describe your problem a little more. What does the script more, and add more detail to what you want to achieve