Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 if Lightning == game.Player.localplayer.leaderstats.Level.Data.Value = 5 then
game.StarterPack.Katana.Handle.Blade.Lightning.Enabled = true
end
Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 if Lightning == game.Player.localplayer.leaderstats.Level.Data.Value = 5 then
game.StarterPack.Katana.Handle.Blade.Lightning.Enabled = true
end
your question is really confusing, because you didnt make all of it code blocks, but um for the "Lightning" variable you dont set and put the value in the variable, so set it after the variable like this:
Lightning = game.Players.LocalPlayer.leaderstats.Level.Data
local player = game.Players.LocalPlayer
Lightning.Value = 5
if Lightning.Value == 5 then
player.Backpack.Katana.Handle.Blade.Lightning.Enabled = true
end
Also, i suggest you dont make changes of the tool in starter pack, because it wont update the tool, so put it in the players backpack and you cant do the variable by its self (idk how to explain it lol). and try to explain it instead of just pasting the script
i couldnt understand that well lol, so idk is this is correct
Local script ?
?
This discussion is preserved as it was. New answers, comments, and votes are closed.
11 comments
can u pls use code blocks, not only one
its rlly confusing
hm ?
Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 if Lightning == game.Player.localplayer.leaderstats.Level.Data.Value = 5 then game.StarterPack.Katana.Handle.Blade.Lightning.Enabled = true end
What are you trying to do?
Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 ??
LifeLeafi dont just highlight a certain script line, make all of it code blocks, because it get really confusing
im trying to make it so if a player is a certan level then particle aka lightning will be enabled
Confusing to me, the equal sign should have a second one behind it like this ==. Everytime I type in your code inside roblox this would fix it.
hm ok so i have a katana in the starter pack and in the katana is the blade in the blade is a particle emitter called lightning now its dissabled but if the player is level 5 it will become enabled ?
DONT USE STARTERPACK