|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 30 Apr 2017 11:48 AM |
can someone make it for me? il pay 2k robux
100 |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2017 11:49 AM |
| @mighty he said touch, magnitude was never mentioned |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2017 11:50 AM |
well i mean when u walk near it.
100 |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Apr 2017 12:03 PM |
You'll need to modify the above to fit your needs.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 30 Apr 2017 12:05 PM |
Your welcome.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Apr 2017 12:16 PM |
add me if u can help me finish up my game.
100 |
|
|
| Report Abuse |
|
|