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

I need this script to change somebody's stats when clicked (after text entered) but it won't. Help?

Asked by
Admin8483 -21
7 years ago
Edited 7 years ago

I am making a game and I decided to make a system where you can give people thumbs ups. However, it is not working, as when you click the submit button, it look for the Path, and not the text, and I need a way to get the script to look for the text. Here is the script:

local playname = script.Parent.Parent.Player.Text
    while true do 
        wait(1)
    local Namez = script.Parent.Namez.Value
    Namez = playname
    end
script.Parent.MouseButton1Down:connect(function()
    wait(0.5)
        local value = game.Players.Namez.leaderstats["Thumbs Up"].Value
        value = value + 1
end)

Answer this question