|
Varibles
C = game.Workspace.Part
C = game.Players.Darkstrike3
C = game.Lighting.Part
C = game.StarterGui.Gui
__________________________________________
Strings
"Hi"
__________________________________________
Storing numbers
C = 9
__________________________________________
Methods
script.Parent:Destory
script.Parent:Copy
etc...
__________________________________________
Functions
function thisisafunction()
function's can be anything you want
__________________________________________
End
ends a script
__________________________________________
Connection line
script.Parent.Touched:Connect()
Function goes inside the ()
before that goes what makes it
__________________________________________
Vector3/Cframe
Vector3 can be used for the Size of the brick and the position
Cframe is used for the position only
Vector3 if theres another brick at the position the brick will go ontop of the other brick
CFrame when you move a brick with this if theres another brick at the same position the brick will go inside the other
c = game.Workspace.Part1
c.Size = Vector3.new(5,5,5)--changes the size
c.Position = Vector3.new(5,5,5)--Movies the brick
c.CFrame = CFrame.new(5,5,5)
__________________________________________
Loops
while true do
while true do
print("Hi")
end-- needs a break, a end wont work with loops, if end then it prints Hi over and over forever
That will never end always printing Hi
while wait(2) do--waits every 2 seconds then prints Hi every 2 seconds
print("Hi")
end--needs a break, if end it will always print Hi
----------------------------
For loop
for i=1, 4 do -- prints 4 times then ends
print("Hi")
end--ends after its printed Hi 4 times
___________________________________________
Instance
c = Instance.new("Part") always make a instance in a varieable like that
c.Parent = game.Workspace--That parents it, this is how you move stuff from like Lighting or starterGui to workspace
____________________________________________
Output
if you have your script done and it says eof expected near end that means you either have to manny ends or not enough
____________________________________________
Nil
nil makes the object delete but it can be brought back
im actually not sure if you want it to completley delete use the :Destroy() method
if you use the :Remove() method it just makes it nil so use destroy to completley delete stuff
_____________________________________________
Tables
ok a table is used for making stuff simpiler
when you use varieables you can only tag one object
a table is used to tag more then one object, or string, or number
table = {} -- thats a empty table
Tables are made by using {} while variebles are made with ()
______________________________________________
findFirstChild
game.Workspace: --put a : not a . methods have to have a : and findFirstChild is a method
game.Workspace:findFirstChild("Weres Elmo")
and when you use this method you put the string things around the name of the object
________________________________________
Camera
CameraSubject is the brick that the camera will folow
so it would go like this
cam = game.Workspace.CurrentCamera
cam.CameraSubject = game.Works
C = game.Workspace.CurrentCamera
c.CameraSubject = game.Workspace.joshrocks101.Humanoid
thats how you get the camera to folow a player again
|
|
siniiJoin Date: 2011-09-30 Post Count: 15218 |
Trying to look so smart by posting scripts for personal use, eh? Why not save it on your computer, instead of showing off? |
|
|
Because my computer i have this saved on is freezing whenever i try sending it to E mail, its just to remind me how to do things |
|
siniiJoin Date: 2011-09-30 Post Count: 15218 |
Excuses, excuses. I hope this thread gets buried so you never find it again. That will teach you not to be a smаrtаss. |
|
|
-_-
Im not, look i simply can't save it to anything else, im a newbie scripter so i need this to remind me on how to do things untill i can just remember it all |
|
siniiJoin Date: 2011-09-30 Post Count: 15218 |
If you can't save that on your computer, then you should probably take your computer to a shop; get it fixed. |
|
|
I would but i dont have enough to fix it, hey its all a dam trojan virus fault |
|
siniiJoin Date: 2011-09-30 Post Count: 15218 |
[ Content Deleted ] |
|
|
LOL no i was playing Roblox and ONLY roblox was opened at the time |
|
TheMyrcoJoin Date: 2011-08-13 Post Count: 15105 |
I can go in and discuss...but this guy is simply not experienced enough for that... |
|
XxJimmyxXJoin Date: 2009-02-15 Post Count: 7380 |
Wrong forum. |
|
|
Xx-- I can post this wherever i want, its not for anyone else, hence the title DO NOT READ, its just meant for ME |
|
Grove537Join Date: 2010-02-05 Post Count: 3478 |
Why not put it in the Scripters or Scripting helpers forum >_>
|
|
SulfoneJoin Date: 2010-08-19 Post Count: 8046 |
Why not put it in Roblox Talk so it gets buried by spam and random posts? |
|
VareityJoin Date: 2011-10-07 Post Count: 1737 |
Put it on your NOTEPAD. |
|
XxJimmyxXJoin Date: 2009-02-15 Post Count: 7380 |
@DarkStrike3, HENCE the name of the forum. Get out. |
|