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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Just alittle help

Previous Thread :: Next Thread 
Adamnet is not online. Adamnet
Joined: 08 Oct 2007
Total Posts: 7673
08 Aug 2011 12:58 PM
My codings rusty and i dont seem to get this to work

if script.Parent.Fall.Value == 1 then
msg = script.Parent:GetChildren()
msg.Lemon.Anchored = false
wait(5)
--
2
2
2
--
model = script.Parent.Parent.Lemon
backup = model:clone()
model = backup:clone()
model.Parent = script.Parent
model:MakeJoints()
--
2
2
2
--
script.Parent.Fall.Value = 0
end

It doesnt give out a error but it wont unanchor everything in the lemon group or regenerate it.
Report Abuse
PuzzleCrazy is not online. PuzzleCrazy
Joined: 01 Feb 2010
Total Posts: 1245
08 Aug 2011 01:09 PM
Try this:

if script.Parent.Fall.Value == 1 then
msg = script.Parent.Parent -- Is lemon in script.Parent or script.Parent.Parent?
msg.Lemon.Anchored = false
wait(5)

--This area was too messy and redundant

model = script.Parent.Parent.Lemon:clone() -- See first hint
model.Parent = script.Parent
model:MakeJoints() -- I don't think you need this, try it anyway



script.Parent.Fall.Value = 0
end
Report Abuse
Adamnet is not online. Adamnet
Joined: 08 Oct 2007
Total Posts: 7673
08 Aug 2011 01:18 PM
Not working :(

The lemon is a group (a few lemon models) in script.Parent
Report Abuse
PuzzleCrazy is not online. PuzzleCrazy
Joined: 01 Feb 2010
Total Posts: 1245
08 Aug 2011 01:28 PM
Is lemon a model or a part?
Report Abuse
PuzzleCrazy is not online. PuzzleCrazy
Joined: 01 Feb 2010
Total Posts: 1245
08 Aug 2011 01:30 PM
If lemon is a model:


if script.Parent.Fall.Value == 1 then
msg = script.Parent
msg.Lemon.Anchored = false
wait(5)



model = script.Parent.Lemon:clone()
model.Parent = script.Parent
model:MakeJoints()


script.Parent.Fall.Value = 0
end


If lemon is a part:

if script.Parent.Fall.Value == 1 then
msg = script.Parent
msg.Lemon.Anchored = false
wait(5)



model = script.Parent.Lemon:clone()
model.Parent = script.Parent



script.Parent.Fall.Value = 0
end
Report Abuse
Adamnet is not online. Adamnet
Joined: 08 Oct 2007
Total Posts: 7673
08 Aug 2011 01:42 PM
Still not working...

Its 5 lemon blocks in a group(model)

When this is active i want them all to unanchor and 5seconds later regen.
Report Abuse
Adamnet is not online. Adamnet
Joined: 08 Oct 2007
Total Posts: 7673
08 Aug 2011 01:59 PM
nvm i fixed it
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