this script makes click detectors for all the models in the items folder in the workspace. it works fine but the click detectors it clones don’t do anything at all. any help would be much appreciated 🫡 thank you
local event = game.ReplicatedStorage.Town.MakeClickDetectors
event.OnServerEvent:Connect(function(player)
for i,v in ipairs(game.Workspace.items:GetChildren()) do
local clickThingy = game.ReplicatedStorage.Town.ClickDetector:Clone() -- clones it from replicated storage
clickThingy.Parent = v -- puts detector inside model
clickThingy.itemClicked.Disabled = false -- enables the script inside the detector
end
end)
yep. thats whats inside the script that is in the click detector. it won’t even recognize when i hover over it tho. like it wont even show the cursor icon