local partToTouch = game.Workspace:FindFirstChild("partNameHere");
local GUI = partToTouch:FindFirstChild("GUINameHere");
local debounce = false;
partToTouch:connect(function(hit)
if debounce == false then
debounce = true
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent);
local playerGUI = player:FindFirstChild("PlayerGui");
local clone = GUI:clone();
clone.Parent = playerGUI
wait(3)
partToTouch:Destroy()
end
wait(1)
debounce = false
end
end
Life is short, so grip it and rip it. |