I have a script to change the value of one of the intvalues, but when I print the value after it's changed it still displays the old value, this happens in a server as well as studio.
local player = script.Parent.Parent.Parent.Parent.Parent
local finish = script.Parent.Parent.Controls.Finished
local DSS = game:GetService("DataStoreService")
hair = game.Lighting.Values.Hair.Value
hairc = game.Lighting.Values.HairC.Value
Skin = game.Lighting.Values.Skin.Value
face = game.Lighting.Values.Face.Value
--
scope = "player_" .. player.UserId
char = DSS:GetDataStore("Character", scope)
print(scope)
--
finish.MouseButton1Click:connect(function()
pcall(function()
char:SetAsync("Hair", hair)
char:SetAsync("Hairc", hairc)
char:SetAsync("Skin", Skin)
char:SetAsync("Face", face)
end)
print(hair,hairc,Skin,face)
end)

3 comments
Can you show us the script?
Sure
Also this is not FE enabled