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 » Scripters
Home Search
 

Re: Hello I am new to scripting

Previous Thread :: Next Thread 
slott is not online. 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
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
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 is not online. 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 is not online. 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
icekiller8002 is not online. icekiller8002
Joined: 22 Jan 2013
Total Posts: 6636
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 is not online. 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
icekiller8002 is not online. icekiller8002
Joined: 22 Jan 2013
Total Posts: 6636
09 Oct 2015 04:08 PM
yes



people can come in maybe different shapes ( ͡° ͜ʖ ͡°) [ ͡° ͜ʖ ͡°] / ͡° ͜ʖ ͡°\ { ͡° ͜ʖ ͡°}
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
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 is not online. 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 is not online. 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 is not online. 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
thelolguy301 is not online. thelolguy301
Joined: 27 Sep 2011
Total Posts: 2997
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 is not online. 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
thelolguy301 is not online. thelolguy301
Joined: 27 Sep 2011
Total Posts: 2997
10 Oct 2015 05:41 AM
Yes.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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