#Team play is not running my scripts

9 messages · Page 1 of 1 (latest)

ivory holly
#

Hey there! I'm new to making games on roblox. But for some reason when I use it solo my scripts and game work fine However, When I use Team create they do not. Any ideas on why that might be happening? Thank you for any answers!

thick igloo
ivory holly
thick igloo
#

show me a example of a script that won't work

#

normally if a script doesn't work in teamcreate its because it's corrupted or it has something to do with animation thats private

ivory holly
#
local GamepassID = game.ReplicatedStorage.SignGamepassID:WaitForChild("GamepassID").Value

script.Parent.Triggered:Connect(function(player)
    if not game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, GamepassID) then
        game:GetService("MarketplaceService"):PromptGamePassPurchase(player, GamepassID)
    else
        if not player:WaitForChild("Backpack"):FindFirstChild("Sign") or player.Character:FindFirstChild("Sign") and game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, GamepassID) then
            local NewSign = game.Lighting.Sign:Clone()
            NewSign.Parent = player:WaitForChild("Backpack")
            NewSign.Server.Disabled = false
        end
    end
end)

game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(player, productID, isPurchased)
    if productID == GamepassID then
        if isPurchased then
            if player then
                if not player:WaitForChild("Backpack"):FindFirstChild("Sign") or player.Character:FindFirstChild("Sign") then
                    local NewSign = game.Lighting.Sign:Clone()
                    NewSign.Parent = player:WaitForChild("Backpack")
                    NewSign.Server.Disabled = false
                end
            end
        end
    end
end)
#

sorry it took so long!

thick igloo
#

are there any error messages

ivory holly
#

no there arent any error messages 😦