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
 

Pelican Drop Warthog Gui

Previous Thread :: Next Thread 
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Oct 2011 05:53 AM
I made this script and it is the same as my Landing Gear and my door one exept the ending is different and they work. Can somebody help me fix this one?

if script.Parent:FindFirstChild("Drop") ~= nil then
script.Parent.Drop.MouseButton1Down:connect(function (x,y)
person = script.Parent.Parent.Parent.Parent.Character
plane = person:FindFirstChild("Plane")
if (plane ~= nil) then
print ("plane found")
gear=plane.Drop:GetChildren()
if debby == false then
debby = true
for i=1, #gear do
gear[i]:remove()
end
end
end
end)
end

Where it sayd remove i expected it to delete the model(brick in a model) to be removed so the car would drop but nothing happened and the model was still there. Can somebody tell me whats wrong?
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Oct 2011 06:27 AM
:(
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Oct 2011 07:04 AM
Only perso who'll know how to do this is Weeve, i'll ask him.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
15 Oct 2011 07:23 AM
try :breakJoints instead of :remove
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
15 Oct 2011 07:25 AM
@DX

*facepalm*

:BreakJoints() is completely different from :Remove()
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Oct 2011 07:25 AM
I knew Weeve would fix it.

if script.Parent:FindFirstChild("Drop") ~= nil then
script.Parent.Drop.MouseButton1Down:connect(function (x,y)
person = script.Parent.Parent.Parent.Parent.Character
plane = person:FindFirstChild("Plane")
if (plane ~= nil) then
print ("plane found")
gear=plane.Drop:GetChildren()
for i=1, #gear do
gear[i]:remove()
end
end
end)
end

He removed the debby part and changed the format.
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