|
| 17 Dec 2013 10:15 PM |
This works in Test Mode but not in Play Mode
local Model = game.Lighting.Debate local P = game.Players.LocalPlayer
function onClicked(playerWhoClicked) local ModelCopy = Model:Clone() ModelCopy.Parent = P.PlayerGui wait() end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Dec 2013 10:22 PM |
| this is in a local ecript, right? |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Dec 2013 10:39 PM |
| Theres your problem. You can access LocalPlayer without using a client sided script (localscript) |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 03:06 PM |
| I put it as a LocalScript, and still won't work. |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 18 Dec 2013 03:12 PM |
local Model = game.Lighting.Debate local P = game.Players.LocalPlayer
function onClicked(playerWhoClicked) print(a) local ModelCopy = Model:Clone() print(b) ModelCopy.Parent = P.PlayerGui print(c) wait() end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Did it got to a b or c? |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 03:28 PM |
| If anyone wants to see what I am clicking follow me. I click it, and it doesn't clone to the PlayerGui. It does only in Test Mode. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 18 Dec 2013 03:31 PM |
Answer my question. Also
if Model ~= nil then
I think M might be not there |
|
|
| Report Abuse |
|
|