|
| 25 Mar 2016 10:25 AM |
So, I want to make a script in which once a player touches a part, a text label is displayed on the screen for ~5 seconds, then disappears. How would someone do that?
Outline/Idea I have: onTouched (parent) find workspace.screengui.textbottomintro1 wait(5) destroy workspace.screengui.textbottomintro1 end
I rarely forum anymore. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2016 10:30 AM |
bump
I rarely forum anymore. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2016 10:34 AM |
bump2
I rarely forum anymore. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2016 11:25 AM |
local Screen = Instance.new("ScreenGui") Screen.Parent = game.Lighting Screen.Name = "Set" local tex = Instance.new("TextLabel") tex.Parent = Screen tex.Text = "Whatever the label should say goes here" tex.Size = UDim2.new(1,0,1,0)
script.Parent.Touched:connect(function(Player) if Player.Parent:FindFirstChild("Humanoid") ~= nil then local set = game.Lighting.Set:Clone() set.Parent = game.Players[Player.Parent.Name].PlayerGui wait(5) set:Destroy() end end)
You're welcome.
|
|
|
| Report Abuse |
|
|
|
| 25 Mar 2016 11:42 AM |
@SummerEquinox Thanks a whole lot.
I rarely forum anymore. |
|
|
| Report Abuse |
|
|