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

How do I make the table print the textbox's text?

Asked by 9 years ago

I'm making a plugin that allows you to easily create a leaderboard but I need to be able to change the stats in the table to the text of the textboxes and if their empty then skid that oen\

here's my script so far :

while wait(0.3) do local stats = (script.Parent.Stat1.Text and script.Parent.Stat2.Text and script.Parent.Stat3.Text and script.Parent.Stat4.Text) end game.Players.PlayerAdded:connect(function(player) local leaderstats = Instance.new("Model", player) leaderstats.Name = "leaderstats" for _, stat in pairs(stats) do Instance.new("IntValue", leaderstats).Name = stat end end)

1 answer

Log in to vote
0
Answered by 9 years ago

Please rewrite this script using the Lua button.

Ad

Answer this question