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 » Scripting Helpers
Home Search
 

GUI Help.

Previous Thread :: Next Thread 
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:01 AM
function onClick()
local gui = script.Parent
a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=workspace.dapfallen
end

gui.MouseButton1Down:connect(onClick)


No error on output, But won't work.
Report Abuse
ItRPieMan is not online. ItRPieMan
Joined: 08 Sep 2011
Total Posts: 115
10 Sep 2011 08:05 AM
script.Parent.MouseButton1Down:connect(function()
a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=workspace.dapfallen
end)
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:09 AM
;/, Didn't work. I think the asset is not public.

~~ Kill the boss, like a boss. ~~
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:10 AM
It just won't work. Even with public domain.

~~ Kill the boss, like a boss. ~~
Report Abuse
ItRPieMan is not online. ItRPieMan
Joined: 08 Sep 2011
Total Posts: 115
10 Sep 2011 08:11 AM
well the thing wrong with your script is that you did not set "gui" but referenced it at the connection line.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
10 Sep 2011 08:11 AM
The asset has to be public in order for it to insert.
Report Abuse
ItRPieMan is not online. ItRPieMan
Joined: 08 Sep 2011
Total Posts: 115
10 Sep 2011 08:11 AM
what's the output now though?
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:13 AM
Found out

~~ Kill the boss, like a boss. ~~
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:16 AM
Unable to cast Instance to Vector3

function onButtonClicked()
local player = script.Parent.Parent.Parent.Parent.Character
a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=player a:MoveTo(player)
end

script.Parent.MouseButton1Click:connect(onButtonClicked)
Report Abuse
ItRPieMan is not online. ItRPieMan
Joined: 08 Sep 2011
Total Posts: 115
10 Sep 2011 08:18 AM
function onButtonClicked()
local player = script.Parent.Parent.Parent.Parent.Character
a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=player a:MoveTo(player.Head.Position)
end

script.Parent.MouseButton1Click:connect(onButtonClicked)
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:21 AM
Works now :D


~~ Kill the boss, like a boss. ~~
Report Abuse
dapfallen is not online. dapfallen
Joined: 01 Sep 2011
Total Posts: 201
10 Sep 2011 08:22 AM
Now i can make my insert tool only work to certain non abusable models.

~~ Kill the boss, like a boss. ~~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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