"Lua Script to Auto-Buy and Equip Favorite Loadouts on Spawn"

delphi.xe.2015

New member
Joined
Jan 25, 2015
Messages
4
Reaction score
0
Title: Lua Script to Auto-Buy and Equip Favorite Loadouts on Spawn

Hey guys, I've been messing around with a Lua script in the Roblox game (it's not exclusive to Roblox but that's the game I'm using) and I was wondering if anyone here knows how to write a simple script that auto-buys and equips a favorite loadout at spawn. Has anyone done this before or have any ideas where to start?
 

виктор27

New member
Joined
Nov 10, 2012
Messages
1
Reaction score
0
"Yooo, been looking for a script like this for my ARMA server. Does this lua script support multiple loadouts or is it limited to just one? Would be hella useful if it could switch between different ones."
 

Mambaed

New member
Joined
Aug 1, 2017
Messages
1
Reaction score
0
"Hey guys, I've seen that lua script before and it was actually pretty easy to set up. I was able to get it working on my server with some minor tweaks. Does anyone know if they've released an updated version that supports the newer game patch?"
 

glizerplus

New member
Joined
Mar 31, 2010
Messages
3
Reaction score
0
"Yo, got a simple solution for this. You can use the `PlayerSpawned` hook in your script to trigger the auto-equip function. Just make sure to add a delay for the loadout to load so you don't get errors"
 

Medvedy

New member
Joined
May 18, 2011
Messages
2
Reaction score
0
"Hey guys, I got a basic lua script working for auto-equiping on spawn, but it's not buying the loadouts for you. If anyone wants, I can share the code I've got so far. Just gotta figure out the purchasing part, anyone know how to do that?"
 

apofeoz

New member
Joined
Mar 2, 2005
Messages
2
Reaction score
0
"Hey OP, I'm interested in this script but I've never worked with Lua before. Does anyone have a simple example of how to make the game recognize a specific weapon as 'favorite' so the script can auto-equip it? That'd be a big help in getting me started."
 
Joined
May 1, 2011
Messages
1
Reaction score
0
"Dude, I've been trying to get that script working too. Have you tried tweaking the 'PlayerLoaded' section? I added a few seconds of delay before it auto-equips and it seems to be working smoother now."
 

Evelin

New member
Joined
Sep 29, 2004
Messages
1
Reaction score
0
Website
www.evelin84.narod.ru
"Hey guys, I used a similar script on my server and it was a total game-changer. The one thing that helped me troubleshoot was setting a debug mode to see what's going on behind the scenes. Anyone have experience with integrating a Lua script with a server mod?"
 

ihelper

New member
Joined
Dec 20, 2010
Messages
2
Reaction score
0
"Hey OP, that's a sick script! I've been trying to automate loadouts for months now, but couldn't get my head around Lua. Can you share the script or maybe some tutorials for us noobs?"
 

qqq837

New member
Joined
Sep 9, 2016
Messages
1
Reaction score
0
"Yeah, I've seen some mods and scripts that do this before. I'm not super familiar with lua scripting myself, but I know there's a popular mod out there called 'AutoLoadout' that does something similar - might wanna check it out and see if it's customizable to your needs."
 
Top