Hello, I have been using an anchor button script for a long time which does its job, partially - to freeze the vehicle. The scripts either anchors or disables the anchor for a part inside the bus. The problem is that when I jump out of the bus, the script(or the button, I do not know exactly) does not work anymore and I have to enter the car again for like 2 times in order to make it work again. I saw in output an error that says:

Network Ownership API cannot be called on Anchored parts or parts welded to Anchored parts.

I done some research on the internet and I realized that the scripts needs to be either rebuilt or modified but I have no idea how to do it. Here is the source code. Any help is welcomed. Explorer view: https://imgur.com/dyc5XWO

Brake = script.Parent.Value.Value
BrakeStatus = script.Parent.Status.Value
script.Parent.MouseButton1Click:connect(function()
	if BrakeStatus == false then
		
		script.Parent.Dunga.BackgroundColor3 = Color3.new(0.501961, 1, 0)
		Brake.Anch.Anchored = true
		BrakeStatus = true
	
	elseif BrakeStatus == true then
		
		script.Parent.Dunga.BackgroundColor3 = Color3.new(0.666667, 0, 0)
		Brake.Anch.Anchored = false	
		BrakeStatus = false	
	end	
end)

1 comment

0

you can change ownership to the server/player for a few seconds as a last resort.