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
 

Help

Previous Thread :: Next Thread 
ustolemyaccountdark is not online. ustolemyaccountdark
Joined: 24 Aug 2011
Total Posts: 1908
29 Oct 2012 09:44 PM
T = game.workspace.text

While true do
Wait(5)
X = Game.Instance.new(Message,game.workspace)
X.T print = "hello robloxians welcome"
Wait(5)
X:remove
Wait(.1)
T:remove
End
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
29 Oct 2012 09:46 PM
T = game.workspace.text

while true do
wait(5)
local X = Game.Instance.new("Message",game.workspace)
X.Text = "hello robloxians welcome"
wait(5)
X:Destroy()
wait(.1)
end
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
29 Oct 2012 09:46 PM
Get rid of half of the caps.

while true do
wait(5)
X = Instance.new(Message,game.workspace)
wait(5)
X:Destroy()
wait(.1)
T:Destroy()
end

You also never stated what T was.
Report Abuse
ustolemyaccountdark is not online. ustolemyaccountdark
Joined: 24 Aug 2011
Total Posts: 1908
29 Oct 2012 09:47 PM
Sorry for caps I'm on my iPad
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
29 Oct 2012 09:49 PM
Lua is case sensitive. All reserved words are lowercase.
Instance is not a child of game.
Instance is a table that is defined in each and every script by default.
When calling Instance.new, you supply a className as a string as the first argument.
The new object's parent is the second argument.
game.Workspace, not game.workspace

You set a value of a data field (MESSAGE.Text) using the = operator.
When you call a method, you use parenthesis.
You cannot remove a nil value.


FIX:


while true do
Wait(5)
X = Instance.new("Message",game.Workspace)
X.Text = "hello robloxians welcome"
Wait(5)
X:Remove()
end
Report Abuse
BJCarpenter is online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
29 Oct 2012 09:49 PM
End

SHOULD BE end.

But y would u want something like that in a loop anyway?

Please
Open View>Output. The error message should be staring u right in the face. (There r probaly errors before that.)

Gl,
Brian

PS. Like Wait should be wait. Please Open Output. You don't need an actual Human to correct spelling?!
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
29 Oct 2012 09:53 PM
" Like Wait should be wait."


Wait is a valid function.
Report Abuse
ustolemyaccountdark is not online. ustolemyaccountdark
Joined: 24 Aug 2011
Total Posts: 1908
29 Oct 2012 09:58 PM
I can't help it, my iPad forces me to uppercase it
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
29 Oct 2012 10:08 PM
> game.Workspace, not game.workspace

Either is acceptable.

¤¤ †KMXD† ¤¤
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
29 Oct 2012 10:12 PM
You can use game.workspace? :o
HAX
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
29 Oct 2012 10:14 PM
Yup, I implemented it myself. You're all welcome.

¤¤ †KMXD† ¤¤
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2012 10:18 PM
@Agent

local workspacecopy = game.Workspace:clone()
workspacecopy.Name = "workspace'
workspacecopy.Parent = game


~ Moo logic = logical logic ~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
29 Oct 2012 10:20 PM
lol u fail 18

¤¤ †KMXD† ¤¤
Report Abuse
iAdobe is not online. iAdobe
Joined: 22 May 2011
Total Posts: 367
29 Oct 2012 10:31 PM
I know 18, he is my troll buddy...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
29 Oct 2012 11:02 PM
I know him too.

¤¤ †KMXD† ¤¤
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