First of all, i want to say that i'm pretty much a beginner when it comes to LUA. I've been trying to make this Rock, Paper, Scissors game, but as you probably read the title... Yeah... That's a better name for it, Isn't it? All that i need done is an outcome(in the way of draw, win, lose).
Here's the code that i am using:
button = game.Workspace.button
one = game.Workspace.Part1
two = game.Workspace.Part2
text1 = one.Text.Text
text2 = two.Text.Text
local Table = {"Rock","Paper","Scissors"}
function rps (chance)
text1.Text = "Loading"
text2.Text = "Loading"
wait(0.5)
text1.Text = "Loading."
text2.Text = "Loading."
wait(0.5)
text1.Text = "Loading.."
text2.Text = "Loading.."
wait(0.5)
text1.Text = "Loading..."
text2.Text = "Loading..."
wait(0.5)
text1.Text = "Loading...!"
text2.Text = "Loading...!"
wait(0.5)
text1.Text =(Table[math.random(#Table)])
text2.Text =(Table[math.random(#Table)])
wait(3)
end
button.ClickDetector.MouseClick:Connect(rps)
Many much thanks, Porw2

1 comment
where did you put the text object?