Growth script in tool not working

Yeah. You can get the character by doing

local Character

Tool.Equipped:Connect(function()
       Character = Tool.Parent
end)
1 Like

Thanks! I’ll try this. I really appreciate your help :smile:

1 Like

Don’t use the player variable. I just gave you code to get the Character. Use that instead.

Ok thanks!

filler text sjahfasdhfhsdjfhasdjfhkjasdhfjkahsdkjfhakjsdhfajksdhf

Replace local character to local character = game.Players.LocalPlayer.Character.

I also told you to replace = grow to += grow.

So your script show be like this:

local tool = script.Parent
local character = game.Players.LocalPlayer.Character

tool.Equiped:Connect(function()
	character = tool.Parent
end)

local grow = 3
local size = 1

tool.Activated:Connect(function()
	character:WaitForChild("Humanoid").HeadScale.Value += grow
	character:WaitForChild("Humanoid").BodyDepthScale.Value += grow
	character:WaitForChild("Humanoid").BodyWidthScale.Value += grow
	character:WaitForChild("Humanoid").BodyHeightScale.Value += grow
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.