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: Messahe not removing.

Previous Thread :: Next Thread 
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
28 Oct 2014 10:09 AM
Sometimes the message "Alliance with "..v.Name.." done." won't get destroyed.
nothing in output


local Player = game:GetService("Players").LocalPlayer
repeat wait() until Player
Alliances = Player:FindFirstChild("Alliances")

script.Parent.MouseButton1Down:connect(function()
local list = game.Players:getChildren()
for i,v in pairs(list) do
if v.TeamColor == BrickColor.new("Really blue") then
if Alliances:findFirstChild(v.Name) ~= nil then
Alliances[v.Name]:Destroy()
local m = Instance.new("Message")
m.Parent = Player.PlayerGui
m.Text = "Alliance with "..v.Name.." undone."
wait(2)
m:Destroy()
else if Player and v and Alliances then
local newAlliance = Instance.new("StringValue")
newAlliance.Name = v.Name
newAlliance.Parent = Alliances
local m = Instance.new("Message")
m.Parent = Player.PlayerGui
m.Text = "Alliance with "..v.Name.." done."
wait(2)
m:Destroy()
end
end
end
end
end)
Report Abuse
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
28 Oct 2014 10:45 AM
bump
Report Abuse
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
28 Oct 2014 11:03 AM
can noone see an error?
Report Abuse
bibo5o is not online. bibo5o
Joined: 17 Jan 2009
Total Posts: 414
28 Oct 2014 11:16 AM
Nope, I can't see anything wrong with that.
Report Abuse
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
28 Oct 2014 10:12 PM
help please
Report Abuse
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
29 Oct 2014 11:11 AM
still need help
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
29 Oct 2014 11:34 AM
This is in a localScript, and therefor the most immediate fault I can think of is if the script is removed (Player death or somehting) before the m:Destroy() line
Report Abuse
DrunkAustralian is not online. DrunkAustralian
Joined: 02 Dec 2006
Total Posts: 3062
29 Oct 2014 11:35 AM
Discovered the problem anyway, it only happens if you close the gui before it's done.

kind of annoying :(
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
29 Oct 2014 11:40 AM
Use Debris.
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