Whenever I change the owner value of the car, the name does not update. No errors display in output, the print doesn’t even fire for a value changing. Here is the updater code:
script.Parent.Owner:GetPropertyChangedSignal("Value"):Connect(function()
local pname = script.Parent.Owner
print("e")
if game.Players:FindFirstChild(pname.Value) then
local player = game.Players:FindFirstChild(pname.Value)
script.Parent.Name = "".. player.DisplayName .."'s car"
end
end)
And here is the code changing the owner value:
local newgun = fcar:Clone()
newgun.Parent = workspace.Map.Misc.cars
newgun.Owner.Value = ftarget.Name
newgun:PivotTo(char:GetPivot() + Vector3.new(0,3,-7.5))
I can elaborate as necessary. When I used prints for the owner value being set, it did run the print but no updater print.