It's in ReplicatedStorage, you have to move it to the PlayerGui. Also, I recommend using debounces and FindFirstChild to make sure it's a player:
local debounce = false
function Shop(hit)
if not debounce then
if hit.Parent:FindFirstChild("Humanoid") then
local clone = game.ReplicatedStorage.VehicleCatalog:Clone()
clone.Parent = game.Players:FindFirstChild(hit.Parent.Name).PlayerGui
deboune = true
wait(5)
debounce = false
end
end
end
script.Parent.Touched:connect(Shop)
Make sure the frame is already visible
2 comments
Seriously? The same thing happens if you throw it in workspace! How about actually give an answer?
I didn't know if it was a value in a model or something. He didn't really give enough information. I assumed there was a changing value that whenever the value changed, a gui popped up. In order for a DECENT answer, he needs to give more information.