No errors, nothing in input... not getting a sync :(

ClanStore = game:GetService("DataStoreService"):GetDataStore("ClanData")
player = script.Parent.Parent.Parent.Parent.Parent.Parent
repeat wait() until player.Character	
async = ClanStore:GetAsync("Points_"..player.Name)
if async ~= nil then
script.Parent.Clan.Value = async
print("Clan Loaded")
else
script.Parent.ClanScript.Disabled = false
end



script.Parent.Clan.Changed:connect(function(Val)
ClanStore:SetAsync("Points ", Val)
print("Value Changed!")
end)

--If you're wondering what ClanScript is, well it's just a script that is activated if the datastore doesn't get a sync, it randomizes your Clan Value found in the parent of this script, nothing you really need to worry about.

1 comment

0

Try script.Parent.Clan.Value = tonumber(async).