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
 

Re: More script woes!

Previous Thread :: Next Thread 
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
28 Sep 2013 08:56 PM
function onSelected(mouse)
mouse.Button1Down:connect(onButton1Down) -- What are you trying to do here pl0X?
game.Workspace.NUKE:clone()
game.Workspace.NUKE.Parent = Workspace
game.Workspace.NUKE.Cframe.new = mouse.X, mouse.Y
end

script.Parent.Selected:connect(onSelected)

I know something is wrong it doesnt work!

But i cant figure out how to fix it

Please will

(This is a script that spawns a "miniature nuke" at the location of your mouse)
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
28 Sep 2013 08:57 PM
btw the NUKE is a model
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 09:15 AM
Please help
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
29 Sep 2013 09:17 AM
So many things...

I think you should fresh your understanding of Lua
Report Abuse
crazycamkalani is not online. crazycamkalani
Joined: 23 Nov 2010
Total Posts: 261
29 Sep 2013 09:22 AM
try this

function onSelected(mouse)
mouse.Button1Down:connect(onButton1Down) -- What are you trying to do here pl0X?
NUUKE = game.Workspace.NUKE:clone()
NUUKE.Parent = Workspace
NUUKE.Cframe.new = mouse.X, mouse.Y
end

script.Parent.Selected:connect(onSelected)

--crazycamkalani
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
29 Sep 2013 09:25 AM
*facedesk*
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 10:15 AM
Any other suggestions?
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 12:54 PM
HELP!
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 01:51 PM
please help!

Any expert scripters?

anyone at all?

hello?

im feeling empty so please help
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 03:06 PM
HELP
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
29 Sep 2013 03:09 PM
Models use Moveto() method, not CFrame.
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 03:18 PM
Hmmm im getting there.

Does the position have to rely on the mouse or does a different method need to be used?
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
29 Sep 2013 03:21 PM
You can use the TargetPoint property of Humanoid to get where the mouse is pointing.
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 03:38 PM
You sir, answered the question i asked.

Coming back with a script
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 04:26 PM
I know this script won't work so don't flame as this is the best i can do!

VVV = game.Lighting.NUKE

function onButton1Down(mouse) -- What are you trying to do here pl0X?
VVV:clone()
VVV.Parent = Workspace
VVV:moveto(Vector3.new (TargetPoint))
end

script.Parent.Selected:connect(onSelected)

What do!
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 06:03 PM
Please help
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 06:28 PM
Please. help me

What do i have to do!?
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
29 Sep 2013 07:01 PM
http://www.roblox.com/Tiny-Miniature-Nuke-spawner-item?id=131227520

The non-working tool plus nuke included inside

Please try to fix the tool, thank you
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
30 Sep 2013 06:23 PM
HELP!!
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
30 Sep 2013 07:31 PM
Why isn't anyone helping me?
Report Abuse
ProjectsHidden is not online. ProjectsHidden
Joined: 29 Sep 2013
Total Posts: 194
30 Sep 2013 07:35 PM
workspace:FindFirstChild("NUKE").Parent = game.Lighting
function onSelected(mouse)
mouse.Button1Down:connect(onButton1Down)
cl = game.Lighting:clone()
cl.Parent = workspace
cl:MoveTo(mouse.Hit.p)
end
script.Parent.Selected:connect(onSelected)
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
30 Sep 2013 08:02 PM
Doesn't work, throws me these errors.

21:02:15.004 - Players.Player1.Backpack.Mini 2 MT nuke adder.LocalScript:5: attempt to index global 'cl' (a nil value)
21:02:15.007 - Script 'Players.Player1.Backpack.Mini 2 MT nuke adder.LocalScript', Line 5
21:02:15.010 - stack end
21:02:15.012 - Disconnected event because of exception
21:02:16.112 - attempt to call a nil value
21:02:16.114 - Disconnected event because of exception

Any other ideas?

And please help out

-thank you
Report Abuse
knexboy1 is not online. knexboy1
Joined: 08 Apr 2009
Total Posts: 74
30 Sep 2013 08:34 PM
script.Parent.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()
copy=game.Workspace.NUKE:Clone()
copy.Parent = Workspace
copy:MoveTo(mouse.Hit.p)
end)
end)
Report Abuse
ProjectsHidden is not online. ProjectsHidden
Joined: 29 Sep 2013
Total Posts: 194
01 Oct 2013 01:51 PM
game:FindFirstChild("NUKE", true).Parent = game.Lighting
function onSelected(mouse)
mouse.Button1Down:connect(onButton1Down)
cl = game.Lighting.NUKE:clone()
cl.Parent = workspace
cl:MoveTo(mouse.Hit.p)
end
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
01 Oct 2013 03:18 PM
Kay so it didnt throw errors at me.

But it doesn't really work. When i click nothing happens.

To clear up stuff, The NUKE is first in the Lighting waiting to be used then when i click somewhere on the ground the NUKE gets cloned and the NUKE shows itself in workspace.

Sorry if u got stuff wrong

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