local p=script.Parent local A=false p.Touched:connect(function(l)if l.Parent==nil or A==true then return end local G=game.Players:GetPlayerFromCharacter(l.Parent)if G~=nil then A=true pcall(function()_G.awardPoints(G,math.random(5))end)p:remove()end end)
-- Talybalyho123
local coin = script.Parent
local enabled = false

coin.Touched:connect(function(part)
	if part.Parent == nil or enabled == true then
		return
	end

	local player = game.Players:GetPlayerFromCharacter(part.Parent)

	if player ~= nil then
		enabled = true

		pcall(function()
			_G.awardPoints(player, math.random(5))
		end)

		coin:remove()
	end
end)
