ClickDetectors suddenly stopped working

In my game currently for testing purposes you can choose weapons/abilities/enchants by clicking on button, that is spawned by each stand separately with this script (weapon buttons):

local last =,4.5,0),,4.5,0)+script.Parent.CFrame.LookVector)+script.Parent.CFrame.LookVector*0.6
local folder = game.ReplicatedStorage.Weapons

for i,v in pairs(folder:GetChildren()) do
	local p = game.ReplicatedStorage.Misc.BTNTmp:Clone()
	p.CFrame =,1.2,0)
	p.Name = v.Name
	p.SurfaceGui.TextLabel.Text = v.Name
	p.Parent = script.Parent
	last = p.CFrame

But it doesn’t matter, what matter is that i did not touch anything and they just stopped reacting on my clicks. Today i just joined game and it doesn’t work no more, doesn’t even print if i clicked. While yesterday everything was working fine.

You can see clickdetector script on video.

Nevermind, i am dumb, i’ve made a mistake. Since my dynamic weather system creates wet layers for every part on map, it did create wet layer on buttons, so click detectors couldn’t react to my click. This is the solution.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.