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: Would this work?

Previous Thread :: Next Thread 
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 12:44 AM
table = {"GreenDay987"; "Prehistoricman"; "moryo7"}
function onTouched(hit)
for i, v in pairs (table) do
return v
end
if hit.Parent.Name == (v) then
x = game.Workspace:FindFirstChild("Part")
x.CFrame = CFrame.new(.9, .9, .9)
m = Instance.new("Message", game.Workspace)
m.Text = hit.Parent.Name.." broke this place"
else
hit.Parent:BreakJoints()
end
end


I feel I messed it up somehow...
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
04 Sep 2012 12:46 AM
Try it.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 12:49 AM
I'm posting it here for a reason. I don't have internet on my laptop so im using studio offline and posting this through iPhone 4G.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 12:54 AM
So I can't test this because it uses a touched event.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 11:28 AM
Bump.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 11:34 AM
Does no one know if this is right or not or are people just refusing to post on my thread... :/
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
04 Sep 2012 11:35 AM
for i, v in pairs (table) do
return v
end

What. Is. This.
Anyway, it looks like it works, I am not going to test it though :P.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 11:45 AM
I knew I messed something up :/

Its supposed to check if the player who touched a brick is accepted through a table, and if he is, change the CFrame of all parts to .9, .9, .9 and make a message saying "playername broke this place". If he isn't accepted, he gets his joints broken.
Report Abuse
GiverLol is not online. GiverLol
Joined: 20 Dec 2010
Total Posts: 810
04 Sep 2012 12:08 PM
Can't you just use Player Solo mode?
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
04 Sep 2012 01:56 PM
y u no ask me GreenDay? I fix all of your problems :)

table = {"GreenDay987", "Prehistoricman", "moryo7"} --never use semicolons, they are bad for your diet
function onTouched(hit)
IsInTable = false
for i, v in pairs(table) do
--[[return v-------------WTF IS THIS???
end]]
if hit.Parent.Name == v then --lolwut brackets
IsInTable = true
x = game.Workspace:FindFirstChild("Part")
x.CFrame = CFrame.new(.9, .9, .9)
m = Instance.new("Message", game.Workspace)
m.Text = hit.Parent.Name.." broke this place"
--[[else
hit.Parent:BreakJoints()]] -----nope
end
end
if not IsInTable then
hit.Parent:BreakJoints()
end
end
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 05:43 PM
Thanks, Preh. I knew I messed something up :/
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
04 Sep 2012 05:44 PM
iPhones aren't 4g.... o.O

†KMXD†
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
04 Sep 2012 05:46 PM
Why aren't I in the table, greenday :O?

Btw, I know this is off topic but did you start school yet?
Report Abuse
Vangtzuef123 is not online. Vangtzuef123
Joined: 13 Aug 2012
Total Posts: 16
04 Sep 2012 05:51 PM
Would this work with roblox card you get robux 400$ what
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
04 Sep 2012 05:52 PM
^^ leave troll

~Don't get mad as to what I said, get mad at me as a person
Report Abuse
Vangtzuef123 is not online. Vangtzuef123
Joined: 13 Aug 2012
Total Posts: 16
04 Sep 2012 05:54 PM
How do you get robux I want like 10000000,00000000,0000000,0000
ye cool
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
04 Sep 2012 09:06 PM
@miz

Its a table for the developers of The Collapse :P

But in the future I'll remember to add you anyway :D
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