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

I've tried for a while now, and I cannot seem to get the value to change?

Asked by 6 years ago

How would I be able to make this code (FE comp) change a value, I've tried and cannot seem to get it to work, please help.

local player = game.Players.LocalPlayer

script.Parent.FocusLost:connect(function(enterPressed)
    if enterPressed and script.Parent.Text == "0000" then
    script.Parent.Parent.Database.Dest.Value = 1
print("it works!")
    end
end)


0
Uh... so you are trying to get the FocusLost function to fire? MessorAdmin 598 — 6y

Answer this question