How can I save this?

Hi developers

I have a head growth script, its doesnt save, I looked at youtube tutorials and it seemed too confusing
I am trying to bring back a test game I was reminded about, I think it would be funny

The head growth script works but I am having trouble with the datastore

local DataStoreService = game:GetService("DataStoreService")
local TheDataStore = DataStoreService:GetDataStore("TheDataStore")

local MaxSize = 999999999999999999999999999999 
local SpeedOfScaling = 0.001  
local I = 1
local X = 0
local function check(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.HeadScale.Value == 1 then
if X == 0 then
X = 1
I = 1
while I <= MaxSize do
wait(0.01)
hit.Parent.Humanoid.HeadScale.Value = I
I = I+SpeedOfScaling
end
while X == 1 do
X = 0				
wait(0.01)
end		
end
end
end
end

script.Parent.Touched:connect(check)

thanks for reading

Here is what I would do:
-Once the player has touched the brick, check if he has any data related to what needed.

-If there is data found, act accordingly and make the required changes.

-If there is no data found, then set his head size in a data store when he touches the brick.

(Make sure to use BindToClose too when saving the data).

how would I check?

bruhthesechars