Nevermind it turns out it magically works in run or whatever.
So is this solved already? if so make sure to set a post in here as a solution.
I found the solution, it’s the most ■■■■■■■■ solution I’ve ever saw. So I made the loop into a function and just did it like this:
instead of while wait() do
–anti skid script
end
I just did
function antiskid()
end
while wait() do
antiskid()
end
TOP_Crundee123 sort of helped me with his coroutine, and althought it didn’t solve it made me think about the function thingy.
They will work. That’s why you can import services and stuff outside of functions. Modules don’t even have to have a table or a function, they just have to return a value. You can copy and paste a script into a module, add “return false” at the end, and it’ll work once you require()
it.
note: just because i’m saying this works doesn’t mean you should use modules like this
This is slightly unrelated but i’ll mention it anyway: you shouldn’t use wrap like this, you’re creating an extra function for no reason. Instead, do this:
coroutine.wrap(foo)()
that’s what i did lmao, just that i did while wait() because i figured out that it was a replication problem