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: Explain to me, please, why does this not function.

Previous Thread :: Next Thread 
Travianer999 is not online. Travianer999
Joined: 04 Aug 2008
Total Posts: 249
07 Apr 2013 11:43 AM
I made a morph, successfully, as it did not fall apart, all welded where needed and everything. I grouped it, made a button brick, inserted a script inside, yet when I test it in the Build mode, the button morphs me INSIDE the morph. I cannot move, my humanoid GUI is missing, and so is my health, thus I die quickly and respawn. Here's the script (note: the Morph is named Overseer.)

button = script.Parent
Overseer = button.Parent:findFirstChild("Overseer")
clone = Overseer:clone() -- saved
if Overseer == nil then print("WHERE DID IT GOOOOOOO?!??!") end


function touched(hit)
if hit.Parent == nil then return end
newClone = clone:Clone()
newClone.Parent = workspace
newClone:MakeJoints()
game.Players[hit.Parent.Name].Character = newClone
end

button.Touched:connect(touched)



Find mistakes and report to me, please.
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
07 Apr 2013 11:46 AM
Is the clone unanchored ? That could be one of the first problems.
Then, do you have a part named "Torso", and are "Head" and "Torso" welded properly ? If not, you'll always die.
I don't have anything else in mind for now.
Report Abuse
Travianer999 is not online. Travianer999
Joined: 04 Aug 2008
Total Posts: 249
07 Apr 2013 11:49 AM
Well, yes, I have all the parts welded properly, I guess. Just to make sure, which parts have to be welded to what?

And I think the clone is anchored. I shall unanchor it now and test.
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
07 Apr 2013 11:53 AM
I think the only welding requirement for your body to sustain life is Head-Torso. The rest doesn't really matter. I'm pretty sure you already had an arm or a leg blown off on a game, and see, you could still live. But I don't think you had many opportunities to walk around when your head/torso was.

I think you cannot properly weld anchored bricks. This would mean that the morph, from the very start, wasn't properly welded at all, and it could explain the whole problem. Best case scenario would be that, once you unanchor it, the welding works properly and you can live as a morph for the rest of your life. Worst case scenario would be that the weld never worked, and you would have to work on it again.
Report Abuse
Travianer999 is not online. Travianer999
Joined: 04 Aug 2008
Total Posts: 249
07 Apr 2013 11:59 AM
Tested it, the head and torso remains welded together, yet the limbs fall apart. I shall now redo the arm and leg welding, and report if I succeeded.
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
07 Apr 2013 12:00 PM
But did you die when you became the morph ?
Report Abuse
FIRECAKE is not online. FIRECAKE
Joined: 28 Feb 2009
Total Posts: 25167
07 Apr 2013 12:04 PM
it's :makeJoints() not :MakeJoints()

⊂=-҉Ξ҉-=⊃ Verb conjugator, plus herb inhalator ⊂=-҉Ξ҉-=⊃
Report Abuse
Travianer999 is not online. Travianer999
Joined: 04 Aug 2008
Total Posts: 249
07 Apr 2013 12:11 PM
Alright, I have changed the :MakeJoints() into :makeJoints(), and redone the welding, yet now when I unanchor the model and go morph inside it, the model falls apart, I turn into a humanoidless anchored model, and cannot move.

Any ideas?
Report Abuse
FIRECAKE is not online. FIRECAKE
Joined: 28 Feb 2009
Total Posts: 25167
07 Apr 2013 12:13 PM
i don't really work with morphs that much

try looking through some free models and seeing where their code differs from yours

⊂=-҉Ξ҉-=⊃ Verb conjugator, plus herb inhalator ⊂=-҉Ξ҉-=⊃
Report Abuse
Scriptman8 is not online. Scriptman8
Joined: 25 Dec 2011
Total Posts: 5561
07 Apr 2013 12:15 PM
@FIRECAKE :MakeJoints() works too.
Report Abuse
Travianer999 is not online. Travianer999
Joined: 04 Aug 2008
Total Posts: 249
07 Apr 2013 12:24 PM
Guess I shall simply redo the morph using a free model as a base for it. OH WELL.
Thanks for your time and help, though, people.
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