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: Changing the size of a part

Previous Thread :: Next Thread 
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 09:11 AM
Vector = script.Parent.Parent.Parent.Backpack.GAMETOOL.Vector3Value
Selection = script.Parent.Parent.Parent.Backpack.GAMETOOL.Partpack.Selection.Size
function OnClick()
Vector.Value = Selection
end
script.Parent.MouseButton1Down:connect(OnClick)

Map thingy...

+StarterGui
++Frame
+++Frame2
+++++Frame3
++++++Button1

+StarterPack
++GAMETOOL
+++Vector3Value
+++PartPack
++++Selection(inside partpack)

I think this is broken maybe because of parents. Can you fix it please?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 09:11 AM
Also, that script is in 'Button1'
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 09:21 AM
I hope SDuke posts here :D
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 09:35 AM
Maybe 1Woof1 would do :c
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Dec 2011 09:37 AM
Y U NO USE LOCALSCRIPT?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 09:42 AM
Does it have to be in local script?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Dec 2011 09:44 AM
No, but you wouldn't have to count how many parents you need to use :P
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 10:07 AM
I think the parenting part is wrong. How many parents should I use?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 10:46 AM
Vector = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack.GAMETOOL.Vector
Selection = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack.GAMETOOL.FollowPack.Selection2.Size
function OnClick()
Vector.Value = Selection
end
script.Parent.MouseButton1Down:connect(OnClick)

How come it won't work??????
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 10:49 AM
Output:

16:47:55 - Backpack is not a valid member of Players
16:47:55 - Script "Players.Player.PlayerGui.GameData.Frame1.Help.Loc", Line 1
16:47:55 - stack end
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 11:31 AM
I bet the next 2h, the advanced scripters would help me :D
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 01:08 PM
BUMP please Help ):
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 02:53 PM
Please help. I been waiting a long time D:
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
20 Dec 2011 02:58 PM
GameTool = game.Players.LocalPlayer.Backpack['GAMETOOL'] -- In a localScript
GameTool = script.Parent.Parent.Backpack['GAMETOOL'] -- In a normal script.

script.Parent.MouseButton1Down:connect(function()
  GameTool['Vector3Value'].Value = GameTool.Partpack['Selection'].Size
end)


Maybe? If it doesn't work, could you tell me please what the output is.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Dec 2011 04:45 PM
Ok, maybe tomorrow I might test it out because my mom and me needed to go somewhere across the country. :D Thanks by the way. :D
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 10:34 AM
Won't work D:
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 10:54 AM
Output:

16:53:17 - Selection2 is not a valid member of Model
16:53:17 - Script "Players.Player.PlayerGui.GameData.Frame.Button.Loc", Line 3
16:53:17 - stack end
16:53:17 - Disconnected event because of exception
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 10:55 AM
I just edited a bit of it. I changed 'selection' to 'selection2'
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 11:46 AM
Hey spec

GameTool = game.Players.LocalPlayer.Backpack['GAMETOOL'] -- In a localScript

script.Parent.MouseButton1Down:connect(function()
Player.Character['Selection2'].Size = GameTool['Vector'].Value
end)

I made a part's parent to be Player.Character and this isn't working. Can you fix it? Btw, I need to add this to a script...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 01:10 PM
Anyone?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
21 Dec 2011 03:06 PM
...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
22 Dec 2011 01:39 AM
Nevermind, I think I fixed it. :D
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