Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need help setting a value permanently, I've tried and can't get it, help!?

So, this is what I need it for.

I need the value to stay the same no matter what, because I'm setting it to a variable, then after a specific event, it changes a value to nothing then on another event, it changes back to the perm value.

All I keep getting is that the (supposed to be perm) value is auto updating to the blank value there for loosing the value I need to keep.

I would post the script but I don't feel comfortable putting it up for the world...

2 comments

0

This is too broad and you need to post the code.

0

Now that I think about it, the main code isn't relevant. Basically, I'm working on a stealth script, and I'm trying to get the ID of the players face, changing it to nothing so it's not visible, then after the player exits stealth, it sets the face ID back to the variable(original face id)

1 answer

✓ Accepted answer

Try : (Localscript)

Player = game.Players.LocalPlayer

f  = Player.Character.Head.face:Clone()
f.Parent = game.ReplicatedStorage
f.Name = "face"

Player.Character.Head.face:remove()
wait() -- Do your timer here(Whenever the stealth finishes) --
f.Parent = Player.Character.Head

There ya go.

This discussion is preserved as it was. New answers, comments, and votes are closed.