LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 17 Jan 2012 07:25 PM |
function onTouched(hit) if hit.Parent:FindFirstChild("Humanoid") then local gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Backpack") if gui then gui.Quest.Visible = true end end end script.Parent.Touched:connect(onTouched)
doesnt work? |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:28 PM |
Why didn't you use my anonymous functions? Well.
Make sure to put in a local script like I told you.
script.Parent.Touched:connect(hit) if hit.Parent:FindFirstChild("Humanoid") then if game.Players.LocalPlayer.PlayerGui:FindFirstChild("Backpack") then gui.Quest.Visible = true end end end) |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:29 PM |
Oops.
script.Parent.Touched:connect(hit) if hit.Parent:FindFirstChild("Humanoid") then gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Backpack") if gui then gui.Quest.Visible = true end end end) |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:31 PM |
fixed, also this script only works in a local script: script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Backpack") if gui then gui.Quest.Visible = true end end end) |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:32 PM |
| @Blue, Yes I forgot my function. D: |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:38 PM |
why over complicate things, try to make it as similar as you can to their script
unless it horribly inefficient |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:40 PM |
| Oh, that is actually my script in the beginning, he just ripped the middle into a regular function... |
|
|
| Report Abuse |
|
|
LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 17 Jan 2012 07:42 PM |
nope. I Use the term gui alot in guis. |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:45 PM |
| @LO Oh, that was someonelse then; but it looked extremely similar. :O |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:46 PM |
same here. you can tell if it's my script because it's got local variables written all over it >:)
and you can teel if it's oysi because he localizes everything (just about) including functions from librarys :P |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:47 PM |
| @Blue Cool. But my script that I posted for that one guy had exactly the same inner coding. From the humanoid to the gui =. :/ |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 09:01 PM |
| it looks similar to mine too, every one has different coding syles and some are similar :P (mostly because people copy the formating of better scripters than themselves lol) |
|
|
| Report Abuse |
|
|