MezornoIV
|
  |
| Joined: 20 Jul 2010 |
| Total Posts: 2276 |
|
|
| 08 Nov 2016 07:03 PM |
I'm following the instructions on the wiki?
game.Players.PlayerAdded:connect(function(oke)
script.Parent.MouseButton1Click:connect(function(ok) game:GetService("TeleportService"):Teleport(506701087,oke) end) end)
|
|
|
| Report Abuse |
|
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37141 |
|
|
| 08 Nov 2016 07:04 PM |
you dont need playeradded function for this??
all you need is
script.Parent.MouseButton1Click:connect(function(ok) game:GetService("TeleportService"):Teleport(506701087,ok) end)
(make sure ok is spelt correctly on both parts)
I have a spider on my back. |
|
|
| Report Abuse |
|
|
MezornoIV
|
  |
| Joined: 20 Jul 2010 |
| Total Posts: 2276 |
|
| |
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37141 |
|
|
| 08 Nov 2016 07:09 PM |
wait
is this a gui? make sure its a localscript
then use this
script.Parent.MouseButton1Click:connect(function() game:GetService("TeleportService"):Teleport(506701087) end)
I have a spider on my back. |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 08:30 PM |
^ Don't know what your doing bud.
Make sure you define the player, and then use it in the teleportation.
EXAMPLE:
local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() game:GetService("TeleportService"):Teleport(PLACEID, player) end)
R$2,489 |
|
|
| Report Abuse |
|
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37141 |
|
|
| 08 Nov 2016 09:44 PM |
^ Don't know what you're doing bud.
You dont need to define player inside a local script
I have a spider on my back. |
|
|
| Report Abuse |
|
|