У меня проблема.. мне нужно дописать скрипт так чтобы после того как он был взять появлялся через двадцать секунд.. вот сам скрипт amnt = 0
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if (h~=nil) then
local thisplr = game.Players:findFirstChild(h.Parent.Name)
if (thisplr~=nil) then
local stats = thisplr:findFirstChild("leaderstats")
if (stats~=nil) then
local score = stats:findFirstChild("Хлопок")
if (score~=nil) then
score.Value = score.Value + amnt
end
end
end
script.Parentestroy()
end
end
script.Parent.Touched:connect(onTouched)
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if (h~=nil) then
local thisplr = game.Players:findFirstChild(h.Parent.Name)
if (thisplr~=nil) then
local stats = thisplr:findFirstChild("leaderstats")
if (stats~=nil) then
local score = stats:findFirstChild("Хлопок")
if (score~=nil) then
score.Value = score.Value + amnt
end
end
end
script.Parentestroy()
end
end
script.Parent.Touched:connect(onTouched)