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: Gui won't tween in online play since Roblox update, help?

Previous Thread :: Next Thread 
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
26 Apr 2017 08:20 PM
-- Scroll passed this section to only edit text.

function onTouch(hit)

if hit.Parent:FindFirstChild("Humanoid") ~= nil then

if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
local player = game.Players:FindFirstChild(hit.Parent.Name)

if player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui") == nil then
sg = Instance.new("ScreenGui")
sg.Parent = player:FindFirstChild("PlayerGui")
end

if player.PlayerGui.ScreenGui:FindFirstChild("MessageBox") == nil then

local f = Instance.new("ImageLabel") --does not appear anymore in online play...
f.Name = "MessageBox"
f.Position = UDim2.new(0.15, 0, 0.65, 0)
f.Size = UDim2.new(0,0, 0,0)
f.Image = "rbxassetid://752446664"
f.Parent = player.PlayerGui:FindFirstChild("ScreenGui")
f.BackgroundTransparency = 1

local g = Instance.new("ImageLabel")
g.Name = "MessageBox"
g.Position = UDim2.new(0.17, 0, 0.68, 0)
g.Size = UDim2.new(0.085, 0, 0.17, 0)
g.Image = "rbxassetid://629080158"
g.Parent = player.PlayerGui:FindFirstChild("ScreenGui")
g.BackgroundTransparency = 1

local d = Instance.new("ImageLabel")
d.Name = "MessageBox"
d.Position = UDim2.new(0.17, 0, 0.68, 0)
d.Size = UDim2.new(0.085, 0, 0.17, 0)
d.Image = "rbxassetid://629096041"
d.Parent = player.PlayerGui:FindFirstChild("ScreenGui")
d.BackgroundTransparency = 1







wait()
f:TweenSize(UDim2.new(0.7,0, 0,170), 'Out' ,'Quad' , 0.5)


while true do
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
wait(0.05)
d.ImageTransparency= 1
wait(0.05)
d.ImageTransparency = 0
break
end

wait(5)
f:TweenSize(UDim2.new(0, 0,0, 0), 'Out' ,'Quad' , 0.5)

wait(1)
d:Destroy()
g:Destroy()
f:Destroy()

end
end
end
end

script.Parent.Touched:connect(onTouch)




Report Abuse
YTReptile is not online. YTReptile
Joined: 10 Feb 2017
Total Posts: 22
26 Apr 2017 08:21 PM
Does it error? If so tell me which line..
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
26 Apr 2017 08:22 PM
In studio this works fine, but in online play *nothing tweens*
Report Abuse
YTReptile is not online. YTReptile
Joined: 10 Feb 2017
Total Posts: 22
26 Apr 2017 08:30 PM
well from your script it looks like when you hit the object the gui creates its self and in like a split second tweens... I would try wait(2) to see if it tweens..
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
26 Apr 2017 08:39 PM
Yeah it still, doesn't tween. It's not just this script, it's been happening with all of my tween scripts.
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
26 Apr 2017 10:08 PM
Help?
Report Abuse
devHoodie is online. devHoodie
Joined: 04 Nov 2008
Total Posts: 30332
26 Apr 2017 10:10 PM
is it local or server script


r+://487783315r+://467523707r+://215869124 --luis15232
Report Abuse
Dratik is online. Dratik
Joined: 13 Nov 2008
Total Posts: 36385
26 Apr 2017 10:39 PM
Anything in output when in server?


Report Abuse
thunder1222 is online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
26 Apr 2017 11:08 PM
I'm having the same issue.


Report Abuse
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
26 Apr 2017 11:44 PM
Mee too lol it broke my whole game e-e
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
27 Apr 2017 05:19 AM

I'm wondering why the tween not working is not a live notification. I mean, Only if this is happening to everyone of course?

Anyone have output errors, because there are none in the roblox remote monitor for me.
Report Abuse
J_oshyy is not online. J_oshyy
Joined: 30 Oct 2010
Total Posts: 74
27 Apr 2017 06:01 AM
Make sure that script is in a local script as when you want to tween something now, it must be from within a local script rather than a normal script, I had the same problem too but I just changed into a local script and bam.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
27 Apr 2017 06:02 AM
whats with the while loop


Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
27 Apr 2017 06:23 AM
Yeah, I changed this to a local script and now the entire script won't work at all in studio or online play?
Report Abuse
MY_JO is not online. MY_JO
Joined: 22 Nov 2016
Total Posts: 12
27 Apr 2017 06:42 AM
wait, how to do this script? how to put this script in the game? tell me please or reply.
Report Abuse
J_oshyy is not online. J_oshyy
Joined: 30 Oct 2010
Total Posts: 74
27 Apr 2017 07:17 AM
Smh
Report Abuse
RubyEpicFox is not online. RubyEpicFox
Joined: 02 May 2015
Total Posts: 1828
27 Apr 2017 07:31 AM
server scripts can't acces the player gui with fe, you have to do it local.
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
27 Apr 2017 01:14 PM
u mean put this in a local script? I already did that, not working.
Report Abuse
Coasterteam is not online. Coasterteam
Joined: 06 May 2012
Total Posts: 240
27 Apr 2017 02:54 PM
Having the same issue.


- Coasterteam -
Report Abuse
RubyEpicFox is not online. RubyEpicFox
Joined: 02 May 2015
Total Posts: 1828
28 Apr 2017 06:01 AM
putting the script in a gui wont work, you have to modify it to the gui put in.
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
28 Apr 2017 06:58 AM
Can someone script this for me, I have no idea how to make a touch function work from starter gui???
Report Abuse
RubyEpicFox is not online. RubyEpicFox
Joined: 02 May 2015
Total Posts: 1828
28 Apr 2017 07:58 AM
local part = game.Workspace["Part name here."]

part.Touched:connect(function(h)
--DO YOUR STUFF HERE.
end)

there u go.
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
28 Apr 2017 01:08 PM
local part = game.Workspace["Part name here."] ################################ ## What is the h in the function supposed to represent, hit?
Report Abuse
JoeRaptorisBack is not online. JoeRaptorisBack
Joined: 03 Apr 2017
Total Posts: 287
28 Apr 2017 05:45 PM
I don't think its that simple, I tried your way and it didn't work. Anyone have any ideas to get this script working within a local script.
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