Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

please help with this script says then exspected near '=' ?

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

11 comments

0

can u pls use code blocks, not only one

0

its rlly confusing

0

hm ?

0

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

0

What are you trying to do?

0

Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 ??

0

LifeLeafi dont just highlight a certain script line, make all of it code blocks, because it get really confusing

0

im trying to make it so if a player is a certan level then particle aka lightning will be enabled

0

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.

0

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 ?

0

DONT USE STARTERPACK

1 answer

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

3 comments

0

i couldnt understand that well lol, so idk is this is correct

0

Local script ?

0

?

This discussion is preserved as it was. New answers, comments, and votes are closed.