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 » Scripting Helpers
Home Search
 

Re: What is wrong with this script?

Previous Thread :: Next Thread 
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
31 Mar 2014 07:43 PM
Everything works, accept that when the GUI is supposed to move to 0, 0, 0, -800, it doesn't.

local debounce = false
script.Parent.MouseButton1Click:connect(function()
if debounce then return end
debounce = true
wait(1)
script.Parent.Text = ""
wait(2)
script.Parent.Text = "Superbrawl"
wait(1.5)
for i = 1, 10 do
script.Parent.TextTransparency = i/10
wait(.1)
end
wait(2)
script.Parent.Text = "The card game that will cost you of all your friendships"
wait(2)
for i = 9, 0, -1 do
script.Parent.TextTransparency = i/10
wait()
end
wait(2)
for i = 1, 10 do
script.Parent.TextTransparency = i/10
end
wait(1)
TweenToPosition(script.Parent, UDim2.new(0, 0, 0, -800), 2)
local sound = game.Workspace.Click
wait()
sound:play()
end)
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
31 Mar 2014 07:48 PM
Any ideas? :P
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
31 Mar 2014 08:27 PM
TweenToPosition(script.Parent, UDim2.new(0, 0, 0, -800), 2)
????
Wat is that....


Gui = script.Parent
Gui:TweenPosition(UDim2.new(0, 0, 0, -800))
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
31 Mar 2014 08:32 PM
You applied a method to nothing;

TweenToPosition(script.Parent, UDim2.new(0, 0, 0, -800), 2)

Gotta apply it to SOMETHING;

derp = script.Parent
derp:TweenPosition(UDim2.new(0, 0, 0, -800))
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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