TheJKM98
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 511 |
|
|
| 14 Jan 2014 07:52 PM |
I have this:
local player = game.Players.LocalPlayer local tool = script.Parent local mouse = player:GetMouse() local thing = Instance.new("Part" , game.Workspace)
function blah() thing.CFrame = CFrame.new(thing.Position , mouse.Hit.p) thing.Name = "THING!" thing.Anchored = true thing.Size = Vector3.new(20 , 1 , 20) print(thing.Position) end
tool.Activated:connect(blah)
It prints the position, but nothing is actually created.
Did I miss a step, or what? |
|
|
| Report Abuse |
|
|
| 14 Jan 2014 08:09 PM |
Set it's position to where the Mouse hits. Try this:
thing.Position = mouse.Hit
I'm pretty sure you need to use CFrame in order to access the hit property of Mouse, but tinker with it. |
|
|
| Report Abuse |
|
TheJKM98
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 511 |
|
| |