Hello,
I have this follow Coin Script:
`currency = "Coins" -- Change Gold to the currency you want to give amnt = 10 -- Change 50 to the amount of money you want to give debounce = false -- Don't change this
function onTouch(hit) if hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == false then if game.Players:findFirstChild(hit.Parent.Name) ~= nil then local player = game.Players:GetPlayerFromCharacter(hit.Parent) player.leaderstats:findFirstChild(currency).Value = player.leaderstats:findFirstChild(currency).Value + amnt script.Parent.Transparency = 1 script.Parent.CanCollide = false debounce = true math.randomseed(tick()) --To make random randomer wait(math.random(10,20)) script.Parent.Transparency = 0 script.Parent.CanCollide = true debounce = false end end end
script.Parent.Touched:connect(onTouch)`
but now I want that it random spawn on the map and not on fixed positions. How I can do that?
Thanks a lot!