#Insert system

1 messages · Page 1 of 1 (latest)

vagrant sonnet
#

In short. This Insert system ensures that all elements from folders are moved to the right places. This is necessary so that the systems work across different places. But the problem is that for some reason my script can't find the GUI: Infinite yield possible on 'Players.MishaSem73.PlayerGui:WaitForChild("RaceGui")' - Studio.
But if this Insert is in the place from the start, everything works fine.

#

i insert the racing system simply by the Adonis command :ins (Model ID)

vital yarrow
#

well if you check in the explorer is the racegui in the player's gui

ivory dagger
#

Because your inserter on run time is putting the ui in starter gui

#

When your code is looking inside your player gui

#

It works when yoy have it in before running because starter gui is automatically replicated to all players who join

vagrant sonnet
#

so i should just rejoin to the server

ivory dagger
#

Yeah if the model is inserted, then a player joins, it would he replicated to that player

#

I would consider that bad code design but I guess it is the easiest way to do things.

vagrant sonnet
#

Im not a coder at all, sry if i look a lil bit stupid

ivory dagger
#

It would be better if the code the looks for the ui can fix itself by inserting the ui into the player itself. So do a FindFirstChild

#

If its nil then insert the ui into the player, then assign it, if it isnt nil then continue on