Robin5D
|
  |
| Joined: 03 Dec 2011 |
| Total Posts: 227 |
|
|
| 10 Feb 2016 08:44 PM |
script.Parent.MouseButton1Click:connect(function(plr) game:GetService("TeleportService"):Teleport(361741129, plr) end)
Inside a GUI button, works in studio, in-game it says 'Invalid player to teleport' |
|
|
| Report Abuse |
|
|
Robin5D
|
  |
| Joined: 03 Dec 2011 |
| Total Posts: 227 |
|
| |
|
|
| 10 Feb 2016 09:00 PM |
While thruse do,, Script.parmt.coulor= blue script.Parent.MouseButton1Click:connect(function(plr) game:GetService("TeleportService"):Teleport(361741129, plr) end) Wait/4script.Parent.MouseButton1Click:connect(function(plr) game:GetService("TeleportService"):Teleport(361741129, plr) end) End end End |
|
|
| Report Abuse |
|
|
Robin5D
|
  |
| Joined: 03 Dec 2011 |
| Total Posts: 227 |
|
|
| 10 Feb 2016 09:15 PM |
| bump2, this guy dosnt know scripting |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Feb 2016 09:18 PM |
'plr' isn't a valid argument to the event.
Use a local script and put:
local player = game.Players.LocalPlayer
button.MouseButton1Down:connect(function() game:GetService("TeleportService"):Teleport(361741129, player) end)
|
|
|
| Report Abuse |
|
|
ElectroTM
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1135 |
|
|
| 10 Feb 2016 09:18 PM |
Try getting the LocalPlayer instead?
local Player=game:GetService("Players").LocalPlayer
--Replace plr with Player
Not 100% sure this will work.
y-y-you too... |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2016 09:19 PM |
| no no no use while thruse loops and global |
|
|
| Report Abuse |
|
|
| |
|