Hello, I am working on a script that would allow the owner of a game say a in-game message and it will change the stats of the tycoons. It is a game owner command. Anyways this is what I got so far and it is not working.
a = game.Workspace["berezaa's Tycoon Kit"]
Users = {"CallMeDonaldTrump", "NameHere"}
player=game.Players.LocalPlayer
player.Chatted:connect(function(msg)
if msg=="Owner" and player.Name==Users then
a["Bright red"].Cash.Value = 999999999
a["Bright green"].Cash.Value = 999999999
a["Bright blue"].Cash.Value = 999999999
a["Bright yellow"].Cash.Value = 999999999
end
end)

5 comments
Try avoid using other people's scripts unless you are learning from them, learning from and using are very different. The only thing that appears wrong with this script is nothing, I think the issue is that Cash and Value don't exist. There is this awesome tool called output which will most likely help you fix any errors or nullpointers(trying to access something that doesn't exist)
To view output go to view in the top bar of studio then click on the output button, you should also see many other things like explorer, properties, and more!
Well, I do have the output out and nothing showed up in it. However I did find the issue, I just removed the "and player.Name==Users" and "Users = {"CallMeDonaldTrump"} and it worked
ok cool, keep using other peoples scripts, thatll get you far in life
Lmaooooo