Advertisement
xXLocalPlayerXx

Simple Explosion Script

Mar 6th, 2015
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local Plyr = game:service("Players")["LocalPlayer"]
  2. local Mouse=Plyr:GetMouse()
  3. local Toggle=false
  4.  
  5. Mouse.Button1Down:connect(function()Toggle=true end)
  6. Mouse.Button1Up:connect(function()Toggle=false end)
  7.  
  8. game:service("RunService").Stepped:connect(function()
  9. if Toggle == true then
  10.     V=Instance.new("Part",Workspace)
  11.     V.Position = Mouse.Hit.p
  12.     V.FormFactor="Custom"
  13.     V.Size=Vector3.new(.5,.5,.5)
  14.     V.TopSurface="Smooth"
  15.     V.Anchored=true
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement