The tables :
ListOfSpells = {"avada kedavra","duro","expelliarmus"}
ColorsN = {"Lime green","Bright yellow","Bright red"}
ColorsNu = {Color3.new(0,170,0),Color3.new(255,255,255)}
The part of script that should get the values from the table:
for Number,inList in pairs(ListOfSpells) do
if SpellName == inList then
Tool.Activated:wait()
functions.CreateSpell(ColorsN[Number],ColorsNu[Number],SpellName,Player)
end
end
The CreateSpell is MainModule function
local functions = require(script.ModuleScript)
Everything works except of the ColorsNu values It should color PointLight to the ColorsNu[Number] value

10 comments
Thank You!
No problem, mark my answer as correct if it worked for you.
I'm trying but I don't know how to xd
Should be an 'Accept answer' button or something along those lines on the right side of my answer
I don't see it
my dude, there should be like a green button or something on the right side of my answer near my name
there is nothing like that I swear
you're looking at this, correct? http://prntscr.com/d3uajv
Yes
http://prntscr.com/d3udsi