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: Mirror Mirror on the wall is not working jfc

Previous Thread :: Next Thread 
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
31 Jan 2016 02:57 AM
100% sure it has to do with this line:

Children[i].CFrame = CFrame.new((Model2:FindFirstChild(Children[i].Name).CFrame.p * Vector3.new(-1,1,1)),Children[i].Position + Model2:FindFirstChild(Children[i].Name).CFrame.lookVector * Vector3.new(-1,1,1))

Issue?

Well you see, this has been happening for days.
Here's what happens when that code compiles with all the other stuff.

https://gyazo.com/df910f17e656302e7dea5407acf9ec9f
Report Abuse
TheAddictPlayer is not online. TheAddictPlayer
Joined: 21 Jun 2014
Total Posts: 2003
31 Jan 2016 05:54 AM
Try with this Children[i].CFrame = CFrame.new((Model2:FindFirstChild(Children[i].Name).CFrame.p * Vector3.new(1,1,1)),Children[i].Position + Model2:FindFirstChild(Children[i].Name).CFrame.lookVector * Vector3.new(1,1,1))



Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
01 Feb 2016 01:16 AM
^ Did not work.
Made it worse tbh, my character was merged with the clone. Lol.
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
01 Feb 2016 01:30 AM
Mirrors are now possible :OOO


Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
01 Feb 2016 02:55 AM
Not a REAL mirror, just some smoke and "mirrors" haahahhahaha get my joke it was corny


but seriously i need some help guys
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
01 Feb 2016 03:09 AM
If they make real reflections possible then the secret of how they reflect things now wont matter
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
01 Feb 2016 05:21 AM
i loved that joke
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
05 Feb 2016 07:44 AM
ok but like would anyone please assist me in this omg
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
28 Feb 2016 09:34 AM
is there any hope
Report Abuse
DevGamerzz is not online. DevGamerzz
Joined: 21 Dec 2015
Total Posts: 154
28 Feb 2016 09:42 AM
Idk, it's hard to see whats wrong.. xd

#code print('~Developer~')
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
28 Feb 2016 10:01 AM
I'll dissect it so it makes a bit more sense.
The way the mirror works is it uses a clone and then reverses the clones position and then it's rotation. Position works just fine, now it's rotation that appears to be my issue.

The way I am doing this is with CFrame. I'm using the CFrame.new(Position,lookingPoint), both Vector3Values.

Don't mind the variables that seem awfully long, there is nothing wrong with them.
I believe the section of code that seems to be failing is right here:

Children[i].CFrame = CFrame.new((Model2:FindFirstChild(Children[i].Name).CFrame.p * Vector3.new(-1,1,1)),Children[i].Position + Model2:FindFirstChild(Children[i].Name).CFrame.lookVector * Vector3.new(-1,1,1))

To be even more specific:

Children[i].Position + Model2:FindFirstChild(Children[i].Name).CFrame.lookVector * Vector3.new(-1,1,1)

Take a look at the gif I posted:

https://gyazo.com/df910f17e656302e7dea5407acf9ec9f

The lookingPoint is a the position of the ClonesPart + The current lookVector of the real part * Vector3.new(-1,1,1). If I try and make the -1 to anything else, the outcome is worse!

If you need even MORE info, please do ask. This issue has been killing me!
Report Abuse
Gensoki is not online. Gensoki
Joined: 15 Feb 2014
Total Posts: 1982
28 Feb 2016 10:26 AM
Just edit the arm position?


http://www.roblox.com/yess-item?id=374028241 #code "Oh, did I die again?"
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
28 Feb 2016 10:45 AM
I don't think the CFraming is wrong... You see, you can't actually make a perfect mirror of something in roblox. Maybe if it's just parts, but here you're using meshes as well, and when you're irl lifting your right hand, it's actually your left hand in the mirror. I think the issue is that you should switch the mesh Id's.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
28 Feb 2016 10:49 AM
If you give a mesh negative scale on one axis it will flip it inside out
Negative on 2 will flip the mesh keeping it not inside out
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
28 Feb 2016 11:06 AM
Swapping meshes did help a bit, but again, I always knew it was a problem with the rotation.

The body parts do not rotate the way they are supposed to.

And it's not impossible to create a mirror, I've definitely seen it in more than one game, crystal clear, no errors at all.

https://gyazo.com/e290a53ab230fa7e179c60ee0fa98252

Result of swapping meshes.

At least it's an improvement!
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
28 Feb 2016 11:10 AM
Has anyone seen the mirrors at that heist game?
They are amazing. No clue how they work.
They are crystal clear, completely flat, and can fall and still work, at any camera angle.
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
02 Mar 2016 06:14 PM
Maybe the question I should be asking is:

Does anyone have a better method of doing this?
I'm trying to correct my method, but maybe it's just not the right way in the first place.
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
02 Mar 2016 07:55 PM
Here take this place its really laggy and hardly works but it reflects like youre talking about.

http://www.roblox.com/games/315304675/myactivetestplaces-Place-Number-32
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