(First off, I dont know why the original was deleted...) And no, the output shows nothing...
local toolname = "Luger, Colt 45"
script.Parent.Touched:connect( function(hit)
if hit.Parent then
local player = Game.Players:GetPlayerFromCharacter(hit.Parent)
if player and not player:FindFirstChild("No") then
if player.Character:FindFirstChild(toolname) then
local gui = player.PlayerGui.StoreRobberyGUI
local no = Instance.new("IntValue", player)
no.Name = "No"
Spawn(function()
wait(10)
no:Destroy()
end)
end
end
end
end)
I put this in the brick that I needed to touch it, the StoreRobberyGUI is the actual name of the GUI, but when I touch the brick holding one of the guns, it doesn't appear...
