Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use a value inside game.Workspace.model to look at game.Players.OwnerName?

Asked by 9 years ago

okay.. There is a model, The model can be owned, there is a owner value with the name of the player who owns it. There is also a Cash value, I want to display the Cash Value in a GUI. But, I don't know how to do this.. (I know how to make GUIs so that isn't the problem.

PlayerName =  game.Workspace.model.Owner.Value
Player = HELP!?!?!    --I want this to be game.Players the  local PlayerName (above)
Cash = game.Workspace.model.Cash.Value
CashDisplay = Player.StarterGui.ScreenGui.Cash

Cash.Changed:connect(function()
    CashDisplay.Text = ("Cash".. Cash)
end)

I don't want to show of someone else's Cash Value!

The Name Updater is a LocalScript

Answer this question