So, I have a script. This script is in a part. When I step on the part, I want all body parts of the player(hit.Parent.v) to shrink to 0.5. But nothing works. I'm betting it's something to do with the "hit.Parent.v" part. Here's the script:
local part = script.Parent
local db = false
function shrink(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
if not db then
db = true
local player = human.Parent
local myArray = {"Left Leg","Right Leg","Left Arm","Right Arm","Torso","Head"}
for i,v in pairs(myArray) do
hit.Parent.v.Size = 0.5
end
end
end
end
part.Touched:connect(shrink)
All help is appreciated!

1 comment
Thanks! Now, I just need to fix that the person dies ._.