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 » Scripting Helpers
Home Search
 

Re: Health remover

Previous Thread :: Next Thread 
ToboboT is not online. 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
IFantastyScripter1 is not online. IFantastyScripter1
Joined: 25 Aug 2011
Total Posts: 25769
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 is not online. 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 is not online. 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
IFantastyScripter1 is not online. IFantastyScripter1
Joined: 25 Aug 2011
Total Posts: 25769
25 Jun 2013 07:46 PM
@usering

it was a free model that seems to work for me
Report Abuse
Usering is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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