Here's my script;
local Coin = script.Parent
local Owner = Coin.Parent:WaitForChild("Owner")
local MiningSet = Coin.Parent
game.Players.PlayerAdded:connect(function()
wait(10)
while true do
wait(1)
local CloneCoin = Coin:Clone()
local Player = game.Players:FindFirstChild(Owner.Value)
if not Player then
MiningSet:Destroy()
else
wait(1)
Player:WaitForChild("PlayerStatus").Coins.Value = Player:WaitForChild("PlayerStatus").Coins.Value + 1
end
end
end)
The Owner.Value is BlackOrange3343. When I join the game and wait it just destroy's it self. Even though the player is in the game.

1 comment
Thanks