What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked on the devforum but none of the questions suited my case, I have tried switching around the way that the script was made but nothing worked.
local Player = script.Parent.Parent.Parent.Parent
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Amount = Player:FindFirstChild("leaderstats").Rebirths.Value
script.Parent.MouseButton1Click:Connect(function()
Humanoid.BodyDepthScale.Value += Amount
Humanoid.BodyHeightScale.Value += Amount
Humanoid.BodyWidthScale.Value += Amount
Humanoid.HeadScale.Value += Amount
end)
use server script cuz its not sided by server means other players cant see da local character increases size
It works, but when I try to change the rebirths value, it does the same amount as before. Also I tried making it so a leaderstats value would go up, but that didn’t work either.
oh just put the amount line inside da function so it will be updated mb i thought it justa permanent value
like this
local Player = script.Parent.Parent.Parent.Parent
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
script.Parent.MouseButton1Click:Connect(function()
local Amount = Player:FindFirstChild("leaderstats").Rebirths.Value
Humanoid.BodyDepthScale.Value += Amount
Humanoid.BodyHeightScale.Value += Amount
Humanoid.BodyWidthScale.Value += Amount
Humanoid.HeadScale.Value += Amount
end)