#Question about scripting

13 messages · Page 1 of 1 (latest)

slim cairn
#

perhaps elaborate what you are trying to achieve with some visual representation:
for looping, cloning and tweening; yes there are ways you can do each of those

https://create.roblox.com/docs/reference/engine/classes/Instance#Clone
https://create.roblox.com/docs/reference/engine/classes/TweenService
https://create.roblox.com/docs/tutorials/fundamentals/coding-4/intro-to-for-loops

TweenService is used to create Class.Tween|Tweens which are used to
interpolate, or tween, the properties of instances. Class.Tween|Tweens can
be used on any object with compatible property types.

Use for loops to repeat code in this lesson for Roblox Lua. This lesson explains how for loops work and includes practice scripts.

Instance is the base class for all classes in the Roblox class hierarchy.

burnt ridge
#

The result should look like a slot machine

#

I have a UI that tweens to the middle of the screen

#

I need more UIs around the UI that tweens to the middle of the screen

burnt ridge
#

Thats what im trying to figure out

#

Imagine a game wherw you have a button "Spin" that when pressed generates rng based UIs and which one lands in the middle of the screen you win

#

Like a slot machine

#

I created a rng that tweens a predefined winner UI to the middle of the screen

#

I need to add "fake" UIs

#

Like this