Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago
Edited 2 years ago

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)
0
is it in workspace? Egor_Naum 5 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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

0
I left all your code here i changed the line 1 and that is it theking66hayday 841 — 2y
0
tks man thunder_long 4 — 2y
0
no problem theking66hayday 841 — 2y
Ad

Answer this question