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

The parts are not working as they are supposed to be?

When the parts spawn some of them will basically be anchored right away without even reaching the baseplate instead of falling and touching the baseplate and then anchored. Can someone help me? Tks so much

workspace.Baseplate.Touched:Connect(function(hit)
	if hit:IsA("Part") and not hit.Parent:FindFirstChild("Humanoid") then
		hit.Anchored = true
		hit.Position = Vector3.new(hit.Position.X, hit.Position.Y, hit.Position.Z)	
	end
end)

1 comment

0

is it in workspace?

1 answer

✓ Accepted answer

Put this script in the part named baseplate

script.Parent.Parent.Baseplate.Touched:Connect(function(hit)
    if hit:IsA("Part") and not hit.Parent:FindFirstChild("Humanoid") then
        hit.Anchored = true
        hit.Position = Vector3.new(hit.Position.X, hit.Position.Y, hit.Position.Z)  
    end
end)

This should work

3 comments

0

I left all your code here i changed the line 1 and that is it

0

tks man

0

no problem

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