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: help me please!

Previous Thread :: Next Thread 
2sp00ky4y0u is not online. 2sp00ky4y0u
Joined: 23 Jul 2014
Total Posts: 97
13 Feb 2016 03:25 PM
can someone give me an example of a script that will make a tool place blocks?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Feb 2016 03:26 PM
Nah. Use CFrame and mouse position.
Report Abuse
2sp00ky4y0u is not online. 2sp00ky4y0u
Joined: 23 Jul 2014
Total Posts: 97
13 Feb 2016 03:30 PM
HOW DO I GET THE MOUSEPOSITION? i need to know! the wiki makes no sense to me?
btw are you the only one on right now? you picky person that wont do anything just tell you a few words that's it
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
13 Feb 2016 03:46 PM
Mouse.Origin.x or y
Report Abuse
2sp00ky4y0u is not online. 2sp00ky4y0u
Joined: 23 Jul 2014
Total Posts: 97
13 Feb 2016 04:12 PM
so like when i click it makes a part then uses the x position to position that part?
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
13 Feb 2016 04:25 PM
Or something like that, yes
Report Abuse
2sp00ky4y0u is not online. 2sp00ky4y0u
Joined: 23 Jul 2014
Total Posts: 97
13 Feb 2016 04:32 PM
well can someone help me incorporate that Mouse.Origin.x to a tool that onclick makes a part? I can't get mine to work although it's probably obvious why it doesn't to you guys because I suck at scripting

sucky script below (doesn't work at all)
local player = game.Player.LocalPlayer
local Mouse = player:GetMouse()
local target = Mouse.Origin.x
local target2 = Mouse.Origin.y



local bin = script.Parent
bin.Selected:connect(function(Mouse)
Mouse.Button1Down:connect(function()
local part = Instance.new('Part',game.Workspace)
part.Name = player.Name..'FigurePart'
part.Transparency = 1
end)
end)
Report Abuse
IronSteelMetal is online. IronSteelMetal
Joined: 13 Jun 2015
Total Posts: 415
13 Feb 2016 04:59 PM
Cframing or vector3 but Cframing is better
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
13 Feb 2016 05:53 PM
-- In a LocalScript inside of a Tool object

local plr = game.Players.LocalPlayer;
local m = plr:GetMouse();

local tool = script.Parent;

tool.Activated:connect(function()

local part = Instance.new("Part", workspace);

part.Position = m.Hit.p;

end)
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
13 Feb 2016 05:55 PM
just so you know, i'm assuming you either want this done only on the client or that filteringenabled is off

if you want it to appear for everyone with fe on, then you will need a RemoteEvent that creates the part with the position supplied from the client when fired
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