Greetings. I am trying to enchant a sword in such a way that when I say a spell the sword lights up on fire.
I've tried to figure it out but I just can't,so I'll need help since i'm rather new to scripting. Here is an example of what I am trying to do:
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg=="TheChattedSpell" then
f=Instance.new("Fire",plr.LinkedSword)
f.Fize=10
f.Color=BrickColor.new("Lime green").Color
f.SecondaryColor=BrickColor.new("Lime green").Color
end
end)
end)
Any help would be very appreciated! Btw,could I somehow do this by putting a LocalScript in the sword? |