Noob Question:
I’m working on a building system with some UI and I came across a problem when attempting to build. I have a UI text button that equips the tool to the player, and it will show a “display part” where the desired part would be if the tool is Activated. However, I have it in my code when the player clicks on the UI to equip the tool, the tool is Activated instead of the display part following the cursor. I’ve tried debounces to see if that works, but I don’t think I’m doing it properly.
repeat
wait(.1)
DisplayPart.Position = SnapToGrid(DisplayPart)
print("Loops")
until script.Parent.Activated:Connect(function()
print("Activated")
build()
end)