of     1   

84danie2
#35103218Friday, October 08, 2010 9:42 PM GMT

Basically, I want to make a hat giver that you can't remove when you press "=" ...How would I do this? Heres the basic hat giver 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 = "valcre hat" 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.3, 0) wait(5) debounce = true end end script.Parent.Touched:connect(onTouched)
crazypotato4
#35103372Friday, October 08, 2010 9:44 PM GMT

while true do wait() h.Parent = hit.Parent end
84danie2
#35103455Friday, October 08, 2010 9:45 PM GMT

THANK YOU! 8D
AgentFirefox
Top 100 Poster
#35103464Friday, October 08, 2010 9:45 PM GMT

Try this: debounce = true function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false w = Instance.new("Weld",hit.Parent.Head) p = Instance.new("Part") h.Name = "valcre hat" p.Parent = hit.Parent 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 w.C0 = CFrame.new(0, 0.3, 0) wait(5) debounce = true end end script.Parent.Touched:connect(onTouched)

    of     1