Hello , I was doing some scripting , when i was going to clone a local script to a player it didn't work, it dropped NO errors , no infinite yielding and these two are server sided, and the localscript to clone creates a GUI 1
local guitoClone=script.LocalScripts.addRCV:Clone() guitoClone.Parent = plr.Backpack guitoClone.Disabled = false
plr is a player object i tried this to check 2
game.Players.maumaumaumaumaumau.Backpack.ChildAdded:Connect(function() print"hello object" end)
and nothing happened... why does this not work?? #1 , btw the second script loaded FIRST
It probably didn't work because the first script ran before the second one, which meant that by then the object was already inside the backpack, and the script missed the event.
Edit: Also, if the first script is inside a client script and the second script a server script, then due to FilteringEnabled
, the modifications will not replicate to the server and the server will be oblivious to the changes (and therefore the event will not be fired).