Ticketblaster
← Dashboard

Ticket validation

Copy Roblox server scripts that call the Ticketblaster validation API — for door barriers, seat gates, kick scripts, and ticket-code checks.

Setup

  1. Set TICKETBLASTER_API_SECRET on the website and the same value as the ApiSecret attribute on your Hub Config module in Roblox Studio.
  2. Enable Game Settings → Security → Allow HTTP Requests in your experience.
  3. Replace {API_SECRET} in the snippets below with your shared secret (never expose it in LocalScripts).
  4. Validation endpoint: https://ticketing.djmarkuss.com/api/tickets/validate

Your Hub ID

hub_mdg3fk8jfm

Event ID is inserted into snippets; use {EVENT_ID} if you prefer a manual placeholder.

API reference

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).

Snippets

Copy a script into Roblox Studio. Expand a card to preview the code.

9 templates

Barrier / door check

ServerScript

ServerScript on a door part. Opens the barrier when the touching player has a valid ticket for your event.

Barrier

Kick players without a ticket

ServerScript

ServerScript that checks each player on join and kicks anyone without a valid ticket for the event.

Kick

Validate ticket code (RemoteFunction)

ModuleScript

ModuleScript + RemoteFunction pattern. Clients submit a ticket code; server validates via the API.

RemoteSeats

Validate by Roblox UserId

ModuleScript

ModuleScript helper you can require from any server script to check whether a player holds a valid ticket.

Helper

Assigned seat gate

ServerScript

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.

BarrierSeats

Seat section barrier

ServerScript

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.

BarrierSeats

Seat sit enforcement

ServerScript

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).

SeatsEnforcementSit

Seat sit enforcement

ServerScript

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.

SeatsEnforcementSit

Mark sold seats (disable)

ServerScript

ServerScript that loads sold seat IDs from the hub events API and disables matching Seat instances so players cannot sit in already-booked seats.

SeatsSit