ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 25 Jun 2013 07:39 PM |
game.Players.PlayerAdded:connect(function(play1) play1.CharacterAdded:connect(function (play2) script.Parent.HealthGUI:remove() end) end) |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2013 07:41 PM |
This is for health:
Debounce = true Toggled = false Screen = script.Parent.Parent Char = Screen.Parent.Parent.Character function onButtonClicked() if (Debounce == true and Char:findFirstChild("FakeHat") ~= true) then if Toggled ~= true then select() Debounce = false Toggled = true Hat = Instance.new("Hat") Part = Instance.new("Part") Hat.Name = "FakeHat" Part.Name = "Handle" Part.formFactor = 0 Hat.AttachmentForward = Vector3.new(0,0,-1) Hat.AttachmentPos = Vector3.new(0,-.1,-.01) Hat.AttachmentRight = Vector3.new(1,0,0) Hat.AttachmentUp = Vector3.new(0,0,0) Part.Size = Vector3.new(2,1,1) Part.BottomSurface = 0 Part.TopSurface = 0 Part.CanCollide = false Part.Parent = Hat Part.Position = Char:findFirstChild("Head").Position Part.Locked = true Color = tostring(Char.Head.BrickColor) Part.BrickColor = BrickColor.new(Color) Char.Head.Transparency = 1 Char.Head.Mesh:clone().Parent = Part Hat.Parent = Char Weld = Instance.new("Weld") Weld.Parent = Part Weld.Part0 = Char.Head Weld.Part1 = Part Part.Name = "FakeHat" Part.Parent = Char Hat:remove() script.Parent.Text = "Show Name" wait(.65) Debounce = true unselect() else select() Debounce = false Char.FakeHat:remove() Char.Head.Transparency = 0 Toggled = false script.Parent.Text = "Hide Name" wait(.65) Debounce = true unselect() end end end script.Parent.MouseButton1Click:connect(onButtonClicked)
function select() script.Parent.BackgroundColor3 = Color3.new(128/255,128/255,128/255) script.Parent.BorderColor3 = Color3.new(50/255,50/255,50/255) script.Parent.TextColor3 = Color3.new(50/255,50/255,50/255) end function unselect() script.Parent.BackgroundColor3 = Color3.new(1,1,1) script.Parent.BorderColor3 = Color3.new(0,0,0) script.Parent.TextColor3 = Color3.new(0,0,0) end
|
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 25 Jun 2013 07:44 PM |
| I just want to remove the HealthGUI in the PlayerGui when ever you enter.... |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 25 Jun 2013 07:45 PM |
What is that @iFantasy? I think he wants a script that can remove the HealthGUI. Put this into a LocalScript inside StarterGui:
wait() playerGui = script.Parent:WaitForChild("HealthGUI") playerGui:Destroy()
~ Add 6276 posts to my post count ~ |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2013 07:46 PM |
@usering
it was a free model that seems to work for me |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 25 Jun 2013 07:48 PM |
But he wanted to remove the HealthGUI in the PlayerGui, not the bar above your character/
~ Add 6276 posts to my post count ~ |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 26 Jun 2013 10:20 AM |
| xD thanks Usering. And a local script right? |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 26 Jun 2013 12:02 PM |
Well I guess it doesn't need to be.
~ Add 6276 posts to my post count ~ |
|
|
| Report Abuse |
|
|