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: how to script

Previous Thread :: Next Thread 
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:19 PM
i've been on roblox for quite a while

and i still don't know how to script

is there anything/anyone that can help me
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:32 PM
is this a good way to start

print('help')
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
29 Jul 2014 11:32 PM
print("yes")
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:32 PM
wow!
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
29 Jul 2014 11:36 PM
value = "Yes! Yes!"

print(value)

value = "No! No!"

print(value)

value = "20"

print(value + 1)
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:36 PM
is there anything else i can try
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
29 Jul 2014 11:37 PM
value = "Yes! Yes!" -- starts off with Yes, twice =D

print(value) -- oh mah gerd "Yes! Yes!" is in the OUTPUT :O

value = "No! No!" -- no pls go back to yes, Sets value to well "No! No!" in string

print(value) -- y u print "No! No!" in the output

value = "20" -- Number in string

print(value + 1) -- omg 21! in teh output
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:39 PM
i dont get it completely!

Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
29 Jul 2014 11:39 PM
um


yeah



function calculate(Arguementone, Arguementtwo) -- issues function, with 2 args
print(Arguementone..Arguementtwo)-- prints both args
return nil, nil -- makes sure that it sets them to nothing
end -- the end


calculate("Oh my god", " I made a sentence with two strings")-- self explanatory
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
29 Jul 2014 11:40 PM
I can only do so much


check the scripting tutorials in


wiki.roblox.com
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:40 PM
wuat
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:41 PM
local function hello()

end

lol
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:46 PM
this is complicated!

X = Instance.new("Explosion", game.Workspace)

did i do it right
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
29 Jul 2014 11:48 PM
Yeah. You might want to position it tho

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:49 PM
and how to do that
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:50 PM
X = Instance.new("Explosion", game.Workspace)

game.Workspace.Explosion.Position = Vector3.new(1, 2, 3)

end

did i do it right
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
29 Jul 2014 11:53 PM
Yes, just remove the "end".
You could use something such as,
X.Position = Vector3.new(X,Y,Z)
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:53 PM
thank you!
Report Abuse
Vacuo is not online. Vacuo
Joined: 06 Dec 2009
Total Posts: 4859
29 Jul 2014 11:55 PM
im gonna go now

thank you for your help everyone!
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