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: Any of you guys know a hard script?

Previous Thread :: Next Thread 
VideoEVG is not online. VideoEVG
Joined: 15 Jul 2013
Total Posts: 1867
08 Jun 2014 06:28 AM
Post it here.
Report Abuse
Trioxide is not online. 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 is not online. 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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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 is not online. 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 is not online. 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 is not online. 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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
08 Jun 2014 08:22 AM
Fahmis, just use tostring(v)
Report Abuse
Stefan631 is not online. 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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
08 Jun 2014 08:24 AM
@Wreck

So [script.Parent.Text = tostring(v)] is what you meant?
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
08 Jun 2014 08:38 AM
I guess so, havent really used numeric fors in a while.
Report Abuse
Trioxide is not online. 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
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
08 Jun 2014 08:39 AM
@fahm On your first post, you were concatenating inside the string.....
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
08 Jun 2014 08:45 AM
I said what the problem was, I don't know where exactly the problem IS
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
08 Jun 2014 08:46 AM
@triox, What should I do?

Make it visible in studio, then...
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
08 Jun 2014 09:38 AM
b1
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