|
| 21 Sep 2013 04:29 PM |
what u do: fix that where the hat is over the head make it so its hat givers so it dont break
who can it msg me |
|
|
| Report Abuse |
|
|
| |
|
daruto3
|
  |
| Joined: 02 Dec 2008 |
| Total Posts: 8545 |
|
|
| 21 Sep 2013 04:30 PM |
edit the hat positioning in the script.
Join Stomp Legion today! |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 04:33 PM |
how here is the script
debounce = true
function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false h = Instance.new("Hat") p = Instance.new("Part") h.Name = "BoyNormalHair1Blond" p.Parent = h p.Position = hit.Parent:findFirstChild("Head").Position p.Name = "Handle" p.formFactor = 2 p.Size = Vector3.new(2, 0.8, 2) p.BottomSurface = 0 p.TopSurface = 0 p.Locked = true script.Parent.Mesh:clone().Parent = p h.Parent = hit.Parent h.AttachmentPos = Vector3.new(0, 0.15, -0.08) h.AttachmentRight = Vector3.new(1, -0, 0) h.AttachmentUp = Vector3.new(-0, 0.995, -0.0995) h.AttachmentForward = Vector3.new(-0, -0.0995, -0.995) wait(5) debounce = true end end
script.Parent.Touched:connect(onTouched)
--no it not boyhair |
|
|
| Report Abuse |
|
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 21 Sep 2013 04:36 PM |
h.AttachmentPos = Vector3.new(0, 0.15, -0.08) h.AttachmentRight = Vector3.new(1, -0, 0) h.AttachmentUp = Vector3.new(-0, 0.995, -0.0995) h.AttachmentForward = Vector3.new(-0, -0.0995, -0.995)
edit that part |
|
|
| Report Abuse |
|
|
daruto3
|
  |
| Joined: 02 Dec 2008 |
| Total Posts: 8545 |
|
|
| 21 Sep 2013 04:37 PM |
1, that script is more complicated then it has to be.
debounce = true
function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false h = Instance.new("Hat") p = Instance.new("Part") h.Name = "Hat Name" p.Parent = h p.Position = hit.Parent:findFirstChild("Head").Position p.Name = "Handle" p.formFactor = 0 p.Size = Vector3.new(2, 1, 1) p.BottomSurface = 0 p.TopSurface = 0 p.Locked = true script.Parent.Mesh:clone().Parent = p h.Parent = hit.Parent h.AttachmentPos = Vector3.new(0, -0.9, 0) wait(5) debounce = true end end
script.Parent.Touched:connect(onTouched)
p.Name = Roblox hat name
Join Stomp Legion today! |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 05:00 PM |
daruto do that do so it will give u multi hats and so u dont get gliched up so u can just touch and u get hat then next touch and get hat |
|
|
| Report Abuse |
|
|