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: It. HATES. me.

Previous Thread :: Next Thread 
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:36 PM
Frame = script.Parent.Parent.Menu
Start = script.Parent


function onClick()

for i=0, 100 do
Frame.Position = Frame.Position - UDim2.new(0,1,0,0)
Start.Position = Start.Position - UDim2.new(0,1,0,0)
wait(0.1)
end

Start.MouseButton1Click:connect(onClick)
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
16 Aug 2011 01:37 PM
MouseButton1Down + missing an end
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
16 Aug 2011 01:37 PM
Needs another end.

~~{I'm a deranged sociopath with a long history of violence}~~
~{I don't understand how you keep forgetting that}~
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:38 PM
Where does that go.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
16 Aug 2011 01:38 PM
@Blox

MouseButton1Click works

~~{I'm a deranged sociopath with a long history of violence}~~
~{I don't understand how you keep forgetting that}~
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:39 PM
Frame = script.Parent.Parent.Menu
Start = script.Parent


function onClick()

for i=0, 100 do
Frame.Position = Frame.Position - UDim2.new(0,1,0,0)
Start.Position = Start.Position - UDim2.new(0,1,0,0)
wait(0.1)
end
end

Start.MouseButton1Click:connect(onClick)

Like that?
Report Abuse
Sweetief123 is not online. Sweetief123
Joined: 06 Sep 2010
Total Posts: 34
16 Aug 2011 01:39 PM
After the other end silly.
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:40 PM
I did, silly
Report Abuse
Sweetief123 is not online. Sweetief123
Joined: 06 Sep 2010
Total Posts: 34
16 Aug 2011 01:40 PM
Latepost, you got it right.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
16 Aug 2011 01:40 PM
Yuppers

~~{I'm a deranged sociopath with a long history of violence}~~
~{I don't understand how you keep forgetting that}~
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:44 PM
Frame = script.Parent.Parent.Menu
Start = script.Parent


function onClick()

for i=0, 100 do
Frame.Position = Frame.Position - UDim2.new(0,1,0,0)
Start.Position = Start.Position - UDim2.new(0,1,0,0)
wait(0.1)
end
end

Start.MouseButton1Click:connect(onClick)


WHY IT STILL NO WORKY???
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:45 PM
ლ(ಠ益ಠლ)
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
16 Aug 2011 01:45 PM
Are you testing it in Play Solo mode? It won't work if you're not.

~~{I'm a deranged sociopath with a long history of violence}~~
~{I don't understand how you keep forgetting that}~
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:48 PM
.........hmm
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 01:50 PM
http://www.roblox.com/Building-Area-item?id=53359597

It still doesn't work, you can try it out if you want. It's uncopylocked so you can go into edit mode
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Aug 2011 01:58 PM
Can we subtract two UDim2 values? :O
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
16 Aug 2011 01:59 PM
Use :TweenPosition ?
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 02:00 PM
Only if your feelin lucky
Report Abuse
Sweetief123 is not online. Sweetief123
Joined: 06 Sep 2010
Total Posts: 34
16 Aug 2011 02:00 PM
@agent

We can now,

print(UDim2.new(0.2,0,0.1,0)-UDim2.new(0.1,0,0,0))

userdata: 1DAF1D08

They probably added that whenever they made the tweening events.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
16 Aug 2011 02:04 PM
You NEED TO USE:

TweenPosition()
Report Abuse
roblox42658 is not online. roblox42658
Joined: 19 Dec 2007
Total Posts: 895
16 Aug 2011 03:23 PM
Where at though

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