Okay, so my friend is making a tycoon game and asked me for help cause he couldn't make the money shower text label. I thought that I could help, cause I have already made it before, but I couldn't do it now ;-;
So when I played the game money value was stored in server storage. There was a folder named PlayerMoney and there was a value of money named the name of player e.g Lukatura (also there was an int value named Owns########## value changes whenever player owns tycoon to the name of tycoon, but don't think it's important to money.)
Ok I made GUI, then text label in it and local scipt in text label so here it is:
local name = game.Players.LocalPlayer.Name
script.Parent.Text = Game.ServerStorage.PlayerMoney.name.Value
function moneyget(player,name)
local money = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
while true do
script.Parent.Text = "$ " .. money.Value
wait()
end
end
I know this script is really primitive (just like my scripting knowledge ;-;), so need
your help whoever is out there :3
NOTE:This is the latest version I tried with the script and I have tried lots of stuff before, yet just spill out what you know :)
|