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: Animated/Moving ScreenGUI

Previous Thread :: Next Thread 
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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 is not online. 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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
DatOneDeveloper is not online. DatOneDeveloper
Joined: 11 Mar 2011
Total Posts: 1185
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
DatOneDeveloper is not online. DatOneDeveloper
Joined: 11 Mar 2011
Total Posts: 1185
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
XIceMasterGrayX is not online. XIceMasterGrayX
Joined: 23 Feb 2016
Total Posts: 958
01 Jul 2016 02:21 AM
Just use tween title

Hi im a gamedev
Report Abuse
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
Racing43fan is not online. Racing43fan
Joined: 01 Jul 2013
Total Posts: 90
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
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