Advertisement
SmokeDelsin

supadepi

Jun 7th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if script.Parent.className~="HopperBin" then
  2. ma=Instance.new("HopperBin")
  3. ma.Name="Laser "
  4. --ma.Parent=game.Lighting
  5. ma.Parent=game.Players.SmokeDelsin.Backpack
  6. script.Parent=ma
  7. end
  8.  
  9. local Selected = false
  10. local Shoot = true
  11. function Click(Target)
  12. if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then
  13. Target.Target.Parent.Humanoid.Health = 0
  14. end
  15. local P = Instance.new("Part")
  16. P.Name = "Laser"
  17. P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
  18. P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
  19. P.Parent = game.Workspace
  20. P.Color = Color3.new(0,0,1)
  21. P.Transparency = 0.5
  22. P.Reflectance = 0.5
  23. P.Anchored = true
  24. P.CanCollide = false
  25. local E = Instance.new("Explosion")
  26. E.Position = Target.Hit.p
  27. E.Parent = game.Workspace
  28. for i = 1,10 do
  29. P.Transparency = 0.5+(i*0.05)
  30. P.Reflectance = i*0.05
  31. wait(0.1)
  32. end
  33. P:Rremove()
  34. end
  35. script.Parent.Selected:connect(Select)
  36. script.Parent.Deselected:connect(Deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement