iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
|
| 24 Aug 2016 03:55 PM |
So, I have a elevator built by me but doesn't work,
And I want to add a button that tps you to the 2nd floor when you click on it
Im willing to pay my budget is 100R$ ;/
;) |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Aug 2016 03:58 PM |
| You can do Cframing so if player press second button than player.Torso.CFrame = part.CFrame |
|
|
| Report Abuse |
|
|
iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
|
| 24 Aug 2016 03:58 PM |
Great! Can you do it now and when its done PM me? If Its what I want Ill give you 100R$ funds
;) |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 24 Aug 2016 04:00 PM |
You can build 2 elevators, one at the first and one at the second and then teleport them to the second one. Add a clickdetector in the button and use the script below:
script.Parent.ClickDetector.MouseClick:connect(function(plr) if plr then local char = plr:CharacterAdded:wait() char:MoveTo(workspace.TheSecondElevator'sName.Position) end end) |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2016 04:00 PM |
No MoveTo only makes them walk you know. CFrame teleports them op ima message you the scipt. |
|
|
| Report Abuse |
|
|
iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
|
| 24 Aug 2016 04:01 PM |
Can you do it for me? Because I didn't understand one thing ;( Im willing to pay
;) |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 24 Aug 2016 04:02 PM |
| MoveTo() cframes a model, don't be silly! |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 24 Aug 2016 04:03 PM |
| If you want try the script I made. Just change the name of the "TheSecondElevator'sName" to a part that is inside the elevator on the second floor. |
|
|
| Report Abuse |
|
|
iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
|
| 24 Aug 2016 04:06 PM |
So I put the part and I put a click detector and put the script in the part? after I put another part and do the same??????
;) |
|
|
| Report Abuse |
|
|
iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
|
| 24 Aug 2016 04:07 PM |
or put the script in the click detector?
;) |
|
|
| Report Abuse |
|
|
Refactor
|
  |
| Joined: 20 Apr 2014 |
| Total Posts: 487 |
|
|
| 24 Aug 2016 04:07 PM |
@Wright
If you call :MoveTo() on a humanoid it will walk to w/e position you define. If you call :MoveTo() on a model it will move an entire model based on it's PrimaryPart or Root Part. |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 24 Aug 2016 04:09 PM |
Make a button and put a click detector and a script (both in the button).
Then paste the code in the script, change only that part of the script where it says "SecondElevator'sName" to a part you put inside the second elevator, like a small anchored invisible part on the floor on the second elevator. |
|
|
| Report Abuse |
|
|
iSHERIFFi
|
  |
| Joined: 14 Jul 2014 |
| Total Posts: 451 |
|
| |
|