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