generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

onTouched display ScreenGui > Label

Previous Thread :: Next Thread 
SimplyGrammatical is not online. SimplyGrammatical
Joined: 16 Nov 2014
Total Posts: 1421
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
SimplyGrammatical is not online. SimplyGrammatical
Joined: 16 Nov 2014
Total Posts: 1421
25 Mar 2016 10:30 AM
bump


I rarely forum anymore.
Report Abuse
SimplyGrammatical is not online. SimplyGrammatical
Joined: 16 Nov 2014
Total Posts: 1421
25 Mar 2016 10:34 AM
bump2


I rarely forum anymore.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
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
SimplyGrammatical is not online. SimplyGrammatical
Joined: 16 Nov 2014
Total Posts: 1421
25 Mar 2016 11:42 AM
@SummerEquinox
Thanks a whole lot.


I rarely forum anymore.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image