Categories > Coding > Lua >

Running script upon rejoin

New Reply

Posts: 7

Threads: 4

Joined: Mar, 2025

Reputation: 0

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 

queue_on_teleport()
but when i want to runa s cript it gets stuck and dosent do it
  • 0

  • Comment

WetWipes

Professional Idiot

vip

Posts: 145

Threads: 32

Joined: Sep, 2020

Reputation: 14

Replied

You cant unless its in the auto-execute folder, simply not possible due to how executors work.

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

  • 0

  • Comment

Open to help anyone with anything, DM me on discord :)

Posts: 576

Threads: 52

Joined: Oct, 2022

Reputation: 25

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

  • 0

  • 0

  • Comment

Languages - C++, C#,Javascript, HTML, CSS, Lua ,Xaml, Python

https://dsc.gg/hackerpluto

Login to unlock the reply editor

Add your reply

Users viewing this thread:

( Members: 0, Guests: 2, Total: 2 )