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: Can You Help Me With this?

Previous Thread :: Next Thread 
ipod216 is not online. ipod216
Joined: 21 May 2010
Total Posts: 952
10 Jun 2012 01:07 PM
Err I'm just thinking but will this work?


Instance.new("Part",game.Workspace)
Game.Workspace.Part.Transparency = 0.5


I want to make a half visible Brick while im in-game on SB. Do you think this will work?


SB is Script Builder.

Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
10 Jun 2012 01:12 PM
Part = Instance.new("Part", game.Workspace)
Part.Transparency = 0.5

That's an easier method. But yes your script will work if there is no other part in Workspace named "Part".
Report Abuse
ipod216 is not online. ipod216
Joined: 21 May 2010
Total Posts: 952
10 Jun 2012 01:16 PM
I haven't been on roblox for like 2 Years, I'm a little rusty... Hmm I'll try this..


x = Instance.new("Part")
x.Transparency = 0.5
x.Vector3.new = 5,5,5


You think that would be fine? Because I forget how to make it go to my character. Lol

Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
10 Jun 2012 01:21 PM


x = Instance.new("Part",game.Workspace) --Sets a variable, Instance.new("Part") creates a part, game.Workspace sets parent
x.Size = Vector3.new(0,0,0) --Sets size (x,y,z)
x.Name = "Part" --Name, put in quotation marks
x.Position = Vector3.new(0,0,0) --Position, same as Size
x.Anchored = true --Anchored or not? Always a true or false value.
x.Locked = true --Same as Anchored
x.BrickColor = BrickColor.new(126) --BrickColor. Use numberic values or BrickColor.new("Really red")
x.CanCollide = true --Same as Anchored
x.Shape = Block --Block. Either Block, Ball or Cylinder
x.Transparency = 0 --0 being none, 1 being invisible. All others inbetween.
x.Reflectance = 0 --Same as Transparency
x.TopSurface = 0 --Smooth --Top surface of brick. There are six sides, see brick for more.
x.Material = 0 --Plastic. Materials have numberic values as well as "Plastic"

--MORE--

--Archivable, like Anchored, is a true or false value.
--RotVelocity and Velocity are set as (x,y,z) values, just like Size and Position.
--Elasticity and Friction are set between 0 and 1, like Transparency and Reflectance.
--FormFactor is like Shape, see brick for values.
--The only thing left is your Surface Inputs. Your Params will be between 0 and 1 and your SurfaceInputs will be of certain values.
--You might want to change a parent so use x.Parent = game.Workspace

Here. I made this. Have this. :b
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
10 Jun 2012 01:22 PM
Instance.new(Object to make, Object parent)
Will make "Object to make", parented in "Object parent".

x = Instance.new("Part", game.Players.ipod216.Character)

Vector3 is a value type, I'm not sure if you were using position or size, so here:

x.Size = Vector3.new(5, 5, 5)
Report Abuse
ipod216 is not online. ipod216
Joined: 21 May 2010
Total Posts: 952
10 Jun 2012 07:46 PM
OH Sorry! I was actually referring to size, This is wut I meant to put

x.Vector3.new.Size = 5,5,5
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