Please help me with that
do you have any errors/warnings on the output? Something like
Infinite yield possible on
No, there isn’t anything in the output
I asked that in your original post. Try adding prints everywhere and see where it’s stops.
(posting your code here so I don’t have to switch pages)
plr:WaitForChild("Curses").DarkLight:GetPropertyChangedSignal("Value"):Connect(function()
if plr.Curses.DarkLight.Value == true then
local CloneText = game.ReplicatedStorage.CurseTitle.DarkLight:Clone()
CloneText.Parent = char:WaitForChild("Head"):WaitForChild("Header"):WaitForChild("Container"):WaitForChild("Username")
There isn’t a place where the script stops, I have tried multiple things and the only place where it can stop is right at this one, but It doesn’t stop there too, since everything I try to put there works except cloning
That’s weird since your code is correct.
Other solutions
- is the
script.Archivableset to false - is the
script.Enabledset to true
make a function
local function Check1()
if plr.Curses.DarkLight.Value == true then
local CloneText = game.ReplicatedStorage.CurseTitle.DarkLight:Clone()
CloneText.Parent = char:WaitForChild("Head"):WaitForChild("Header"):WaitForChild("Container"):WaitForChild("Username")
end
end
Check1()
plr:WaitForChild("Curses").DarkLight:GetPropertyChangedSignal("Value"):Connect(Check1)
Nope, it doesn’t do anything, though Darklight is Archivable and the script is Enabled
do you mean false? the script will cease to exist if its set to true
It is set to true. I tried making the script clone the textlabel to the character by making the process of cloning the Header to the character’s head in the same script and somehow that didn’t work too
is the clonetext even visible
Yeah, it is visible.
WHy does dev forum want characters for a post aah
check the explorer, it must be somewhere in that head
I checked, It isn’t. I tried it with workspace, pasting it in the same folder, nothing
Update: I tried all that on a local script and there is Infinite Yield on Container
put math.huge on the 2nd parameter of every WaitForChild like
:WaitForChild(Parameter1, math.huge)
It worked on the Local Script!
Unfortunately, It doesn’t work on the server script with the same line of code
Now there isn’t anything in output at all
Did you set the value on the client side?
Oh I’m stupid, Thank you so much for helping me!