local this = script.Parent.Parent.detector
local db = false
this.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
local char = hit.Parent
local plr = game.Players:WaitForChild(char.Name)
local cam = game.Workspace.CurrentCamera
cam.CFrame = this.Parent.Parent.camparts.cam1.CFrame
cam.CameraType = Enum.CameraType.Scriptable
cam.CameraSubject = this.Parent.Parent.camparts.cam1
-- Create a camera change, a close button to that and a way to detect if the shop is open, Be Patient :) it will take a while --
end
end)
I need it to be a server script to detect a player touching it but also i need the player who touched its camera to change please help.
