#Dumb question, perhaps, but it wont work

12 messages · Page 1 of 1 (latest)

tulip osprey
#

local function Defend()
## Function, i tried to make just print(1) and it still doesnt work
end

Active:GetPropertyChangedSignal("Value"):Connect(Defend)

Yes, i've cheaked that value actually exist
Yes, i've cheaked if way to value is right
Yes, i've cheaked if value actually changed on server
Yes, i've tried making new scripts and move to diffrend scripts that particular part
Yes, i've dont almost everything that can be, this should work perfectly, it does not show any errors, but still wont work. Event doesn't work. That's it, for some reason if i use this or .changed this doesn't fire the event function.... ehh please help :(

viral ferry
#

what is active

tulip osprey
#

Sorry forgot to write that

#

it is set earlier, but i've cheaked and it's set correctly

I've also tried to just make ObjectThatHaveValue.Value.Changed......

#

yet

#

it didn't work either

wild root
#

is this a local script

tulip osprey
#

-# (i should have wrote a little more on what i've tried already)

wild root
#

post code and post explorer

tulip osprey
#

Ahem.... eh... sorry for wasting yr time people

I swear to god it didn't worked for like 40 minates of me trying to fix it. I was desperate and went there. While getting screenshots it.... ehh at some point just started working and i've get why it didn't worked before

Apperently if part cant collide and is inside another part2 inside replicated storage, it will not be clonned with everything else of part2, when it is put intro workspace, and that particular code was inside that part, which wasnt collidable and in result wans't clonned from replicated storage

Again, apologies for wasting your time, and thanks for interest in helping me