Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make people have different tools each time they spawn?

Hello, I am working on a FPS project and everyone is by themselves but, I want them to equip different weapons each time they spawn using Lighting. Can you help me with that?

Thanks, S3C

1 answer

✓ Accepted answer
wait()
local plr = game.Players.LocalPlayer
repeat wait(.1) until plr.Character

local weapons = game.Lighting.Weapons:GetChildren()
weapons[math.random(1,#weapons)]:Clone().Parent = plr.Character

This might work, un-tested

NOTE: This would just give them randomized weapons, it still has a chance of picking their past weapon.

This discussion is preserved as it was. New answers, comments, and votes are closed.