Advertisement
pitrioptixiop

Roblox | Baldi BSoDa script

Jul 13th, 2018
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.49 KB | None | 0 0
  1. lp = game.Players.LocalPlayer
  2. char = lp.Character
  3. bp = lp.Backpack
  4. hum = char.Humanoid
  5. head = char.Head
  6. tool = Instance.new("Tool",bp)
  7. tool.Name = "BSoDa"
  8. tool.ToolTip = "Restart. Refresh. BSoD-a!"
  9. handle = Instance.new("Part",tool)
  10. handle.Size = Vector3.new(1,2,1)
  11. handle.Name = "Handle"
  12. handle.BrickColor = BrickColor.Blue()
  13. debounce = false
  14. tool.Activated:connect(function()
  15.     hit = lp:GetMouse().Hit
  16.     if debounce == false then
  17.         if hit ~= nil then
  18.             debounce = true
  19.             hit = lp:GetMouse().Hit
  20.             part = Instance.new("Part",workspace)
  21.             part.Name = "bsodaspill"
  22.             part.Material = Enum.Material.Neon
  23.             part.Size = Vector3.new(5,5,1)
  24.             part.BrickColor = BrickColor.Blue()
  25.             part.CanCollide = true
  26.             part.CFrame = handle.CFrame
  27.             part.Touched:connect(function(spilltarget)
  28.                 if spilltarget.Parent ~= char and spilltarget.Parent.Parent ~= char and spilltarget.Parent.Parent.Parent ~= char and spilltarget.ClassName == "Part" then
  29.                     if spilltarget.Anchored == false then
  30.                         spilltarget.CFrame = part.CFrame
  31.                     end
  32.                 end
  33.             end)
  34.             ycframe = part.CFrame.Y
  35.             bodypos = Instance.new("BodyPosition")
  36.             bodypos.Position = Vector3.new(hit.X, hit.Y, hit.Z)
  37.             bodypos.MaxForce = Vector3.new(1000,1000,1000)
  38.             bodypos.Parent = part
  39.             repeat
  40.                 wait(0.1)
  41.                 part.CFrame = CFrame.new(part.CFrame.X, ycframe, part.CFrame.Z)
  42.                 part.Size = part.Size - Vector3.new(0.1,0.1,0.1)
  43.             until part.Size.X < 0.2
  44.             part:Destroy()
  45.             wait(15)
  46.             debounce = false
  47.         end
  48.     end
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement