|
| 29 Jun 2016 04:50 PM |
What I'm planning is to have the GUI appear, then disappear. Problem for me is, I know I'm close to having the GUI working, but I don't know how to make it move. I think I got the appear and disappear script right though. Here's what I got. (Pretty sure I got the onClicked part incorrect) function onClicked() script.Parent.Nameplate.Visible = true wait(2.5) script.Parent.Nameplate.Visible = false end script.Parent.MouseButton1Down:connect(onClicked) --- So that's pretty much the only issue I'm having, gonna have the name flash for a second but I can do that. It's just the start and ending that I'm having trouble with. Any help would be appreciated! |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 Jun 2016 04:51 PM |
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenPosition
|
|
|
| Report Abuse |
|
|
|
| 29 Jun 2016 05:02 PM |
| Shoot I just realized I misworded my title... My bad. I already have the decals for it to move, just having a problem with it starting. |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2016 05:04 PM |
Meaning in this case it's like a GIF. Like this.
while true do script.Parent.Image = "http://www.roblox.com/asset/?id=444271266" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444271552" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444271725" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444271790" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444271878" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444271988" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444272075" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444272159" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444272581" wait(0.2) script.Parent.Image = "http://www.roblox.com/asset/?id=444272916" wait(0.5) end
Again, decals =P |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 10:10 PM |
| Okay I almost have it, problem is though, it either plays automatically when Visible is checked, or says "NameplateMoxley is not a valid member of ScreenGui" whether Active is checked, or unchecked. NameplateMoxley is the ImageLabel, which is inside the ScreenGUI, inside StarterGUI... so it's StarterGui with the ScreenGUI inside, then NameplateMoxley with the script that has the decals. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 10:20 PM |
Something like this?
https://www.roblox.com/games/411993057/GIF-Showcase
If yes, I'm not sure why, I basically do that in my game and works fine.
|
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 10:24 PM |
Try trying something like I used
while wait() do wait(timee) script.Parent.Image = "rbxassetid://413225181" wait(timee) script.Parent.Image = "rbxassetid://413225235" timee I just simply messed around with to see how smoothly it'll play.
|
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 11:52 PM |
| Close, but I want it to be on the player's screen. But I can't see why the ImageLabel isn't a valid member of ScreenGUI if it's literally IN ScreenGUI =/ |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 02:14 AM |
Okay let's see... this is what's showing in the output.
00:10:17.914 - NameplateMoxley is not a valid member of ScreenGui 00:10:17.916 - Script 'Players.Player1.PlayerGui.LightGui1.WolfNP.Script', Line 2 00:10:17.917 - Stack End
And here's the script to activate it
function Clicked() script.Parent.Parent.NameplateMoxley.Visible = true (<<< Issue is here...) wait(5.0) script.Parent.Parent.NameplateMoxley.Visible = false end script.Parent.MouseButton1Down:connect(Clicked) |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 02:21 AM |
Just use tween title
Hi im a gamedev |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 02:30 AM |
| If I wanted to I probably wouldn't have posted here in the first place =P But really though if there are no available comments to actually help, please don't comment. Meanwhile I'm going to triple check on Google. |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 05:02 AM |
Bump (update) While typing my original post I almost fixed it. I changed the script path to...
game.StarterGui.ScreenGui.NameplateMoxley.Visible = true
Even though it doesn't work, nothing shows in the Output for any errors. I know I'm close, just need to fix one thing... should it be changed to the PlayerGui path?? |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 08:17 PM |
Almost got it, but one problem: It only appears for me, when I want it to show for everyone. So how does one make something appear for ALL players? Because I think it has something to do with the LocalPlayer part of the script.
game.Players.LocalPlayer.PlayerGui.ScreenGui.NameplateMoxley.Visible = true
|
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 05:49 PM |
*Bump* I assume there's no way to have a ScreenGUI like mine appear for everyone? All I want to do it click the button and have it show for all players. Is there a line of code to have it show for everyone or what? I looked everywhere and found nothing about it at the moment. |
|
|
| Report Abuse |
|
|