Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lp = game.Players.LocalPlayer
- char = lp.Character
- bp = lp.Backpack
- hum = char.Humanoid
- head = char.Head
- tool = Instance.new("Tool",bp)
- tool.Name = "BSoDa"
- tool.ToolTip = "Restart. Refresh. BSoD-a!"
- handle = Instance.new("Part",tool)
- handle.Size = Vector3.new(1,2,1)
- handle.Name = "Handle"
- handle.BrickColor = BrickColor.Blue()
- debounce = false
- tool.Activated:connect(function()
- hit = lp:GetMouse().Hit
- if debounce == false then
- if hit ~= nil then
- debounce = true
- hit = lp:GetMouse().Hit
- part = Instance.new("Part",workspace)
- part.Name = "bsodaspill"
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(5,5,1)
- part.BrickColor = BrickColor.Blue()
- part.CanCollide = true
- part.CFrame = handle.CFrame
- part.Touched:connect(function(spilltarget)
- if spilltarget.Parent ~= char and spilltarget.Parent.Parent ~= char and spilltarget.Parent.Parent.Parent ~= char and spilltarget.ClassName == "Part" then
- if spilltarget.Anchored == false then
- spilltarget.CFrame = part.CFrame
- end
- end
- end)
- ycframe = part.CFrame.Y
- bodypos = Instance.new("BodyPosition")
- bodypos.Position = Vector3.new(hit.X, hit.Y, hit.Z)
- bodypos.MaxForce = Vector3.new(1000,1000,1000)
- bodypos.Parent = part
- repeat
- wait(0.1)
- part.CFrame = CFrame.new(part.CFrame.X, ycframe, part.CFrame.Z)
- part.Size = part.Size - Vector3.new(0.1,0.1,0.1)
- until part.Size.X < 0.2
- part:Destroy()
- wait(15)
- debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement