roblox oyuncunun gamepass olup olmadığını kontrol edin
local id = --gamepass id here
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,id) then
--do what you want to do in here
end
end)
işlev
funcion name_of_funtion(){
}
bir işlev nasıl yapılır
function myFunction(){
console.log('hi')
}
myFunction()
İŞLEV
[PHP]
<?php
function helloWorld() {
echo "Hello World";
}
helloWorld();
?>
[Python]
def helloWorld():
print("Hello World")
helloWorld()
[JavaScript / JS Normal Function]
function helloWorld() {
console.log("Hello World!");
}
helloWorld()
[JavaScript / JS Dynamic, Arrow Function]
const helloWorld = () => {
console.log("Hello World!");
}
helloWorld()