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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Post useful code here

Previous Thread :: Next Thread 
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 11:00 AM
Any code u think might be useful to not such advanced people, post here, I'll start off.

Door opening method
p.CFrame = p.CFrame * CFrame.new(p.Size.X / 2, p.Size.Y / 2, 0) * CFrame.fromAxisAngle(Vector3.new(0, 1, 0), math.rad(90)) * CFrame.new(-p.Size.X / 2, -p.Size.Y / 2, 0)
NOTE: This just rotates the part around, I'm sure u noobs can figure out a way to open and close a door, it's not that hard since yas finally have this code.

"My Life is going Good... but..."
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 11:01 AM
NOTE: I'm aware that I didn't have to do "p.Size.Y / 2" but it was just a small test that I was doing, I copied straight from there.
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 11:19 AM
https://www.roblox.com/Simple-Door-item?id=395439877
Report Abuse
ghostleader is not online. ghostleader
Joined: 16 Feb 2008
Total Posts: 1131
08 Apr 2016 12:23 PM
while true do end
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 12:26 PM
I'm being serious...
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
08 Apr 2016 12:28 PM
serious being I am



#Strikin'
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 12:32 PM
o.O
Report Abuse
ghostleader is not online. ghostleader
Joined: 16 Feb 2008
Total Posts: 1131
08 Apr 2016 12:38 PM
ok i'll post more useful code

while true do
if true then
if true ~= false then
wait(1/0)
if not false == (true ~= false) and 1+1 == 2 then
local variable = true
end
end
end
end
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 12:40 PM
Lol...
Report Abuse
GamesAndMovies is not online. GamesAndMovies
Joined: 03 Aug 2014
Total Posts: 98
08 Apr 2016 12:47 PM
Useful code:

if workspace.PartBeta then

compiler: you cant do that
me: why
compiler: you just cant


Useful code:

if workspace:findFirstChild("PartBeta") then
print("ugh")
end
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 12:53 PM
GamesAndMovies

Joined: 03 Aug 2014
Total Posts: 69

"69" explains it all...
Report Abuse
AmazingLegoDude is not online. AmazingLegoDude
Joined: 17 Dec 2010
Total Posts: 2887
08 Apr 2016 12:54 PM
find fogoot
eat shrek
end


im a kool kid
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
08 Apr 2016 12:59 PM
"Joined: 17 Dec 2010" don't disgrace 1 of my lucky dates -_-
Report Abuse
GamesAndMovies is not online. GamesAndMovies
Joined: 03 Aug 2014
Total Posts: 98
08 Apr 2016 01:12 PM
"joined" date ~= join date
Report Abuse
cowWat is not online. cowWat
Joined: 26 Oct 2015
Total Posts: 1
08 Apr 2016 01:15 PM
http://pastebin.com/eFH4QnL4
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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