|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 Feb 2016 03:26 PM |
| Nah. Use CFrame and mouse position. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 20 Jul 2011 |
| Total Posts: 842 |
|
| |
|
|
| 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
|
  |
| Joined: 20 Jul 2011 |
| Total Posts: 842 |
|
|
| 13 Feb 2016 04:25 PM |
| Or something like that, yes |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Feb 2016 04:59 PM |
| Cframing or vector3 but Cframing is better |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|