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: How to resize hats correctly?

Previous Thread :: Next Thread 
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 May 2016 08:06 PM
Im running this to rescale the mesh inside of the handle, but the positioning is off.

scale = 2

for _, v in pairs (char:GetChildren()) do -- Char = Character
if v:IsA("Hat") then
v.Handle.Mesh.Scale = Vector3.new(1*scale, 1*scale, 1*scale)
end
end
Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
24 May 2016 08:24 PM
localscript

local scale = 2
for _, v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do -- Char = Character
if v:IsA("Hat") then
v.Handle.Mesh.Scale = Vector3.new(scale*1, scale*1, scale*1)
end
end


--Briicks
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 May 2016 08:29 PM
I just mentioned that char = Character.
local plyr = game:GetService("Players").LocalPlayer
local char = plyr.Character

You didnt change anything but that.
Im saying that the offsets are off
Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
24 May 2016 08:30 PM
Good for you, the script works so don't complain.


--Briicks
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 May 2016 08:35 PM
Okay poser
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 May 2016 11:49 PM
Bump
Report Abuse
arthas045 is not online. arthas045
Joined: 07 May 2014
Total Posts: 296
25 May 2016 12:15 AM
Whatever that poser said.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
25 May 2016 12:39 AM
The result of scripting helpers and scripter a combined
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
25 May 2016 03:27 AM
scale = 2

for _, v in pairs (char:GetChildren()) do -- Char = Character
if v:IsA("Hat") then
v.Handle.Mesh.Scale = v.Handle.Mesh.Scale*scale
end
end
Report Abuse
Mr_OT is not online. Mr_OT
Joined: 05 Feb 2012
Total Posts: 11315
25 May 2016 04:26 AM
You guys don't get it, he wants to know how to offset it right.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
25 May 2016 09:32 AM
^^

Because theyre all just bunched up together atm
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