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 » Scripters
Home Search
 

Re: anyone know how to make a gui when u touch a brick. READ MOR

Previous Thread :: Next Thread 
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 11:41 AM
WHen you touch a brick and a gui pops up then when u move away it goes away


100
Report Abuse
NilLogic is not online. NilLogic
Joined: 08 Apr 2016
Total Posts: 1369
30 Apr 2017 11:41 AM
I hope that the link(s) below will help answer your question.

wiki.roblox.com/index.php?title=Intro_to_GUIs

I am just a friendly bot trying to help you, I will get smarter!
Feel free to suggest links, the current config can be found on pastebin: aiudMAhN
Join the fan group: https://www.roblox.com/My/Groups.aspx?gid=3201548
Report Abuse
graveyardposse is not online. graveyardposse
Joined: 23 Oct 2008
Total Posts: 2565
30 Apr 2017 11:43 AM
remote event
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 11:47 AM
Use a LocalScript and magnitude.

http://wiki.roblox.com/index.php?title=Magnitude
http://wiki.roblox.com/index.php?title=Conditional_statement
http://wiki.roblox.com/index.php?title=Conditional_statement&redirect=no
http://wiki.roblox.com/?title=Loops


~MightyDantheman~
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 11:48 AM
can someone make it for me? il pay 2k robux


100
Report Abuse
graveyardposse is not online. graveyardposse
Joined: 23 Oct 2008
Total Posts: 2565
30 Apr 2017 11:49 AM
@mighty he said touch, magnitude was never mentioned
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 11:50 AM
well i mean when u walk near it.


100
Report Abuse
graveyardposse is not online. graveyardposse
Joined: 23 Oct 2008
Total Posts: 2565
30 Apr 2017 11:50 AM
is it near or on it?
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 11:52 AM
I want ti so when u walk near it the gui opens. but when u walk away it closes. i dont want it to have to have a closed button


100
Report Abuse
graveyardposse is not online. graveyardposse
Joined: 23 Oct 2008
Total Posts: 2565
30 Apr 2017 11:54 AM
add me to the TC
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 11:55 AM
make it in ur own and then u can make it a free model and il take. and u can take offsale


100
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 12:03 PM
--Put this directly inside of the ScreenGui that you want to be affected.
local part = game.Workspace.TouchPart --Part to be touched.
local distance = 2.5 --Studs away from part.
script.Parent.Enabled = false
part.Touched:connect(function(p)
if p.Parent.Humanoid then
script.Parent.Enabled = true
while true do
local a = ((part.Size.X+part.Size.Y+part.Size.Z)/3)
if (p.Position-part.Position).magnitude >= (distance+a) then
script.Parent.Enabled = false
break
end
wait()
end
end
end)


--//


~MightyDantheman~
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 12:03 PM
You'll need to modify the above to fit your needs.


~MightyDantheman~
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 12:04 PM
thanks bro


100
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 12:05 PM
Also, put the ScreenGui inside of 'StarterGui'. With that script, the ScreenGui will become visible one the selected part is touched, but will automatically hide when the player is a certain amount of studs away.


~MightyDantheman~
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 12:05 PM
Your welcome.


~MightyDantheman~
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 12:06 PM
add me il pay u 10k robux if u can help me finish up my game with scripts


100
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
30 Apr 2017 12:15 PM
Alright.

Also, for anyone who still doesn't understand how to use that script, here's a model that will automatically set everything up for you. Look through all the code to figure out how it works (if you're new to scripting and want to learn how this works).

https://www.roblox.com/library/759520303/Distance-Gui-Example


~MightyDantheman~
Report Abuse
fleamarkets is not online. fleamarkets
Joined: 07 Dec 2010
Total Posts: 917
30 Apr 2017 12:16 PM
add me if u can help me finish up my game.


100
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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