Saturday, 30 August 2014

Servers

ROBLOX has fairly recently come out with place API, which allows you to create place instances from a server script in your game. Using this, I am able to create a server for people to play a game in for multiplayer. It's essentially like hosting your own server on an online game, but for free. In this post I'll outline some of the details of the CreatePlaceAsync() API.

CreatePlaceAsync is the call on the AssetService:
game:GetService("AssetService"):CreatePalceAsync(name, templatePlaceId, description)

name is the name you are giving to the new place instance, templadePlaceId is the ID of the place that you are copying to create this new place instance, and description is the description of the new place.

templatePlaceId must be the ID number of a place that is verified for cloning with CreatePlaceAsync.



You have to manually allow a place to be cloned with the API.


This call then returns the ID of the created place, allowing you to teleport the players there with the teleport API.

No comments:

Post a Comment