|
| 08 Dec 2013 06:36 PM |
| I'm pretty new to scripting. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 06:39 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=119820659 |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 06:40 PM |
Disregard last comment.
OBJECTNAME.Touched:connect(function(part) if part.Parent and part.Parent:findFirstChild("Humanoid") then weld =Instance.new("Weld") end end) |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 06:41 PM |
| It depends on if you want to weld one brick to another or all the bricks to one |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 06:42 PM |
| @awesome, I want the player to weld to the brick. |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 06:54 PM |
Well now that I know that...
OBJECTNAME.Touched:connect(function(part) if part.Parent and part.Parent:findFirstChild("Humanoid") then weld =Instance.new("Weld",part) weld.Part0 = part weld.Part1 = OBJECTNAME end end) |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:07 PM |
| Still didn't work. Not sure if this is helpful but when the player touches the brick, they are sliding into it. (From ice.) |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 07:12 PM |
Did you change the OBJECTNAME into the actual object's path... e.e
like script.Parent? |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:21 PM |
| Path? I just changed it the what I named the Brick, "SnowBoulder" |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 07:29 PM |
game.Workspace.SnowBuilder
replace OBJECTNAME with above. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 07:30 PM |
*I meant game.Workspace.SnowBoulder
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:32 PM |
| It worked! Now, how do I destroy the weld after a tenth of a second? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 07:33 PM |
wait(1/10) weld:Destroy() ... |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:34 PM |
| where do I add that? And do I have to say end? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 07:35 PM |
No end
And right before the "end)" |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Dec 2013 07:41 PM |
wait(.1) weld:Destroy()
at the end |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:42 PM |
| I find it useless to help people like this. They need to go and at least get a grasp of the basics of the Lua language before beginning to code their own game. |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
| |
|
|
| 08 Dec 2013 07:43 PM |
"People like this"
Wow, how kind. They're trying to be helpful. And the game I'm creating doesn't even require scripting except for this one here that I'm having difficulty with. You probably don't even know how to do this code that they're helping me with. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:46 PM |
| You're right, I don't. I'm a poor old noob who doesn't know how to code. You guys finally figured me out. [/sarcasm] |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:46 PM |
| Still didn't work. Ugh. I don't know what to do. I don't understand Lua whatsoever. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:47 PM |
| Shhhh, no need for a flame war. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 07:52 PM |
@Piggy
butbutbut, why not? I find them funny! |
|
|
| Report Abuse |
|
|