Click doesn't work in local script

Why doesn’t this work? Print doesn’t work. The script is in ServerScriptService

local ClickDetector = game.Workspace.Touch.ClickDetector
local SelectionBox = ClickDetector.Parent.SelectionBox

ClickDetector.MouseClick:Connect(function()
	print("1")
	SelectionBox.Visible = true
end)
1 Like

Local Scripts don’t run in ServerScriptService

First of all you need to put this script in the part that you want to click and it doesnt need to be local

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