|
| 26 Mar 2012 05:33 PM |
I'm trying to make a script so that when I touch a brick (Called Activate), a different brick called Map changes position to -176, 50.2, 86.5
I'm still new at scripting so expect this to completely fail (Lol):
function onTouched(Activate) if Punisher5665.touched.Activate then game.Workspace.Map.Position = Vector3.new(-176, 50.2, 86.5) end end
Punisher5665.Touched:connect(onTouched)
Don't really know if I can use myself in it lol
a little help wouldn't be great
|
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 26 Mar 2012 05:36 PM |
function onTouched(hit) human = hit.Parent:findFirstChild("Humanoid") if human then game.Workspace.Map.Position = Vector3.new(-176, 50.2, 86.5) end end
script.Parent.Touched:connect(onTouched)
Put that in the brick. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Mar 2012 05:37 PM |
function onTouched(Activate) if Activate.Parent.Name == "Punisher5665" then game.Workspace.Map.Position = Vector3.new(-176, 50.2, 86.5) end end
script.Parent.Touched:connect(onTouched)
Btw, your sentence at the end. Do you mean a little help would be great :P?
|
|
|
| Report Abuse |
|
|
|
| 26 Mar 2012 05:39 PM |
LOL I was thinking about something said and I guess wouldn't got into this...
Sorry,I meant to say Would be great I feel stupid now lol |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Mar 2012 05:42 PM |
| You're smarter then all the idiots out there just begging for a script :P |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2012 05:44 PM |
I used to be one of those idiots :P
But now I'm taking a chance to try and learn on my own.
And your script works great :) Thanks :D |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Mar 2012 05:53 PM |
Yep. Anytime, love to help!
And stick to it. You'll be happy you did ;) |
|
|
| Report Abuse |
|
|