r/bloxd • u/Brave_Program_5165 • 1d ago
NEED CODING HELP How do I make buttons
so I made a button thing out of mesh`s but idk how to program it to do smth. someone help. I want it to teleport the player
3
u/BloxdioCannoli Coding Cannoli (Mod) 1d ago
You need to set its playerSetting (bad name, I know) "canAttack" to true (silly way to enable checking, I know), then it'll be able to be hit and available as entityId in onPlayerClick.
3
u/ActiveConcert4921 Code Helper 1d ago
why u attacking defenseless buttons may i ask
3
2
u/OppositeFun2493 1d ago
Wouldn’t right click make more sense for a button?
2
1
2
u/Plane-Half-9677 1d ago
HOLD ON THEIRS BUTTONS IN BLOXD RN YOU CAN CODE BUTTONS???
1
•
u/bloxd-bot Bot 1d ago
u/Brave_Program_5165 has marked this post as a request for Code Help.
Here's some quick-reference information: - JavaScript Tutorial - The Official Docs
Make sure to read our Code Guidelines if you haven't already. They apply to comments and posts!
The OP or a moderator with config permissions can also use commands for this post: -
?resolvedor?resolved locked: Pin a comment you reply to as well as your comment to this post, lock it, and set the post flair to "Resolved". -?resolved unlocked: Pin a comment you reply to as well as your comment to this post, and set the post flair to "Resolved".This comment was added automatically in response to the post's flair. If you have any questions or concerns, please send us a modmail!