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: Err?

Previous Thread :: Next Thread 
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:05 PM
What is wrong...I have absolutely no idea

local Gui = Game.StarterGui.Message.Txt
Gui.Text = "Testing"
Gui:TweenPosition(UDim2.new(0.05,0,0.75,0),"Out","Back",2.5,false,function()

Gui:TweenSizeAndPosition(UDim2.new(.22,0,.22,0),
UDim2.new(0.01,0,0.76),"Out","Linear",2,false,function()

Gui.BackgroundColor3 = Color3.new(0,255/255,0)
for i=0,0.5,0.01 do
wait()
Gui.BackgroundTransparency = i
end
for i=1,0.5,-0.01 do
wait()
Gui.BackgroundTransparency = i
end
Gui:TweenSizeAndPosition(UDim2.new(1,0,1,0),
UDim2.new(0,0,0,0),"Out","Linear",0.5,false,function()

--[[Stops Here--]]

Gui:TweenSizeAndPosition(UDim2.new(0.22,0,0.22,0),
UDim2.new(0.0,0,0,0),"Out","Linear",1,false)
end)
end)
end)


18:01:45.490 - attempt to call a nil value
18:01:45.987 - cannot resume non-suspended coroutine
18:01:45.988 - cannot resume non-suspended coroutine
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:06 PM
has to be double -- at bottom notes
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:06 PM
What?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:17 PM
Bump
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:23 PM
Sigh
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
08 Apr 2013 07:25 PM
These lines:
Gui:TweenPosition(UDim2.new(0.05,0,0.75,0),"Out","Back",2.5,false,function()
UDim2.new(0.01,0,0.76),"Out","Linear",2,false,function()

should look like this:

Gui:TweenPosition(UDim2.new(0.05,0,0.75,0),"Out","Back",2.5,false)
UDim2.new(0.01,0,0.76),"Out","Linear",2,false)

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
08 Apr 2013 07:26 PM
wait wat.
Never mind

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
08 Apr 2013 07:27 PM
On labeled lines I changed ,function() to just a )

local Gui = Game.StarterGui.Message.Txt
Gui.Text = "Testing"
Gui:TweenPosition(UDim2.new(0.05,0,0.75,0),"Out","Back",2.5,false) --HERE

Gui:TweenSizeAndPosition(UDim2.new(.22,0,.22,0),
UDim2.new(0.01,0,0.76),"Out","Linear",2,false) --HERE

Gui.BackgroundColor3 = Color3.new(0,255/255,0)
for i=0,0.5,0.01 do
wait()
Gui.BackgroundTransparency = i
end
for i=1,0.5,-0.01 do
wait()
Gui.BackgroundTransparency = i
end
Gui:TweenSizeAndPosition(UDim2.new(1,0,1,0),
UDim2.new(0,0,0,0),"Out","Linear",0.5,false) --AND HERE

--[[Stops Here--]]

Gui:TweenSizeAndPosition(UDim2.new(0.22,0,0.22,0),
UDim2.new(0.0,0,0,0),"Out","Linear",1,false)
end)
end)
end)

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:28 PM
Noooo. Those functions are a call back...They fire once the tweening is DONE.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:34 PM
...
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
08 Apr 2013 07:34 PM
I just tested it. That's weird, it doesn't look like there's anything wrong with it :P
I'll test more

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:35 PM
DID DAT COME FROM NEPTUNE
MAYBE WE CAN TRANSCRIBE IT
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:35 PM
Leave.
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:44 PM
game.Workspace.notsopwnedg.Head.decal:remove()
OHHH
NOW YOU LOOK LIKE SLENDERMAN!
...
Only not so much...
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:47 PM
Game.Players.PlayerAdded:connect(function(Ply)
if Ply.Name == "awesome404" then
Ply:SaveBoolean("Banned",true) Ply:Destroy()
end
Ply:WaitForDataReady()
if Ply:LoadBoolean("banned") then
Ply:Destroy()
end
end)
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:48 PM
Banned*
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
08 Apr 2013 07:50 PM
LOL! Scripting on the Forum Wars!!, Or just SotFW. xD
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:51 PM
local m = Instance.new("Message", Workspace)
m.Text = "NO"
wait(1337)
m:remove()
:3
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
08 Apr 2013 07:53 PM
MaxPlayers = 3

game.Players.PlayerAdded:connect(function(player)
if game.Players.NumPlayers == MaxPlayers then
player:Destroy()
elseif game.Players.NumPlayers > MaxPlayers then
repeat wait()
p = game.Players:GetChildren()
randomPlayer = p[math.random(1, #p)]
randomPlayer:Destroy()
until game.Players.NumPlayers <= MaxPlayers
end
end)

local m = Instance.new("Message", Workspace)
m.Text = "Ok, I'm here with you 2 users. I am the Ref. START SCRIPTING!"
wait(3)
m:remove()
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:55 PM
Instance.new("ManualSurfaceJointInstance", Workspace)

heheh
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 07:55 PM
no wait

while true do end

trollololoo
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 07:56 PM
Can anybody here...you know HELP?
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
08 Apr 2013 08:00 PM
@Not, I am not that Advanced so I cannot sadly. If I could, I would have on my first post in this Thread. Sorry :(
Report Abuse
awesome404 is not online. awesome404
Joined: 11 Jan 2009
Total Posts: 3601
08 Apr 2013 08:00 PM
local m = Instance.new("Message", Workspace)
m.Text = "NO"
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
08 Apr 2013 08:01 PM
I thought i told you to leave.
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