Assignment Tracker

Assignments Calendar

Roblox - Creating a Collectable Step-by-Step 04

Visit Wolfman Art








Collectable Script:



local db = true

script.Parent.Touched:connect (function (hit

if hit.Parent:FindFirstChild ("Humanoid") ~= nil then

if db ==true then

db = false

script.Parent.Transparency = 1

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

player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1

end

end

end)



Comments

WolfmanArtist - Popular Posts