So i have a script and when you touch a block, it will fire an event and there is a local script in StarterGui and the local script will change the camera position of all players to like a shop thingy and this happens for all players and i only want it to happen to the player that touches the part, is there a way i can do that? Please help me lmoa
Server Sciript which is in the part which fires the remote event:
script.Parent.Touched:Connect(function()
local event = game.ReplicatedStorage.Events:FindFirstChild("OpenVestShop")
event:FireAllClients()
end)
Local Script in the StarterGui
game.ReplicatedStorage.Events.OpenVestShop.OnClientEvent:connect(function()
local plr = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
local char = plr.Character
repeat wait()
cam.CameraType = Enum.CameraType.Scriptable
until cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = workspace.LifeJacketShop.ShopCameras.ShopCam1.CFrame
end)
Please post an answer! Please anything will help me ;)

2 comments
Thanks :DDDDD
Nice, worked for me too.