So I have a script that generates some values in replicated storage, with player name as a suffix, and it also generates a script to ServerScriptService, the script it generates in the server script service can't access the values in replicated storage, I tried using wait for child instead of find first chil it said infinite weild possible, I tried waiting 3 seconds at the beginning of the script, the script didn't even work :_: can someone please help? Thanks!
#Can't find a generated folder in ReplicatedStorage
1 messages · Page 1 of 1 (latest)
** You are now Level 3! **
Show script
The script it copies
Can you show me how to do that? Syntax?
I did
3 of '
Type lua after
Press enter
Paste script
And close it w another 3 '
Anyways if you create an instance on the client only the client can see it also you have to add a bracket when combining text w something else
So you can't just var = "text" .. othervar
It has to be ("text".. othervar")
Only thing you can change on the client that reflects on the server is humanoid stuff like speed or jump power i think
Oh alr in discord, I understood now mb ehm xD, I had to upload it as a file because it was too large, but you dont need to download it, you can just preview it
Wdym create an instance on the client? Like in a local script?
oh
Yes
Anything created in a local script the server can't see
Oh, but still how do I fix the problem ;-; can you please help me
is this ai?
lol lua local Players = game:GetService("Players") local Player = Players.LocalPlayer
and
local ResetScriptFolder = Instance.new("Folder")
ResetScriptFolder.Name = "DealtDamageResetScript-" .. Name
ResetScriptFolder.Parent = ServerScriptService```
in the same script.
i really hope that's not ai, coz if it is yall proper cooked 💀
this is the only incorrect thing you said everything else was 👌
;compile lua lua local othervar = " and more text" local var = "text" .. othervar print(var)
Program Output
text and more text
.pyrofire | lua | lua-5.4.7 | wandbox.org
What! I thought you did need to do that
preference 🤷
and sometimes it matters if order matters like doing math operations in a specific order though thats kinda rare to happen ;p
Half AI and half not, I made it first then I made some mistakes, so I asked AI for help
wdym in the same script, I didn't really understand honestly
Am I cooked rare or medium well?
.LocalPlayer only exists on the client not the server, and serverscriptservice is only useful to the server. it wants to be both 
Ohh, The generating script was in Character Scripts folder if I didn't forget btw
So the scripts generates some values in replicated storage, and copies this second script
But the problem is that this secnod script can never find the values in replicated stoarge, and I am not sure why or how or whats behind this but it doesn't work at all if I use a wait(#) function
you can't vibe code your way out of a http://xyproblem.info
gonna have to do it the hard way at that point 
Oooh, Ye I don't have any guarantee that my code below it will work, but I wanted to fix that issue, I kept searching but couldn't find a soluton so opened a thread here for help. After I fix it, I was going to test and see if there are any other issues, then I would probably be surprised with other issues maybe but then fix them
Anyways, let's ignore the code for now, but first, why couldn't it find that folder? As a pro scripter, I guess it's common knowledge for you, right? xD
Could it be that when I used wait(#) the code actually ran and it was broken that's why nothing happened?
if there are other issues and you're struggling with this one, you're probably going to struggle with those ones too. this is why ai no good.
i'm not even going to bother to look further than the script being a server script and a localscript at the same time. all normal logic goes out of the window at that point.
and in startercharacterscripts to boot.
you can't vibe code your way out of this with ai. either learn how to code https://create.roblox.com/docs/en-us/tutorials/fundamentals/coding-1/coding-fundamentals or hire someone #👷︱for-hire. or maybe someone else can help your ai generate better code idk 🤷
Alright thank you, also btw remember to be human rules doesn't mean don't use ai but don't spam pinging people for help right? xD