#Team play is not running my scripts
9 messages · Page 1 of 1 (latest)
what kind of script are you using
Its a variety of scripts if im understanding your question correctly. Sorry im very new to this! It works perfectly solo
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
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!
are there any error messages
no there arent any error messages 😦