Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it onTouch, size change?

Why doesn't this script work? I tried to make it so when the player has touched the brick, if they're configured for R15 then their scale is slightly increased. Any help is greatly appreciated!

Link to the code here

1 answer

✓ Accepted answer

If all you want is their size to change on touch then do something like this.

    script.Parent.Touched:Connect(function(part)
	    local human = part.Parent:FindFirstChild("Humanoid")
	    if human ~= nil then
		    local sizeChange = 1.12
		    human.BodyHeightScale.Value = sizeChange
		    human.BodyWidthScale.Value = sizeChange
		    human.BodyDepthScale.Value = sizeChange
		    human.HeadScale.Value = sizeChange
	    end
    end)

It looked like you were trying to wait for the player to load after the player has already touched the brick as well as change the team they are on? Not sure what the overall goal is for your scenario, but for size change on a brick touch, you would do something like the above.

This discussion is preserved as it was. New answers, comments, and votes are closed.