local this = game.Workspace.shop1.shopparts.detector local db = false this.Touched:connect(function(hit) print "hit" if hit.Parent:FindFirstChild("Humanoid") ~= nil then print("hit") local char = hit.Parent local plr = game.Players:WaitForChild(char.Name) game.Workspace.CurrentCamera.CFrame = this.Parent.Parent.camparts.cam1.CFrame game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Fixed end end)
It will not even print hit for some reason. Can a local script allow detection of hits?
Assuming you have Filtering Enabled on. Only server Scripts can recognize the Touched event, local scripts cannot.