|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 21 Apr 2013 05:04 PM |
| Thanks, but last question, what does a "Thingy" do? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|