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 » Scripters
Home Search
 

Re: Mouse.Target Positioning

Previous Thread :: Next Thread 
Lem0nzz2 is not online. Lem0nzz2
Joined: 03 Jul 2014
Total Posts: 211
10 Jan 2015 12:45 AM
Say I wanted to clone a model into workspace , from lighting , into the position of where the cursor/mouse is pointing at. How would I change the models position to the targets position?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Jan 2015 12:51 AM
thats easy
Report Abuse
Lem0nzz2 is not online. Lem0nzz2
Joined: 03 Jul 2014
Total Posts: 211
10 Jan 2015 12:55 AM
I see.... Explain please?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Jan 2015 01:01 AM
i made a script just for you come http://www.roblox.com/stuffs-place?id=200901907
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Jan 2015 01:05 AM
lol
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Jan 2015 01:07 AM
if you didnt know i was joking, i didnt make a script for you
Report Abuse
Lem0nzz2 is not online. Lem0nzz2
Joined: 03 Jul 2014
Total Posts: 211
10 Jan 2015 01:14 AM
You're a bit delusional. I didn't ask for a script bro, I just wanted help. Sometimes you just need to learn alittle bit of respect kid.
Report Abuse
Lem0nzz2 is not online. Lem0nzz2
Joined: 03 Jul 2014
Total Posts: 211
10 Jan 2015 01:16 AM
If anyone else would respectfully guide me in the direction towards the answer I was looking for, I'd be very thankful.
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
10 Jan 2015 01:22 AM
http://wiki.roblox.com/index.php?title=API:Class/Tool/Equipped
http://wiki.roblox.com/index.php?title=API:Class/Instance/Clone

Probably something like:

local modelClone = game.Lighting["Model"]:clone()

Tool.Equipped:connect(function(mouse)
local mC = modelClone:clone()
mC:MoveTo(mouse.Hit.p)
end)


-- I'm not sure because I haven't touch ROBLOX Lua in almost 4 years
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
10 Jan 2015 01:25 AM
local modelClone = game.Lighting["Model"]:clone()

Tool.Equipped:connect(function(mouse)

mouse.Button1Down:connect(function()
local mC = modelClone:clone()
mC:MoveTo(mouse.Hit.p)
end)
end)
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Jan 2015 01:56 AM
http://www.roblox.com/stuffs-place?id=200901907

here i really made a script this time make sure to read the desc
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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