Forum > Coding >

Game Detection

Posts: 138

Threads: 19

Joined: Nov, 2020

Reputation: 1

Posted

How do I make a script detect the game?

Example; If [gameID] is detected it executes a certain script like on Owl hub ig?

  • 0

:shrug:

davidTube

not inactive

noticed

Posts: 1628

Threads: 83

Joined: Dec, 2018

Reputation: 54

Replied

https://developer.roblox.com/en-us/api-reference/class/DataModel

 

if game.PlaceId == <game id> then

--ur script thing here

end

  • 0

Posts: 138

Threads: 19

Joined: Nov, 2020

Reputation: 1

Replied

  • 0

:shrug:

davidTube

not inactive

noticed

Posts: 1628

Threads: 83

Joined: Dec, 2018

Reputation: 54

Replied

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )