I have this so far,
function onPlayerEntered(player)
repeat wait () until player.Character
-- insert gui to start
local Screen = script.Parent
local main = Screen.MainFrame
main.Visible = true
local amount = player.Amount.Value
amount = 0.01
wait(1)
player.Character.Torso.Anchored = true
end
game.Players.PlayerAdded:connect(onPlayerEntered)
onPlayerEntered(game.Players:WaitForChild("Player")) -- Has to be done since it doesn't work offline for some reason.
Everything seems to be working fine. My problem is the amount will not change into 0.01, it is a intvalue just like in a stat leaderboard. It is directly in the player. Basically it is like a cookie clicker and each tie they click a gui button their money increases by the amount. That is the purpose for it. I can't seem to find out why it is still at zero when I test it.
~iiMitchie |