How to change trail's color based on Item is "MainColor" Value in Module Script

hey did you figure it out yet?

I will write when I found the solution don’t worry I am checking old post about changing colors again

WELP here is the solution if any one wonders.

for _,i in pairs(toolConfig) do
				if playerON.Inventory.EquippedTool.Value == i.Name then
                     color1 = i.Color1
					color2 = i.Color2
				end	

it works fine just except one thing:it doesn’t work if you change the tool in game
let’s say you have Purple tool, trail will be Purple color, and if you have red tool it will become red. But if I change the tool in game the script still things EquippedTool is purple so it won’t work. and welp this is a problem of a another question

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.