Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- i = Instance.new("Part")
- i.Anchored = true
- i.Color = Color3.new(0,0,0)
- i.Size = Vector3.new(1,1,1)
- while wait() do
- i.Position = Vector3.new(mouse.Hit.p.X, 0, mouse.Hit.p.Z)
- end
- while wait() do
- mouse.Button1Down:connect(function()
- local z = Instance.new("Part")
- z.Anchored = true
- z.Color = Color3.new(0,0,0)
- z.Size = Vector3.new(1,1,1)
- z.Position = Vector3.new(mouse.Hit.p.X, 0, mouse.Hit.p.Z)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement