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: Help with a script, please.

Previous Thread :: Next Thread 
USArockssoccer15 is not online. USArockssoccer15
Joined: 28 Jun 2010
Total Posts: 9719
21 Apr 2013 05:01 PM
I don't want the Robloxian to touch it again or else the hint will reappear. How do I delete it when the countdown is happening?

hi = Instance.new("Hint")

if hit.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raidteamcolor) then
hi.Parent = game.Workspace
hi.Text = "Hostiles capture in 10.."
wait(1)
hi.Text = "Hostiles capture in 9..."
wait(1)
hi.Text = "Hostiles capture in 8...."
wait(1)
hi.Text = "Hostiles capture in 7..."
wait(1)
hi.Text = "Hostiles capture in 6.."
wait(1)
hi.Text = "Hostiles capture in 5..."
wait(1)
hi.Text = "Hostiles capture in 4...."
wait(1)
hi.Text = "Hostiles capture in 3..."
wait(1)
hi.Text = "Hostiles capture in 2.."
wait(1)
hi.Text = "Hostiles capture in 1..."
wait(1)
hi.Text = "Hostiles had captured the terminal!"
script.Parent.BrickColor = BrickColor.new(raidteamcolor)
end
if script.Parent.BrickColor == BrickColor.new(raidteamcolor) then
game.Workspace.hi:Remove()
end
Report Abuse
USArockssoccer15 is not online. USArockssoccer15
Joined: 28 Jun 2010
Total Posts: 9719
21 Apr 2013 05:02 PM
Would it be better if the Brick's color turn to (raidteamcolor) once the Hostiles is capturing it?

What else is a better way?
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
21 Apr 2013 05:03 PM
hi = Instance.new("Hint")
thingy = 0
if hit.Parent:findFirstChild("Humanoid") ~= nil and thingy == 0 then
thingy = 1
if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raidteamcolor) then
hi.Parent = game.Workspace
hi.Text = "Hostiles capture in 10.."
wait(1)
hi.Text = "Hostiles capture in 9..."
wait(1)
hi.Text = "Hostiles capture in 8...."
wait(1)
hi.Text = "Hostiles capture in 7..."
wait(1)
hi.Text = "Hostiles capture in 6.."
wait(1)
hi.Text = "Hostiles capture in 5..."
wait(1)
hi.Text = "Hostiles capture in 4...."
wait(1)
hi.Text = "Hostiles capture in 3..."
wait(1)
hi.Text = "Hostiles capture in 2.."
wait(1)
hi.Text = "Hostiles capture in 1..."
wait(1)
hi.Text = "Hostiles had captured the terminal!"
script.Parent.BrickColor = BrickColor.new(raidteamcolor)
end
if script.Parent.BrickColor == BrickColor.new(raidteamcolor) then
game.Workspace.hi:Remove()
thingy = 0
end
Report Abuse
USArockssoccer15 is not online. USArockssoccer15
Joined: 28 Jun 2010
Total Posts: 9719
21 Apr 2013 05:04 PM
Thanks, but last question, what does a "Thingy" do?
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
21 Apr 2013 05:06 PM
if the value of thingy at the top is 0, then it does the script, then it sets thingy to 1, so the script wont run again, and at the end it sets thingy to 0 so it can be captured again
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
21 Apr 2013 05:07 PM
thingy can be anything....
you could change it to blblblblblblbl and then should work again :)
Hope i helped :3
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
21 Apr 2013 05:09 PM
jesus

for i = 10, 0, -1 do
hi.Text = "Hostiles capture in "..i.."..."
end
hi:Destroy()
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
21 Apr 2013 05:09 PM
whoops forgot wait(1)
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