#Not resizing part

1 messages · Page 1 of 1 (latest)

spring mauve
#
local Lift = Instance.new("Part")
Lift.Parent = game.Workspace
Lift.Anchored = true
Lift.Position = Vector3.new(4.105, 0.5, -59.927)
Lift.Size = Vector3.new(4,1,4)

Lift.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild('Humanoid') then
        hit.Size = Vector3.new(2, 10, 2)
    end
end)

This resizes my character instead of the part, why is that?
(New scripter)

turbid summit
#

see if its gettingh hit

#

see if it finds a humanoid

spring mauve
turbid summit
#

Resizing the function and not the variable

spring mauve
#

yeah

#

my mistake

turbid summit
#

okay if it works it works

#

i dont know what you just said though

spring mauve
#

it was "hit.size" instead of "lift.size" lift is the variable for the part, hit is the function

turbid summit
#

ah

#

you were resizing the hit not the thing you wanted to resize

spring mauve
#

yeaah my mistake

turbid summit
#

ok good job you found it

spring mauve
#

Thanks