Roblox Premium Rooms
Increase Premium playtime by offering them an exclusive room, using the API. You can download the final plugin files at the bottom of this page.
Setting up your Plugin
return{
['Enabled'] = true; -- Is this plugin enabled?
['Function'] = function(API)
-- Your code goes here
end}Checking in on spawn
game.Players.PlayerAdded:Connect(function(Player)
coroutine.wrap(function() -- This runs the function in a seperate thread.
repeat wait(1) until Player.Character -- Waits for the Player to spawn
if Player.MembershipType == Enum.MembershipType.Premium then
API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
else
-- You could show a pop up saying the player can get access
-- to an exclusive room if they purchase Roblox Premium.
end
end)()
end)
--If the player buys premium while in-game, we should assign them a room.
game:GetService('Players').PlayerMembershipChanged:Connect(function(Player)
API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
end)Checking in on button click
Last updated