#I need help with a map system

1 messages · Page 1 of 1 (latest)

sly cloak
#

how do i make it so that whenever i click the arrows that change the map image the map text below it also changes corresponding to the current image being shown

#

also "map 1" "map 2" "map 3" "map 4" are the names of the images

#

"MapTextLabel" is the name of the text that is meant to get changed

velvet wagon
#

U want to change a map name corresponding to shown image?

sly cloak
#

Yeah

velvet wagon
#

Ur current code doesnt work?

sly cloak
#

Yeah

#

The video I sent was what happens

velvet wagon
#

Well, it changes images on the numbers

#

@sly cloak

#

U have any errors tho?

sly cloak
#

?

inner pawnBOT
#

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

sly cloak
#

Lemme check

#

Nope

#

On paper it should work

velvet wagon
#

Also can u show me ur hierarchy in explorer?

sly cloak
#

But it doesent

sly cloak
#

is this what u mean?

stray hare
#

Add some print statements to each change and check the console whenever you press arrows

#

alr?

velvet wagon
#

Well

#

I have a genue question

#

Is your code inside that Script?

stray hare
#

then we'll see what's working and what's not

inner pawnBOT
#

studio** You are now Level 6! **studio

sly cloak
#

k

velvet wagon
stray hare
#

Oh yeah it has to be a local script LOL

velvet wagon
#

Duh

#

Server won't replicate any changes with UI because they're client sided

stray hare
#

Didn’t notice that

sly cloak
#

oh

stray hare
velvet wagon
# sly cloak oh

Its like saying to a server that it should change UI on his non existing monitor😭

sly cloak
#

yeah its on a localscript now

#

still doesent work

velvet wagon
#

Kay.....

#

U got me there

#

Im bad at UI shi so gimme a moment

sly cloak
#

i asked ai assistant and it said it doesent work because map 1 and all other map arent in the datamodel context

velvet wagon
#

Wait

#

Where are your maps in explorer

sly cloak
#

they are in a different frame under screen gui

velvet wagon
#

Can u show me?

sly cloak
#

the red is where the maps are and the pink is where the text and script is

inner pawnBOT
#

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

velvet wagon
#
local map1 = parent:FindFirstChild("map 1", true)
#

Add true for all of your maps

#

:FirstFirstChild() will look for a child inside of a screengui with a given name, but won't look inside of his children to find something with this name, theofore it will print nil

#

Atleast that's what i think

sly cloak
#

wait a sec

velvet wagon
#

:FindFirstChild() has two arguments to pass

(InstanceName: String, LookRecursively: Boolean)

And if u set this second to true it will look also inside of his children

#

U died bud?

native dragon
velvet wagon
#

LOL

native dragon
stray hare
velvet wagon
stray hare
native dragon
#

Its prolly cause the Image-Asset is invalid roblox uses the name as placeholder i think.

#

That also doesnt make sense cause the names are Map-number evilcat

#

Still its prolly the Image-Asset cause it works no?

velvet wagon
native dragon
#

But still it works or doesn't it?

#

It's just the image not loading correctly

velvet wagon
#

Sure...

#

Wasn't it a problem on binary level tho?

native dragon
velvet wagon
native dragon
#

We can tag this as solvedThumbs

velvet wagon
#

Exactly!Thumbs

native dragon
#

We should defo get s3 for that work

sly cloak
#

but what you said worked

#

so thanks alot man