Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I debug this simple size in-game script?

Asked by 9 years ago
wait(1)
game.Workspace.Parent.LimitMaximumShootRange.Parent.Size = 9.81, 10.45, 44.2

Sorry, that I'm a noob on Scripting. :(

I'm trying to make a part size it self in-game.

IT"S OUT OF PLACE. http://prntscr.com/7z27c3

0
What r u tryin to do? I'll help if I can have more info iSvenDerp 233 — 9y
0
My script works but there's no way I can look at a pic and size it for there ull have to experiment with the sizing none of us can do it for u iSvenDerp 233 — 9y

3 answers

Log in to vote
1
Answered by 9 years ago

(Edit, noticed another mistake)

You are referring to game.Workspace.Parent.LimitMaximumShootRange.Parent.Size which doesn't exist, as workspace doesn't have a Parent.

What object are you trying to address? And where is it?

Also, adressing the Parent of a child of the same Parent is unecessary.

So

Parent.LimitMaximumShootRange.Parent

should be just

.Parent

Also you have a problem with sizing In order to modify an object's size, you should make a new Vector 3. So This

WhateverObjectThisIs.Size= 9.81, 10.45, 44.2

becomes

WhateverObjectThisIs= Vector3.new(9.81, 10.45, 44.2)

0
Sorry but that's not right your calling the part a parent of the game just trying to help iSvenDerp 233 — 9y
0
The OP was changed after I made this comment randomsmileyface 375 — 9y
0
http://prntscr.com/7z27c3 This doesn't work correctly. skystrike587 5 — 9y
0
Sky how r we supposed to know what u want t for if u don't tell us but u would need to change the size on your own for it to work iSvenDerp 233 — 9y
View all comments (7 more)
0
Okay then. new plan. randomsmileyface 375 — 9y
0
What you are giving us is basically a request to resize and position things. randomsmileyface 375 — 9y
0
In that case, why can't you just use the Scale and move tools in Roblox Studio. (Sorry for my broken comments, I was trying to use Shift+Enter to create a new line) randomsmileyface 375 — 9y
0
If you are set on making a size, try putting a script that says "script.Parent.Size = Vector3.new(9.81, 10.45, 44.2)"? randomsmileyface 375 — 9y
0
^Script above has to be put into the part you are moving. Its easy and simple. But if you are sizing the part from a different location, change "script.Parent" to "game.Workspace.(Insert the name of the part here) randomsmileyface 375 — 9y
0
Did u steal my answer:3 iSvenDerp 233 — 9y
0
Wait Nvm u didn't steal my answer:3 iSvenDerp 233 — 9y
Ad
Log in to vote
0
Answered by
Xianon 105
9 years ago

Hello bro, first of all Workspace can't have Parents. Second use Vector3...

brick.Size = Vector3.new(9.81, 10.45, 44.2)

Log in to vote
0
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

Hi if your trying to make a brick change size in game simply do this.

Part = script.Parent -- this is making the part a variable
Part.Size = Vector3.new(0,0,0) -- this is sizing the part 

Hope this helped! Let me know if it did it should work but I'm on mobile so I can test it.

0
Make sure the scripts in the part:3:) iSvenDerp 233 — 9y
0
This is also the simplest way to do it. iSvenDerp 233 — 9y
0
Also adjust the size to what u want the properties r the width the depth and the height.:) iSvenDerp 233 — 9y
0
I don't know if tha was after the script I have u but u never told me what to size it told I left u to size it because how am I supposed to know what to size it:) iSvenDerp 233 — 9y

Answer this question