How to increase head size without player falling over?
I'm new to scripting with only a little bit of experience in python and this is my first time scripting in lua so I edited a deathblock script to increase headsize and this is what I got:
2 | local humanoid = part.Parent:FindFirstChild( "Humanoid" ) |
3 | if (humanoid ~ = nil ) then |
4 | humanoid.HeadScale.Value = humanoid.HeadScale.Value + 0.02 |
8 | script.Parent.Touched:connect(onTouch) |
The code itself works great but I have three other problems.
Once the head size gets to about 5, the player starts falling over and everything and I've tried to disable cancollide but that didn't do anything.
The code goes way too fast. I've tried adding wait variables to some of the parts in the code, but it seems to skip right past it. I did "wait(10)" in different spots, but of course it didn't seem to do anything.
The final thing is that I would like the item to be like a tool that you have in your inventory and when you click the script runs. Right now it's just a block that when you step on it the script runs
I'm pretty much a complete beginner in coding so if anyone can help me out thanks