#Please help

53 messages · Page 1 of 1 (latest)

cunning knoll
#

@sudden kite
Based on the screenshot, I assume that's because your script doesn't try loading in an inventory because it couldn't find one in the save (which doesn't exist).
So when it saves, it'll create one in the save, which will work the next time they load.

Just so I can confirm this, send the loading function portion of your script via message

` ``lua
type this but remove the space, then copy+paste your code under it.

Should look like this:

local TestinVariable = true
rare onyxBOT
#

studio** You are now Level 1! **studio

upper lantern
#

U can’t have a if statement in a .Value =

sudden kite
#

So what should I do?

upper lantern
#

Just have the if statement outside of it not inside the .Value

sudden kite
#

Sorry I don't undestand. I sarted to script a week ago.

deft wing
#

open it

sudden kite
#

ok, wait.

deft wing
#

inventory isn't inside

upper lantern
deft wing
#

¯_(ツ)_/¯

#

player.inventory.EquipedTool.Value = if returnValue.Inventory and returnValue.Inventory.EquipedTool then returnValue.Inventory.EquipedTool else "Pencil"

sudden kite
deft wing
#

send the folder "inventory"

sudden kite
#

Sorry, I don't undestand.

deft wing
#

while playing go in the explorer -> players -> youname -> open the folder inventory and send a screenshot here

sudden kite
deft wing
#

player.inventory.EquippedTool.Value = if returnValue.Inventory and returnValue.Inventory.EquippedTool then returnValue.Inventory.EquippedTool else "Pencil"

sudden kite
rare onyxBOT
#

studio** You are now Level 2! **studio

sudden kite
deft wing
#

add a" returnValue.Inventory" after the if

sudden kite
#

I am stupid, where do I add it?

deft wing
#

after this if

#

l97

sudden kite
#

ok.

deft wing
#

uh

#

not between "

#

and add a and

sudden kite
#

this?

deft wing
#

without " "

sudden kite
#

?

#

this

#

O

#

It works.

#

NO WAY, THANK YOU

upper lantern
deft wing
#

?

#

The if ?

deft wing
#

(you do t need end )

upper lantern
#

and also if u have a if statement it also needs a end

deft wing
#

Not in a variable