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

attempt to call a table value?

Hi i am working on tycoon game, so i made two floors and that means two conveyors so the drop keep going until it touch the block i want to drop it down

here is the script

script.Parent.Touched:connect(function(hit) --Activates when hit
	  if hit.Name == "Part" then --detects the name and runs the code
	  --code here
hit.CFrame=CFrame.new(Vector3(hit.CFrame+Vector3(0,-1,0)))
end
end)

i wish anyone can help me fast!!!

1 answer

✓ Accepted answer
script.Parent.Touched:connect(function(hit)
    if hit.Name == "Part" then 
         hit.Position = hit.Position  + Vector3.new(0,-1,0)
     end
end)

1 comment

0

Thanks man!! i already solve it, but thanks

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