slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 09 Oct 2015 03:49 PM |
And I would request some help. I had made a script but it is completely failing... I wish for someone perhaps to help me? I need help to create a script that has an onTouch aspect when 2 players have clicked it it teleports them both to that game? I wouldn't have the foggiest idea how to do this - and I request some help if that is ok.
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2015 03:50 PM |
Hello You should post your script (what you have) so we can take a look and point out where you went wrong :D
|
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 09 Oct 2015 03:51 PM |
I deleted it in frustration - I'll attempt to rewrite it.
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 09 Oct 2015 03:55 PM |
Note; there are ClickDetectors inside of the bricks these scripts are in.
function onClicked(playerWhoClicked) game:GetService("TeleportService"):Teleport(ill put the id of the game i tend on putting here) end script.Parent.ClickDetector.MouseClick:connect(onClicked)
I made it to the point where it tps them on clicking - but it doesn't work, plus I'd like the aspect of a 'lobby' where players wait for another player to click that sign so they are both teleportedto that place, together. - It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2015 04:03 PM |
TeleportService only works locally, I think
make this a local script in the starterpack:
workspace.brickname.ClickDetector.MouseClick:connect(function(plr) game:GetService("TeleportService"):Teleport(666) end)
people can come in maybe different shapes ( ͡° ͜ʖ ͡°) [ ͡° ͜ʖ ͡°] / ͡° ͜ʖ ͡°\ { ͡° ͜ʖ ͡°} |
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 09 Oct 2015 04:08 PM |
Do I replace 'brickname' with the name of the brick?
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2015 04:08 PM |
yes
people can come in maybe different shapes ( ͡° ͜ʖ ͡°) [ ͡° ͜ʖ ͡°] / ͡° ͜ʖ ͡°\ { ͡° ͜ʖ ͡°} |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2015 04:10 PM |
icekiller doesn't know what he's talking about. Teleport Service DOES work on serverside as well as locally. And you the arguments are like this
:Teleport(placeId,playerId)
morashsPeasant is swagilicious? |
|
|
| Report Abuse |
|
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 09 Oct 2015 04:13 PM |
I could do one that has two buttons. Just put in string values for who is touching it. If the string values both are engaged they would reset, and then the people would teleport.
Would that work better? |
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 09 Oct 2015 04:15 PM |
Sorry I'm not really familiar with your terminology, I don't really mind how it works I just really need it to be pressed via Click and it will teleport you to a place. Forget about the 'lobby' aspect that's a bit too much to ask for?
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 10 Oct 2015 04:45 AM |
bump pls :C
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2015 05:08 AM |
function onClicked(playerWhoClicked) game:GetService("TeleportService"):Teleport(304335691,playerWhoClicked) end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
slott
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 2640 |
|
|
| 10 Oct 2015 05:21 AM |
Thanks so much! Does this script have to be in the brick?
- It's not a bug - It's a feature - |
|
|
| Report Abuse |
|
|
| |
|