I'm making a jeopardy game but I have no idea how to script so how would I make a decal change when a team called "host" clicks it?
I haven't tried anything cause idk where to start or where to put the script.
Would this be the right code?
PartContainingDecal.ClickDetector.MouseClick:connect(function(PlayerWhoClicked)
if PlayerWhoClicked.Team.Name == "TeamName" then
PartContainingDecal.Decal.DecalId = id
end
end)

2 comments
thank you! :)
Can you accept my answer?