- What do you want to achieve?
I’m trying to make a vest texture randomizer for my game.
These are the vest variants I came up with. (don’t mind the head placement its some weird glitch that fixes itself in game.)
- What is the issue?
I can’t figure out how to do this… It won’t even print what I tried to.
- What solutions have you tried so far?
Here’s my code that I came up with to test if I could find the vest inside the character. It’s in the Players Service.
Here’s the character layout;
local plrservice = game:GetService("Players")
local function CharacterRandomizer(player)
local char = player.Character
if char then
local vest = char:FindFirstChild("Dark Vest")
if vest then
print(vest)
end
end
end
plrservice.PlayerAdded:Connect(CharacterRandomizer)
If someone could help, I’d greatly appreciate it.
Thanks,
– Luke