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: Why Doesn't this twerk?

Previous Thread :: Next Thread 
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:04 PM
wait()

sp = script.Parent
mirror = sp.MirrorObject
a = sp:GetChildren()

for i = 1, #a do
if a[i]:IsA("ImageLabel") and a[i].Name ~= "MirrorObject" and a[i].AbsolutePosition.X + a[i].AbsoluteSize.X < mirror.AbsolutePosition.X + mirror.AbsoluteSize.X then
b = a[i]:Clone()
b.Parent = sp
b.Name = (a[i].Name.."'s clone")
while wait(0.0) do
b.Position = UDim2.new(0,b.Position.X - a[i].Position.X,0,a[i].Position.Y)
end
end
end

So it creates the clone but the clone doesn't move....
No output... :(
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:10 PM
twerk
Report Abuse
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
27 Mar 2014 08:15 PM
out before you ruin the innocence of young children.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:16 PM
lol sorry, but seriously D:
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:20 PM
werk D:
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
27 Mar 2014 08:21 PM
its not supposed to, it just sets the position.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:22 PM
while wait(0.0) do
b.Position = UDim2.new(0,b.Position.X - a[i].Position.X,0,a[i].Position.Y)
end

^^ But dat loop D:
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
27 Mar 2014 08:23 PM
Is it a GUI or a model?
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:24 PM
A GUI
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
27 Mar 2014 08:27 PM
b.Position = UDim2.new(0,b.Position.X.Offset - a[i].Position.X.Offset,0,a[i].Position.Y.Offset)
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:29 PM
The clone goes crazy, it like orbits the screen D:
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:31 PM
Pretty much what i'm trying to do is this

o | o Make a reflection of the player, so if the player gets close to the mirror the reflection does too, or if he gets farther.
Pretty much a 2D mirror....
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:39 PM
D:
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:50 PM
bump
Report Abuse
GamingOwl is not online. GamingOwl
Joined: 18 Feb 2014
Total Posts: 350
27 Mar 2014 08:52 PM
They have that already. Look in free models.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:55 PM
no they dont
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
27 Mar 2014 08:57 PM
^
Yes they do
The Mirror Game
That's one example of somebody who's cloned a player and used his movement negatively to create a mirror effect.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 08:58 PM
I've created a 3D mirror before, I just cant create a 2D one D:

This is what I used in the 3D Mirror

a.CFrame = CFrame.new(0,0,0) * CFrame.Angles(0,math.pi,0)
a.Position = Vector3.new(objects[i].Position.X,objects[i].Position.Y,math.floor(a.Position.Z - objects[i].Position.Z)+6)
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 09:05 PM
No help :,(
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 09:15 PM
-sigh- u.u
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Mar 2014 09:37 PM
help anyone?
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
30 Mar 2014 05:25 PM
bump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
30 Mar 2014 06:04 PM
bump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
02 Apr 2014 05:13 PM
bump
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