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 » Game Design
Home Search
 

Re: No error...

Previous Thread :: Next Thread 
Codys4x4 is not online. 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 is not online. 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 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
17 Jan 2015 08:00 AM
Ya it's a localscript.
Report Abuse
Codys4x4 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
21 Jan 2015 04:14 AM
Bump
Report Abuse
chimmihc is not online. 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 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
21 Jan 2015 04:24 AM
nvm
Report Abuse
chimmihc is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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