So I have this code here
script.Parent.Touched:Connect(function(plr)
local humanoidcheck = plr.Parent:FindFirstChild("Humanoid")
if (humanoidcheck) then
player = game.Players:GetPlayerFromCharacter(humanoidcheck.Parent);
if (player) then
return player.orbfolder.orb1.Value
end
end
Value = plr
end)
if Value == 0 then
player.orbfolder.orb1.Value = player.orbfolder.orb1.Value + 1
end
I want to have the if function checking the value fire upon the touched function returning a value. How would I do this? Thanks!
