crazyblox
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 6139 |
|
|
| 27 Jun 2013 11:26 AM |
I have this script to make the Handle in the hat virtually weightless, but the hats then fall off my character. Any idea how to fix this?
wait() player = script.Parent.Parent for index,hats in pairs(player.Character:GetChildren()) do if hats:IsA("Hat") and hats:findFirstChild("Handle") then hats.Handle.FormFactor = "Custom" hats.Handle.Size = Vector3.new(0.2, 0.2, 0.2) hats.Handle:MakeJoints() end end |
|
|
| Report Abuse |
|
|
Penjuin3
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 175 |
|
|
| 27 Jun 2013 11:32 AM |
player = script.Parent.Parent for index,hat in pairs(player.Character:GetChildren()) do if hat:IsA("Hat") and hats:findFirstChild("Handle") then Spawn(function() hat.Handle.FormFactor = "Custom" hat.Handle.Size = Vector3.new(0.2,0.2,0.2) hat.Parent = nil wait() hat.Parent = player.Character end) end end
Try this. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2013 11:37 AM |
Forgive me if I'm wrong (I'm really tired right now), but wouldn't Vector3.new just change the size of the handle in relation to what the original size is?
It seems to me you'd want
hat.Handle.Size = CFrame.new(0.2,0.2,0.2)
Once again, if I'm wrong, I'm REALLY tired right now XD |
|
|
| Report Abuse |
|
|
crazyblox
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 6139 |
|
| |
|
Penjuin3
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 175 |
|
| |
|