I have tried many other codes others have offered me but non have worked for an ontouched shop. This is my script:
local taken = false
script.Parent.Touched:Connect(function(hit)
if hit then
if hit.Parent:FindFirstChild("Humanoid") then
if taken == false then
taken = true
local plr = players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.Gui:FindFirstChild("Shop"):Clone().Parent = plr.PlayerGui.Shop.Frame
taken = false
end
end
end)

1 comment
It is still not working