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 » Scripters
Home Search
 

Re: #Triggered

Previous Thread :: Next Thread 
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
30 Jul 2016 11:00 PM
I've been trying to fix this for about 6 hours, I keep going back and fourth between spawn(function(), but spawn(function() keeps glitching everything so I have no choice but to go to coroutine.wrap(function().. And it's only changing 1 gui at a time and I want it to change ALL the frames... ._.

local function Regular()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
for i = 0,1,0.01 do
local b = coroutine.wrap(function()
v.BorderColor3 = Color3.new(0,0,0)
v.BackgroundColor3 = Mode1:lerp(EndMode1,i)
wait()
end)
b()
end
wait(1)
for x = 0,1,0.01 do
local bb = coroutine.wrap(function()
v.BorderColor3 = Color3.new(0,0,0)
v.BackgroundColor3 = EndMode1:lerp(Mode1,x)
wait()
end)
bb()
end
end
end
end

local function Border()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
for i = 0,1,0.01 do
local bbb = coroutine.wrap(function()
v.BackgroundColor3 = Color3.new(0,0,0)
v.BorderColor3 = Mode2:lerp(EndMode2,i)
wait()
end)
bbb()
end
wait(1)
for x = 0,1,0.01 do
local bbbb = coroutine.wrap(function()
v.BackgroundColor3 = Color3.new(0,0,0)
v.BorderColor3 = EndMode2:lerp(Mode2,x)
wait()
end)
bbbb()
end
end
end
end

local function RotateR()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") then
local a = coroutine.wrap(function()
v.BorderColor3 = Color3.new(0,0,0)
v.BackgroundColor3 = Color3.new(1,1,1)
end)
a()
wait(1)
for pi = 0,180,1 do
local aa = coroutine.wrap(function()
v.Rotation = pi
wait()
end)
aa()
end
end
end
end

local function RotateB()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") then
local aaa = coroutine.wrap(function()
v.BackgroundColor3 = Color3.new(0,0,0)
v.BorderColor3 = Color3.new(1,1,1)
end)
aaa()
for pi = 0,180,1 do
local aaaa = coroutine.wrap(function()
v.Rotation = pi
wait()
end)
aaaa()
end
end
end
end


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 12:32 AM
hi someone pls


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
Adrian12094 is not online. Adrian12094
Joined: 01 Feb 2014
Total Posts: 3172
31 Jul 2016 12:34 AM
this is worth millions to debug


#:lua
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 12:40 AM
I'm still trying to fix it... Give me a break pls


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
Adrian12094 is not online. Adrian12094
Joined: 01 Feb 2014
Total Posts: 3172
31 Jul 2016 12:42 AM
Good luck with that ._.


#:lua
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 12:44 AM
Ok, #1. That was selfish of you tbh.
#2, you could've at least told me what I did wrong.


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
Adrian12094 is not online. Adrian12094
Joined: 01 Feb 2014
Total Posts: 3172
31 Jul 2016 12:46 AM
Lmao since when is saying "good luck" selfish?

This is hard to understand since I don't know what "couroutine" is.

What? Do you want me to study the entire wiki for it?


#:lua
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 12:47 AM
Oh, well I take "good luck with that" as rude sarcasm so... Especially on this forum. lol'd


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
Adrian12094 is not online. Adrian12094
Joined: 01 Feb 2014
Total Posts: 3172
31 Jul 2016 12:49 AM
I never used it as sarcasm..


Well I can't remember the last time I did..


#:lua
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 12:53 AM
ok ok, sorry for being salty. This script is dehumanizing me. foreal.


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Jul 2016 02:00 AM
instead of doing

local a = coroutine.wrap(function()
print("meh")
end)
a()

you can do

coroutine.wrap(function()
print("meh")
end)()

also i dont know what is going wrong or what is throwing errors so specify please
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 02:08 AM
I know.. I tried that but it's still firing 1 thing at a time so I'm honestly done, I've been trying to fix this for like 8 hours now.. Ridiculous..


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 02:11 AM
This is the new version, for for some reason for "Border()" and "Regular()" they both aren't changing all the Frames.. :/ Same with Flash.

local function Flash()
repeat wait(2)
Value = Value - 1
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
v.BorderColor3 = Color3.new(1,1,1)
coroutine.wrap(function()
for i = 0,1,0.1 do
v.BackgroundTransparency = i
wait()
if Value == 0 then
break
else
print("Not Broken")
end
end
end)()
v.BackgroundColor3 = Color3.new(math.random(),math.random(),math.random())
coroutine.wrap(function()
for i = 1,0,-0.1 do
v.BackgroundTransparency = i
wait()
if Value == 0 then
break
else
print("Not Broken")
end
end
end)()
end
end
until Value == 0
coroutine.wrap(function()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
coroutine.wrap(function()
for i = 1,0,-0.1 do
v.BackgroundTransparency = i
v.BackgroundColor3 = v.BackgroundColor3:lerp(EndMode1, i)
wait()
end
end)()
end
end
end)()
end

local function Regular()
coroutine.wrap(function()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
v.BorderColor3 = Color3.new(1,1,1)
coroutine.wrap(function()
for i = 0,1,0.1 do
v.BackgroundColor3 = Mode1:lerp(EndMode1, i)
wait()
end
end)()
wait(1)
coroutine.wrap(function()
for i = 0,1,0.1 do
v.BackgroundColor3 = EndMode1:lerp(Mode1, i)
wait()
end
end)()
end
end
end)()
end

local function Border()
coroutine.wrap(function()
for i,v in pairs(SurfaceGui:GetChildren()) do
if v:IsA("Frame") and v.Name == "Frame" then
v.BackgroundColor3 = Color3.new(1,1,1)
coroutine.wrap(function()
for i = 0,1,0.1 do
v.BorderColor3 = Mode1:lerp(EndMode1, i)
wait()
end
end)()
wait(1)
coroutine.wrap(function()
for i = 0,1,0.1 do
v.BorderColor3 = Mode1:lerp(EndMode1, i)
wait()
end
end)()
end
end
end)()
end



hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 02:11 AM
By changing them I mean changing them all at once btw, it keeps doing 1 at a time and it's irritating me since I've literally tried everything.. :/


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 02:20 AM
@TheDaily

Everything I code never has errors. The only time I make legit errors is whenever I misspell something pretty much. The problem here is that it's not changing all the GUI's transparency, color at the same time. By color I mean BorderColor3, and the regular backgroundcolor3


hi r u ok <-- See that right there? That's a stolen siggy!
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
31 Jul 2016 03:38 AM
Maybe this will help :) prntscr com/bzqun0



(hint: you should only need one coroutine there)
Report Abuse
i_Movie is not online. i_Movie
Joined: 06 Apr 2014
Total Posts: 11725
31 Jul 2016 02:16 PM
I need 2, this is dealing with multiple frames so I need another coroutine to make them all fade back in again.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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