local contextActionService = game:GetService("ContextActionService")
Move = script.Parent
plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
StartTimerValue = 5
MouseLocation = (mouse.Hit.p)
function onKeyPressOne()
print("2")
MouseLocation.Instance.new("Part",workspace)
end
game.ContextActionService:BindAction("onKeyPressOne", onKeyPressOne, false, Enum.KeyCode.One)
My above script doesn't work. How do I get instance.new to spawn a brick at the coordinates provided by the mouse?
I would be thankful for help.
