How do you make a text appear when you click something?
Asked by
3 years ago Edited 3 years ago
I have tried to make a text when a door is clicked but now i have decided that i want to clone a screengui instead can someone give a script. I tried to use the clone() function before and has not worked. I have even used this and still it does not work.
this is the script
01 | script.Parent.Text.Value = false |
02 | local value = script.Parent.Text.Value |
04 | workspace.doortext.ClickDetector.MouseClick:Connect( function () |
05 | if game.StarterGui.ScreenGui.Value.Value = = true then |
06 | if workspace.Breakabl 2. Anchored = = true then |
07 | if value = = false then |
09 | script.Parent.Sound:Play() |
10 | script.Parent.TextLabel.Text = "I" |
12 | script.Parent.TextLabel.Text = "I t" |
14 | script.Parent.TextLabel.Text = "I th" |
16 | script.Parent.TextLabel.Text = "I thi" |
18 | script.Parent.TextLabel.Text = "I thin" |
20 | script.Parent.TextLabel.Text = "I think" |
22 | script.Parent.TextLabel.Text = "I think I" |
24 | script.Parent.TextLabel.Text = "I think I c" |
26 | script.Parent.TextLabel.Text = "I think I can" |
28 | script.Parent.TextLabel.Text = "I think I can o" |
30 | script.Parent.TextLabel.Text = "I think I can op" |
32 | script.Parent.TextLabel.Text = "I think I can ope" |
34 | script.Parent.TextLabel.Text = "I think I can open" |
36 | script.Parent.TextLabel.Text = "I think I can open t" |
38 | script.Parent.TextLabel.Text = "I think I can open th" |
40 | script.Parent.TextLabel.Text = "I think I can open thi" |
42 | script.Parent.TextLabel.Text = "I think I can open this d" |
44 | script.Parent.TextLabel.Text = "I think I can open this do" |
46 | script.Parent.TextLabel.Text = "I think I can open this doo" |
48 | script.Parent.TextLabel.Text = "I think I can open this door" |
50 | script.Parent.TextLabel.Text = "" |
51 | script.Parent.Sound:Stop() |