Categories > Coding > Lua >
Running script upon rejoin
Posted
In my script i have a rejoin button and id want it to automatically just reload the script unpon rejoin instead of having to re run the script manually and not in autoexec,
would anyone have a code example?
using
but when i want to runa s cript it gets stuck and dosent do it
Cancel
Post
Replied
You cant unless its in the auto-execute folder, simply not possible due to how executors work.
Cancel
Post
Open to help anyone with anything, DM me on discord :)
Replied
I saw infinite yield managed to do it successfully. But anyways, queue_on_teleport is one way to do it. The simple and the best way for sure.
Comments
wrdyz 0 Reputation
Commented
i did get the idea from it but didnt do it the same way but yeah def works
Cancel
Post
Languages - C++, C#,Javascript, HTML, CSS, Lua ,Xaml, Python
https://dsc.gg/hackerpluto
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Comments
wrdyz 0 Reputation
Commented
well i found a way without auto exec with queue on teleport so yeah it does work
0
WetWipes 14 Reputation
Commented
Please enlighten me because it'd be news to me, can u show an example or part of the script here?
0
wrdyz 0 Reputation
Commented
so basically all i did was write a loadstring to a created file in the workspace folder and queue_on_teleport() the file so anytime i serverhop the script auto loads
0