User:Mindraker/Script Builder Intro

From Legacy Roblox Wiki
Jump to navigationJump to search

Introduction

This is intended for people who are new to Anaminus' Script Builder, and are looking for some basic examples. Please read Anaminus' guide for directions.

Kill me

Replace "username" with your username in the following example. This is a simple example that will kill you.

Create/fgh
Edit/fgh
Remove(game.Workspace.username.Head) 
exit/
Run/fgh

Hello World

The following example prints a message that says "Hello World" for 10 seconds, and then removes it:

Create/def
Edit/def
local m = Instance.new("Message") m.Parent = game.Workspace m.Text = "Hello World!" wait(10) Remove(m)
exit/
Run/def

Enormous head

This example gives you a proportionally larger head:

Create/bcd
Edit/bcd
game.Workspace.username.Head.Mesh.Scale = Vector3.new (20, 20, 20)
exit/
Run/bcd

Insert and remove a (red) brick

Create/qqq
Edit/qqq
p = Instance.new("Part")
p.Name = "Brick"
p.Parent = game.Workspace
p.Position = Vector3.new(0, 0, 0)
p.BrickColor = BrickColor.new(21)
p.Size = Vector3.new(1, 1, 1)
p.Anchored = true
wait(5)
Remove(p)
exit/
Run/qqq

Insert a large ball in the sky

(Shape = 0 corresponds to a sphere)

Create/ooo
Edit/ooo
g = Instance.new("Part") 
g.Size = Vector3.new(50,50,50) 
g.BrickColor = BrickColor.Random() 
g.Position = Vector3.new(0,75,0) 
g.Locked = true 
g.Parent = game.Workspace 
g.Anchored = true 
g.Shape = 0
g.RightSurface = 3 
g.BottomSurface = 3 
g.LeftSurface = 3 
g.FrontSurface = 3 
g.BackSurface = 3 
g.Name = "planet1" 
wait(10)
Remove(g)
exit/
Run/ooo


Make the earth rotate

Create/wer
Edit/wer
while true do 
wait(1) 
game.Lighting.TimeOfDay = "1:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "1:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "1:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "2:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "2:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "2:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "3:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "3:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "3:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "4:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "4:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "4:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "5:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "5:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "5:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "6:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "6:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "6:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "7:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "7:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "7:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "8:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "8:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "8:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "9:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "9:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "9:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "10:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "10:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "10:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "11:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "11:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "11:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "12:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "13:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "13:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "13:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "14:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "14:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "14:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "15:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "15:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "15:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "16:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "16:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "16:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "17:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "17:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "17:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "18:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "18:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "18:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "19:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "19:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "19:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "20:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "20:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "20:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "21:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "21:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "21:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "22:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "22:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "22:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "23:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "23:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "23:40:00" 
wait(1) 
game.Lighting.TimeOfDay = "24:00:00" 
wait(1) 
game.Lighting.TimeOfDay = "24:20:00" 
wait(1) 
game.Lighting.TimeOfDay = "24:40:00" 
end 
exit/
Run/wer

(You can edit the script and insert a break line to end this script).

See also

Anaminus Script Builder

Forum thread on scripts