Barrier / door check
ServerScriptServerScript on a door part. Opens the barrier when the touching player has a valid ticket for your event.
Copy Roblox server scripts that call the Ticketblaster validation API — for door barriers, seat gates, kick scripts, and ticket-code checks.
TICKETBLASTER_API_SECRET on the website and the same value as the ApiSecret attribute on your Hub Config module in Roblox Studio.{API_SECRET} in the snippets below with your shared secret (never expose it in LocalScripts).https://ticketing.djmarkuss.com/api/tickets/validateYour Hub ID
hub_mdg3fk8jfm
Event ID is inserted into snippets; use {EVENT_ID} if you prefer a manual placeholder.
Validate ticket code
GET /api/tickets/validate?code={ticketCode}&eventId={eventId}Validate player ticket
GET /api/tickets/validate?robloxUserId={userId}&eventId={eventId}Send header X-Ticketblaster-Secret. Response: { valid, ticket?, reason? } — ticket.seat includes row, number, and section for assigned seating (null for general admission).
Copy a script into Roblox Studio. Expand a card to preview the code.
9 templates
ServerScript on a door part. Opens the barrier when the touching player has a valid ticket for your event.
ServerScript that checks each player on join and kicks anyone without a valid ticket for the event.
ModuleScript + RemoteFunction pattern. Clients submit a ticket code; server validates via the API.
ModuleScript helper you can require from any server script to check whether a player holds a valid ticket.
RemoteFunction gate that validates a ticket code and checks row, seat number, and section against this entrance. Returns seat details for display on a pass UI.
Door barrier that only opens for players with a valid assigned seat. Optionally restrict to a specific section via the Section attribute or EXPECTED_SECTION.
ServerScript that ejects players who sit in a seat not assigned on their ticket. Tag each Seat with TicketRow, TicketNumber, and TicketSection attributes (or SeatId).
ServerScript that ejects players who sit in a booked seat that is not on their ticket. Tag each Seat with row, number, and section (or SeatId) matching your venue layout.
ServerScript that loads sold seat IDs from the hub events API and disables matching Seat instances so players cannot sit in already-booked seats.