Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 17 Jan 2015 05:01 AM |
local p = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() game:GetService("InsertService"):LoadAsset(201969964):GetChildren()[1].Parent = workspace[p.Name] end)
Altho it does say in yellow "05:59:34.153 - Something unexpectedly tried to set the parent of LeatherCowboyHat to NULL while trying to set the parent of LeatherCowboyHat. Current parent is Player."
I do not get what the problem is... |
|
|
| Report Abuse |
|
|
drager980
|
  |
| Joined: 25 May 2009 |
| Total Posts: 13385 |
|
|
| 17 Jan 2015 05:08 AM |
is this a local script? localplayer or workspace[p.Name] is nil.
AND THE TIGER GOES ROAR |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
| |
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 17 Jan 2015 08:05 AM |
Ok, so I changed it to this and I still get the same error.
wait()
script.Parent.MouseButton1Click:connect(function() game:GetService("InsertService"):LoadAsset(201969964):GetChildren()[1].Parent = workspace[script.Parent.Parent.Parent.Parent.Parent.Parent.Name] end) |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 17 Jan 2015 09:21 AM |
local p = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() game:GetService("InsertService"):LoadAsset(201969964).Parent = workspace[p.Character] end)
R$6,374 RAP: 296,410 |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 17 Jan 2015 09:21 AM |
oops do this
local p = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() game:GetService("InsertService"):LoadAsset(201969964).Parent = game.Players[p.Character] end)
R$6,374 RAP: 296,410 |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 17 Jan 2015 09:25 AM |
imo It'd be easier just to clone from serverstorage or something
R$6,374 RAP: 296,419 |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 18 Jan 2015 07:51 PM |
20:49:31.087 - Players.Player.PlayerGui.ScreenGui.Clothing.Jobs.ImageButto:3: bad argument #2 to '?' (string expected, got userdata) 20:49:31.090 - Script 'Players.Player.PlayerGui.ScreenGui.Clothing.Jobs.ImageButto', Line 3 20:49:31.092 - Stack End
Buy why would that work anyways? I have the first code in a different game, in a gui and it works. Don't get why it does not work now... |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 21 Jan 2015 04:23 AM |
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function() for i,v in pairs(game:GetService("InsertService"):LoadAsset(999999):GetChildren()) do v.Parent = game.Workspace end end) |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 21 Jan 2015 04:25 AM |
oh didnt read full OP here:
local plr = game.Players.LocalPlayer script.Parent.MouseButton1Down:connect(function() for i,v in pairs(game:GetService("InsertService"):LoadAsset(99999):GetChildren()) do v.Parent = plr.Character end end) |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 21 Jan 2015 04:25 AM |
| it was something i had in another script that removed it once i clicked and it was added to player but thx |
|
|
| Report Abuse |
|
|