Goroh_328
Ученик
(144)
1 месяц назад
local plr = game.Players.LocalPlayer
local db = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
if db == true then
db = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
wait(1)
script.Parent.Transparency = 1
wait(300)
script.Parent.Transparency = 0
script.Parent.Parent = plr.Backpack
end
end
end)
либо в StarterGear
local plr = game.Players.LocalPlayer
local db = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
if db == true then
db = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
wait(1)
script.Parent.Transparency = 1
wait(300)
script.Parent.Transparency = 0
script.Parent.Parent = plr:FindFirstChild("StarterGear")
end
end
end)