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: Instance exercices

Previous Thread :: Next Thread 
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
04 Nov 2014 10:04 AM
I just started scripting and started out with learning about instances and inserting them into bricks. That's kind of easy and repeating the same.

Can you guys give me some exercises?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
04 Nov 2014 10:10 AM
theres no such thing as instance exercise, you just have one line to remember

-_-
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
04 Nov 2014 10:10 AM
Oh lol, really? Alright, thanks.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 Nov 2014 10:12 AM
Make a new Instance constructor that allows you to give it a table containing the properties of the instance you are creating.

It must work both of these ways:
Instance.new("Part", workspace, {Transparency = 0.5, Anchored = true, CanCollide = false}
and
Instance.new("Part", {Transparency = 0.5, Anchored = true, CanCollide = false})


If you need help, I can give you a tip.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Nov 2014 10:12 AM
Make instances where the player clicks
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
04 Nov 2014 10:20 AM
Instance.new({Anchored = false, Transparency = 1, CanCollide = false}, Workspace.BasePlate)

This is what I did, it said

String expected

I think I need to tag something or am I wrong?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 Nov 2014 10:24 AM
No, I mean you make a new constructor.

Instance2 = {}
Instance2.new = function(Arg1, Arg2, Arg3)
--Add stuff here to make it work
end
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
04 Nov 2014 10:29 AM
Lol all I know is
Instance.new("Fire", script.Parent)
or with smoke
or sparkles
and more objects

Then I get all happy and think that I'm a master scripter
lol anyways aside from me dreaming about being a master scripter


I don't think I can use functions, I just started out.
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