Quick actions

cmd+k|ctrl+k

Navigation

Languages

mouse test

Snippet info

Language

Lua

Visibility

public

Author

zen

Created

2024-01-01T16:25:10.682094Z

Updated

2024-01-01T16:27:03.278791Z

local mouse = owner:GetMouse()

local part = Instance.new("Part")
part.Anchored = true
part.CanCollide = false
part.CanQuery = false
part.Parent = workspace

game:GetService("RunService").RenderStepped:Connect(function()
	print(mouse.Hit.Position)
	part.Position = mouse.Hit.Position
end)
INFO