Put the multiplier into the player added.
I have already tried doing that.
Try finding a yt video and do it. I bet there would be a video on it because heaps of games do this.
I looked up a yt video, and I forgot there’s something as gamepass service. lol
Found a Solution.
local Market = game:GetService("MarketplaceService")
game.Players.PlayerAdded:connect(function(player)
Two = Market:UserOwnsGamePassAsync(player.UserId,10970337)
Three = Market:UserOwnsGamePassAsync(player.UserId,10988040)
end)
script.Parent.Head.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player ~= nil then
local PlayerStats = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
local Multiplier = script.Parent.Parent.Parent.Multi
if PlayerStats ~= nil then
local ownstycoon = PlayerStats:FindFirstChild("OwnsTycoon")
if ownstycoon ~= nil then
if ownstycoon.Value == nil then
if script.Parent.Parent.Parent.Owner.Value == nil then
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.Health > 0 then
script.Parent.Parent.Parent.Owner.Value = player
ownstycoon.Value = script.Parent.Parent.Parent
script.Parent.Name = player.Name.."'s Tycoon"
script.Parent.Head.Transparency = 0.6
script.Parent.Head.CanCollide = false
player.TeamColor = script.Parent.Parent.Parent.TeamColor.Value
if Three or Two then
Multiplier.Parto.CanCollide = true
Multiplier.Parto.Transparency = 0
end
end
end
end
end
end
end
end
end)
When Player becomes Owner a X2 Cash block appears. Just like an upgrader.