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 » Scripters
Home Search
 

Re: .Size = Vector3.new(1,1,1) doesn't work?

Previous Thread :: Next Thread 
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
20 Jun 2016 03:23 PM
Here is the full script, can someone help me revise it?

script.parent:connect(function(plr)
if plr ~= nil then
local char = plr.Character
if char ~= nil then
char["Head"].Transparency = 0
char["Head"].Size = Vector3.new(1,1,1)
char["Torso"].Transparency = 0
char["Right Arm"].Transparency = 0
char["Left Arm"].Transparency = 0
char["Right Leg"].Transparency = 0
char["Left Leg"].Transparency = 0
end
end
end)


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
20 Jun 2016 03:24 PM
changing size of head will kill your character since its already welded and all that good stuff.

do head.HeadMesh.Scale instead.
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
20 Jun 2016 03:30 PM
MeshScale won't change the size of the hit box. And that wasn't the fix I was asking for, the entire script doesn't function at all. It will return nil even if it is active. Now, can I please have some actual help? I need to know how to resize the player's head's hit box to be 1x1x1 instead of 2x1x1.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
20 Jun 2016 07:35 PM
Bump.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
ninjabeast0117 is not online. ninjabeast0117
Joined: 19 Dec 2011
Total Posts: 489
20 Jun 2016 07:43 PM
that dude was correct, either change the mesh or not at all.
if you want to make your head that big you'd need to size the rest to fit it.
Report Abuse
sloppylego87 is not online. sloppylego87
Joined: 25 Mar 2011
Total Posts: 326
20 Jun 2016 07:48 PM
Why do you want the hotbox of the head to be shrunken? The rest of the body is still going to be available for attack.
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
20 Jun 2016 08:19 PM
You didn't capitalize .Parent :l
Report Abuse
KingArthur147 is not online. KingArthur147
Joined: 18 Mar 2013
Total Posts: 128
20 Jun 2016 08:23 PM
This is the problem-- script.parent:connect(function(plr)

You must connect it to something, but in here, you don't connect it to anything, so the script will take no effect.
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
21 Jun 2016 08:52 AM
Bump please.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
21 Jun 2016 08:57 AM
...

Alls ya gotta do is capitalize .parent

script.Parent:connect(function(plr)
if plr ~= nil then
local char = plr.Character or plr.CharacterAdded:wait()
if char ~= nil then
char["Head"].Transparency = 0
char["Head"].Size = Vector3.new(1,1,1)
char["Torso"].Transparency = 0
char["Right Arm"].Transparency = 0
char["Left Arm"].Transparency = 0
char["Right Leg"].Transparency = 0
char["Left Leg"].Transparency = 0
end
end
end)
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
21 Jun 2016 08:57 AM
ninjabeast0117

that dude was correct, either change the mesh or not at all.
if you want to make your head that big you'd need to size the rest to fit it.

I do not want to change the mesh size because changing the mesh size doesn't fix the invisible area around the head that can be shot at with a sniper.

sloppylego87

Why do you want the hotbox of the head to be shrunken? The rest of the body is still going to be available for attack.

Thisis true, but I want to make my game slightly more realistic so you can't shoot the invisible area next to someone's head to kill them.

ExtremeBuilder15

You didn't capitalize .Parent :l

Didn't know I hd to, that is a mistake on my part.

KingArthur147

This is the problem-- script.parent:connect(function(plr)

You must connect it to something, but in here, you don't connect it to anything, so the script will take no effect.

I connected it to Workspace.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
21 Jun 2016 08:59 AM
ExtremeBuilder15

I capitalized .Parent and it didn't call the function, when I ran studio with my player, head size stayed the same.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
21 Jun 2016 09:04 AM
Change it to 10,10,10 to see if it's even running that line.
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
21 Jun 2016 04:16 PM
I attempted changing it to 10,10,10 and that didn't work either.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
22 Jun 2016 08:05 AM
Bump.


"Naw naw naw, you can't do that to me fam. Remember when I helped you out last week?" ~Me, my shelf, and pie
Report Abuse
Post12346 is not online. Post12346
Joined: 21 May 2011
Total Posts: 323
09 Jul 2016 04:06 PM
Bumpity.


"Your lack of grammar is causing me to lose brain cells." ~Anonymous
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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