ive tried many things using 2 scripts using values in a stat folder it doesnt save
i have no clue whats happening hopefully you can help
local DataStore = game:GetService("DataStoreService"):GetDataStore("heght")
local DataStorez = game:GetService("DataStoreService"):GetDataStore("heght2")
local DataStorezz = game:GetService("DataStoreService"):GetDataStore("heght3")
local DataStorezzz = game:GetService("DataStoreService"):GetDataStore("stat")
local DataStoreh = game:GetService("DataStoreService"):GetDataStore("tewl")
wait(1)
-- Body Scripted - jOhNJoHnIaMm55
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild('Humanoid')
for i,Child in pairs(Humanoid:GetChildren()) do
if Child:IsA('NumberValue')then
if Child.Name == 'BodyHeightScale'then
Child.Value = DataStore:GetAsync(Player.UserId) or math.random(1,3.5)
DataStore:SetAsync(Player.UserId, Child.Value)
end
end end
end)
end)
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild('Humanoid')
for i,Child in pairs(Humanoid:GetChildren()) do
if Child:IsA('NumberValue')then
if Child.Name == 'BodyHeadScale'then
Child.Value = DataStorezzz:GetAsync(Player.UserId) or math.random(1,2)
DataStore:SetAsync(Player.UserId, Child.Value)
end
end end
end)
end)
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild('Humanoid')
for i,Child in pairs(Humanoid:GetChildren()) do
if Child:IsA('NumberValue')then
if Child.Name == 'BodyWidthScale'then
Child.Value = DataStorez:GetAsync(Player.UserId) or math.random(1, 2)
DataStore:SetAsync(Player.UserId, Child.Value)
end
end end
end)
end)
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild('Humanoid')
for i,Child in pairs(Humanoid:GetChildren()) do
if Child:IsA('NumberValue')then
if Child.Name == 'BodyDepthScale'then
Child.Value = DataStorezz:GetAsync(Player.UserId) or math.random(1, 2)
DataStore:SetAsync(Player.UserId, Child.Value)
end
end end
end)
end)

1 comment
Please use a Lua block.