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: Lighting to workspace failure?

Previous Thread :: Next Thread 
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 07:56 PM
So I have a rabbit in my game.

When it is in the workspace, it is just fine, however if it is in Lighting, then moves to the workspace, it falls apart.

I have even tried having it in the workspace, then scripting it into the lighting so it can later be called back into workspace, and it still dies.

How can I make sure that the rabbit does not die whilst moving tp workspace form lighting?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 07:59 PM
Did you try calling MakeJoints on the model?
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 08:00 PM
I'm not that stupid

...

ok maybe just a little lol. I'll get back to ya
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 08:03 PM
Yea it works now (at least in Studio) but now the rabbit's legs are in different positions than they should be.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 08:04 PM
If you are using welds, you'll have to set them up again so that might be your problem.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 08:08 PM
I actually did something much simpler, since the legs don;t move anyway, I duplicated the 4 legs and grouped them together, made the original legs transparent and left the fake one opaque.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
10 Nov 2015 08:13 PM
Makejoints is used for models that have joints to be connected together. If you do not use a joint type surface for the parts, you need to weld them together.

http://wiki.roblox.com/index.php?title=Weld
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 09:54 PM
So i did the :MakeJoints() thing, and the rabbit still dies.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 09:57 PM
You called it AFTER parenting right?
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:02 PM
yea
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:05 PM
wait(5)
local rabbit = game.Lighting.Rabbit
Max = 15
animals = game.Workspace.Animals
while true do
wait()
local childs = animals:GetChildren()
if #childs < Max then
local Rabbit = rabbit:Clone()
Rabbit.Parent = animals
Rabbit:MakeJoints()
Rabbit:MoveTo(Vector3.new(math.random(-400,400),math.random(1,10),math.random(-400,400)))
wait(math.random(10,20))
end
end
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
10 Nov 2015 10:07 PM
The only thing absolutely necessary to keep a model from dying is to make sure the head is connected to the torso. Check to make sure there's a weld or an inlet/outlet connection between the two. Roblox is picky like that.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:18 PM
Ok, so I did the suds/inlet thing. It works fine in studio (just like before) but they would die in Player. Now one thing is different. The first Rabbit that spawns, will live, but the rest die. And also, I have a script that detects when the rabbit's head is touched, the rabbit will jump (for when it runs into walls). That works in Studio, but not player.
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
10 Nov 2015 10:20 PM
This isn't really a scripting error, so we can't help you much more than we already have.
I'm pretty sure the basics have been covered, so unless you provide more detail with the problem, like a short debug video, nothing else we can do.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:21 PM
The only thing that happens is that the rabbit spawn, and fall apart and die
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
10 Nov 2015 10:26 PM
id be more willing to help if cg productions didnt make claims it hadnt accomplished yet
ily~
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:32 PM
?
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
10 Nov 2015 10:35 PM
oh nothing <3
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
10 Nov 2015 10:35 PM
Allow me to translate:


"id"
The Wizard of Id

"cg"
Corrupting Game

"didnt"
Did Windows NT

"hadnt"
Had Windows NT


As far as punctuation, I'm not sure anyone knows what he means.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:37 PM
Ok, well I tweaked some things and it works fine. It was just glitching between Studio and Player
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
10 Nov 2015 10:39 PM
I was basically pointing out how he's the owner of a group that claims to specialize in scripting in building when it has no filled scripter or builder ranks and he's asking questions like this.

I just have something against unbacked claims, even if they're little things.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
10 Nov 2015 10:41 PM
I thought it was a scripting issue, but instead it was a disconnect between Studio, and Player.
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