Trying to have my script under a part in the workspace change the value of a local script under Replicated Storage when touched. I can tell it's being touched because I added a lil print function to make sure. But the script isn't disabled unless I manually check it off in the studio.

local cd = script.Parent.ClickDetector

cd.MouseClick:connect(function()
	print "touched!"
	game.ReplicatedFirst.CFrameV4Beta.Disabled = true
end)

2 comments

0

is CFramev4Beta a localscript?

0

and localscripts dont run in replicatedfirst.. thats for loading guis