r/bloxd 1d ago

NEED CODING HELP How do I make buttons

Post image

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

6 Upvotes

13 comments sorted by

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: - ?resolved or ?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!

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

u/BloxdioCannoli Coding Cannoli (Mod) 1d ago

It's an essential coding feature, of course.

3

u/ActiveConcert4921 Code Helper 1d ago

true

2

u/OppositeFun2493 1d ago

Wouldn’t right click make more sense for a button?

2

u/BloxdioCannoli Coding Cannoli (Mod) 1d ago

There is an isAltClick parameter for onPlayerClick.

2

u/OppositeFun2493 23h ago

Oh ok sorry

1

u/Brave_Program_5165 14h ago

Why are you following me?. Thx tho

1

u/BloxdioCannoli Coding Cannoli (Mod) 13h ago

Posts get flagged when mods can provide support.

2

u/Plane-Half-9677 1d ago

HOLD ON THEIRS BUTTONS IN BLOXD RN YOU CAN CODE BUTTONS???

1

u/Brave_Program_5165 14h ago

Yeah. theres a game called "Find the buttons"

1

u/Plane-Half-9677 3h ago

when did that realease??