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

Two requirements For An Action?

Asked by 8 years ago

Hello, I have been having some difficulty's with this script, take a look below. My problem is, is i want it where at level 5 and your class value is Esper then that will happen.

wait(3)

if Player.Data.Level.Value >= 5 then if Player.Data.Class.Value == "Esper" then
W = game.Lighting.AbysallSword:Clone()
W.Parent = script.Parent.Parent.Parent.Backpack

Basically i'm trying to have two requirements for an action, can someone tell me what exactly went wrong with this?

(Btw Class value is a string value in DataSave)

1 answer

Log in to vote
0
Answered by 8 years ago

What you are looking for is known as Operator

There are different types depending upon what you need to do e.g. Logical, Relational or Arithmetic ect.

I think that you should be able to work out what one you need for this task.

Ad

Answer this question