Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a gui with the thing that been selected. Can someone help???

Hey i have a problem. The problem is that i want to make gui say whats been selected. Heres the code i use(also i want to use another script to see if this work):

local dis = game.ReplicatedStorage.sCRIPTdIS:GetChildren()
	dischosen = math[math.random(1,#dis)]
	if dischosen == script then dischosen.Disabled = false

1 answer

Dischosen is the thing that is chosen, you can make a text label display what 'dischosen' is, although you need to be more descriptive.

local dis = game.ReplicatedStorage.sCRIPTdIS:GetChildren()
    dischosen = math[math.random(1,#dis)]
    if dischosen == script then dischosen.Disabled = false
print(dischosen)
script.Parent.Text = dischosen -- Just some examples

This discussion is preserved as it was. New answers, comments, and votes are closed.