Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 6 years ago
Edited 6 years ago

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
can u pls use code blocks, not only one User#23365 30 — 6y
0
its rlly confusing User#23365 30 — 6y
0
hm ? LifeLeafi 0 — 6y
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 LifeLeafi 0 — 6y
View all comments (7 more)
0
What are you trying to do? iRoklas 1 — 6y
0
Lightning = game.Players.LocalPlayer.leaderstats.Level.Data.Value = 5 ?? Vulkarin 581 — 6y
0
LifeLeafi dont just highlight a certain script line, make all of it code blocks, because it get really confusing User#23365 30 — 6y
0
im trying to make it so if a player is a certan level then particle aka lightning will be enabled LifeLeafi 0 — 6y
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. NitrousGalaxy 9 — 6y
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 ? LifeLeafi 0 — 6y
0
DONT USE STARTERPACK User#23365 30 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
i couldnt understand that well lol, so idk is this is correct User#23365 30 — 6y
0
Local script ? LifeLeafi 0 — 6y
0
? User#23365 30 — 6y
Ad

Answer this question