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

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

Asked by
Xoqex 75
10 years ago

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...

0
This is too broad and you need to post the code. Perci1 4988 — 10y
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) Xoqex 75 — 10y

1 answer

Log in to vote
1
Answered by
iLegitus 130
10 years ago

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.

Ad

Answer this question