What I want to do is when click the part. The camera moves.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
script.Parent.ClickDetector.MouseClick:Connect(function (click)
if click then
print("yes")
ReplicatedStorage._ClickIngredient:FireClient(game.Players:GetPlayerFromCharacter(click.Parent), script.Parent)
end
end)
I’ve tried GetPlayerFromCharacter(click.Parent) and it still giving the same result