Severscript doesnt catch Vector3value changed

iraso

Here’s script using changed function.

ainas

and these are positions of script and vector3value(nadei)
Basically, it should print “engaingo” when that value changed.

solaling

But it doesnt. only prints “engaing” in line 3, which printed when script start.

(value changed completely)

I’m guessing this is because you changed it on the client? This is a server script, so if it is changed on the client it won’t work. Test it again but go to server view when testing.

1 Like


this value changed by another server script in screengui,
but script still not catch that ‘nadei’ value changed

Game almost done. pls someone help me

can you give us the script that does the vector3 change?

It may surprise you, but these are the same, except you won’t get the value back.

ValueBase actually overrides Changed.

local value = Instance.new("NumberValue")
value.Changed:Connect(print)
value.Name = "new" -- nothing
value.Value = 3 -- prints 3

Regardless, this is not your issue.

2 Likes

lavris

It’s in 61 line of table sorting script and working good

table sorting script is also serverscript

An alternative solution would be using :GetPropertyChangedSignal(Property)
This function allows you to see when a specific property has been changed in an instance.

Usage example:

local Orings = script.Parent.nadei

print("engaing")
local function GRANS()
   print("engaingo")
end

Orings:GetPropertyChangedSignal("Value"):Connect(GRANS)

You are able to find the documentation here: Instance:GetPropertyChangedSignal

I pasted yours but not worked…

dangd

decisively, script cant even find value changed