User talk:Legoboy144445 ROBLOX

ROBLOX Scripting
Introduction Scripting on ROBLOX is quite an Easy thing if you know how to do it properly. Mainly, scripting is called, 'Lua'.

Create your first Script

game.Workspace.legoboy144445.Head:Remove

This is telling the computer to Delete legoboy144445's Head. NOTE: Change legoboy144445 into the name of the person you wish to have their head deleted.

Making a Ban from place script

''This is a Easy script to make. If you're completely new to Rbx_Lua, then ignore this script. Simply open your place in ROBLOX Studio. Insert a Script, add this Code to the script:

banned = {"Person to ban1", "Person to ban2", "Person to ban3"} --Change the Person to ban1,2 and 3 into the people you wish to have automaticly banned from your place!

while true do --A Infinite Loop wait game.Players[banned]:Remove --Delete the defined ban wait(0.1) end''

Making a Torso Delete script (Easy)

game.Workspace.legoboy144445.Torso:Remove

Change legoboy144445's Name into yours.

Making a Torso Delete script (Intermediate)

game.Players.legoboy144445.Character.Torso:Remove

Making a Torso Delete script (Advanced)

s = game.Players.legoboy144445 s.Character.Torso:Remove

Make Some Gui's

Firstly, open up ROBLOX Studio, open the place you want to have your Gui Located in.

Next, open Tools. Insert > Object > GuiMain, put GuiMain into "StarterGui" Located in the Explorer Pane (View > Explorer)

Now, inside StarterGui>GuiMain, do - Insert> Object> TextLabel. In Properties (View> Properties) Select the TextLabel, and make the Position something like, "{0, 500}, {0, 100}" and the size something like, "{0, 100}, {0, 100}" Make the Text Whatever Text you wish to have.

Time of Day changer

This is a Basic Lighting Script. Put this code in a Script, parented in Lighting.

script.Parent.TimeOfDay = "00:00:00" --Change 00:00:00 into the Time you want.

IF you want to parent the Script in Workspace make it this code:

game.Lighting.TimeOfDay = "00:00:00" --Change 00:00:00 into the Time you want.

A Script to Insert Parts (Intermediate)

This uses Instance.new("") NOTE: This is for Intermediate Scripters!

''local p = Instance.new("Part") --Create A Part p.Parent = game.Workspace --Parented into Workspace p.Size = Vector3.new(5, 5, 5) --Change 5, 5, 5 to the size of the Part p.Anchored = true --Anchore this p.BrickColor = BrickColor.new("Bright red")''

A Script for floating Parts (Intermediate) ''local p = Instance.new("Part") --Create A Part p.Parent = game.Workspace --Parented into Workspace p.Size = Vector3.new(5, 5, 5) --Change 5, 5, 5 to the size of the Part p.Anchored = false --Don't Anchore this p.BrickColor = BrickColor.new("Bright red") --Color p.Name = "FlyBrick" --Name local a = Instance.new("BodyVelocity")--Body Velocity (Makes it fly) a.Parent = game.Workspace.FlyBrick --Parented into Brick game.Workspace.FlyBrick.BodyVelocity.velocity = Vector3.new(0,10,0)''

That's all in this Section right now.