VideoEVG
|
  |
| Joined: 15 Jul 2013 |
| Total Posts: 1867 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 08 Jun 2014 06:30 AM |
You obviously can't script.
hard = function() return "idiot" end
|
|
|
| Report Abuse |
|
|
VideoEVG
|
  |
| Joined: 15 Jul 2013 |
| Total Posts: 1867 |
|
|
| 08 Jun 2014 06:30 AM |
| iknow i am bad at them so i need a bit help. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 06:33 AM |
Then fix this. Text is not changing is the problem.
while script.Parent.Parent.Visible == true do v = math.random(10,15) script.Parent.Style = "Custom" script.Parent.TextColor3 = Color3.new(0,0,0) repeat script.Parent.Text = ""..v.."" v = v-1 wait(1) until v == 0 script.Parent.Style = "RobloxButtonDefault" script.Parent.TextColor3 = Color3.new(255,255,255) script.Parent.Text = "Click to Close Advertisement" script.Parent.MouseButton1Click:connect(function () script.Parent.Parent.Visible = false end) wait() end |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 08 Jun 2014 06:36 AM |
^
Is the frame visible when the script fires? |
|
|
| Report Abuse |
|
|
Zirge
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2993 |
|
|
| 08 Jun 2014 06:51 AM |
hey trioxide quick question:
lets say I got this infection script from a model a friend gave me, is there something I can do in the command bar or in making a script to remove all the infections, because they're all named the same thing? |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 08 Jun 2014 07:51 AM |
@zirge
while wait(0.05) do for _, v in pairs(game.Workspace:GetChildren()) do if v.Name == "NAMEOFVIRUS" then v:Destroy() end end
--ADD 3K TO MY POST COUNT-- u wot tifany? (ง ͠° ͟ل͜ ͡°)ง u want 2 go? |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:20 AM |
@Trioxide
Frame is not visible when the game starts. The GUI is min my models, you can find it on my profile. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:22 AM |
| Fahmis, just use tostring(v) |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 08 Jun 2014 08:22 AM |
while wait() do for _, v in pairs(game.Workspace:getChildren()) do local a = Instance.new("Fire", v); a.Spread = 999; a.Heat = 20; for i = 1, 5 do a:Clone().Parent = v; end end end
|
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:23 AM |
In addition to my previous post:
The Gui popps up 10 seconds after the start of the game (I scripted that to happen, works perfectly). Then I realise that the countdown isn't starting. There must be something wrong... |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:24 AM |
@Wreck
So [script.Parent.Text = tostring(v)] is what you meant? |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:26 AM |
And Fahmis, for countdowns, I recommend you use a for loop.
for i=1, math.random(10,15), 0 do script.Parent.Text = tostring(i) end |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:31 AM |
Wait. looks like there's an error.
You gave me this: for i=1, math.random(10,15), 0 do script.Parent.Text = tostring(i) end
shouldn't it be like this: for i=math.random(10,15), 0, -1 do script.Parent.Text = tostring(i) wait(1) end |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:33 AM |
| Add the wait, and i think mine should work properly. Cant test cause Im on iOS. Btw, i is how much it will decrease. so i = 1 means decrease by 1. But, when you call i inside the loop, it will return the current value. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:36 AM |
Have a look at the second example after the first picture:
http://wiki.roblox.com/index.php?title=For_loop#For |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:38 AM |
| I guess so, havent really used numeric fors in a while. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 08 Jun 2014 08:39 AM |
@fahmisack123
Well make it visible in studio. If the Frame is invisible when the game starts, the script will just ignore the loop. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:39 AM |
| @fahm On your first post, you were concatenating inside the string..... |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:45 AM |
| I said what the problem was, I don't know where exactly the problem IS |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 08:46 AM |
@triox, What should I do?
Make it visible in studio, then... |
|
|
| Report Abuse |
|
|
| |
|