Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Plyr = game:service("Players")["LocalPlayer"]
- local Mouse=Plyr:GetMouse()
- local Toggle=false
- Mouse.Button1Down:connect(function()Toggle=true end)
- Mouse.Button1Up:connect(function()Toggle=false end)
- game:service("RunService").Stepped:connect(function()
- if Toggle == true then
- V=Instance.new("Part",Workspace)
- V.Position = Mouse.Hit.p
- V.FormFactor="Custom"
- V.Size=Vector3.new(.5,.5,.5)
- V.TopSurface="Smooth"
- V.Anchored=true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement