Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool")
- Part = Instance.new("Part")
- Part.Name = "Handle"
- Part.Parent = tool
- tool.Parent = owner.Character
- tool.Grip = CFrame.Angles(0,0,math.rad(-90))
- alive = false
- toolout = false
- notouch = false
- local where
- tool.Equipped:Connect(function()
- toolout = true
- task.wait()
- end)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.25
- local object = tool
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.GripPos = Vector3.new(0,0,0.5)
- local shot = tweenService:Create(object, tweenInfo, goal)
- local returnshot = {}
- returnshot.GripPos = tool.GripPos
- local shot2 = tweenService:Create(object, tweenInfo, returnshot)
- tool.Unequipped:Connect(function()
- toolout = false
- end)
- local isTouched = false
- function thinghere(plr,hit)
- if toolout then
- blackhole = Instance.new("SpawnLocation",owner.Character)
- blackhole.Enabled = false
- blackhole.CFrame = hit
- blackhole.Anchored = true
- blackhole.CanCollide = false
- blackhole.Shape = "Ball"
- blackhole.Color = Color3.fromRGB()
- blackhole.Material = "Neon"
- blackhole.Size = Vector3.new()
- coroutine.wrap(function()
- shot:Play()
- wait(0.5)
- shot2:Play()
- end)
- alive = true
- task.wait()
- coroutine.wrap(function()
- while alive do
- task.wait()
- for i, hit in pairs(workspace:GetPartsInPart(blackhole)) do
- coroutine.wrap(function()
- if hit.Name ~= "Base" then
- pcall(function()
- if hit:FindFirstChildOfClass("SpecialMesh") then
- hit:FindFirstChildOfClass("SpecialMesh"):Destroy()
- end
- local U = hit:SubtractAsync({blackhole})
- local D = hit.Parent:GetDescendants() or hit:GetDescendants()
- for i = 1,#D do
- if D[i]:IsA("JointInstance") then
- if D[i].Part0 == D then
- D[i].Part0 = U
- end
- if D[i].Part1 == D then
- D[i].Part1 = U
- end
- end
- end
- local O = hit.Parent
- hit.Parent = nil
- U.Parent = O
- end)
- end
- end)()
- end
- end
- end)()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 1
- local object = blackhole
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Size = Vector3.new(20,20,20)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal2 = {}
- goal2.Size = Vector3.new(0,0,0)
- local tween2 = tweenService:Create(object, tweenInfo, goal2)
- game:GetService("Debris"):AddItem(blackhole,6)
- tween:Play()
- wait(2)
- tween2:Play()
- wait(3)
- alive = false
- end
- end
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer(Mouse.Hit)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(thinghere)
- part1 = Part
- local part2 = Instance.new("Part", part1)
- part1.Size = Vector3.new(1.25,1.005,1.75)
- part2.Size = Vector3.new(1,2,2)
- part2.Shape = "Cylinder"
- part2.Color = Color3.fromRGB(199, 20, 0)
- part1.Color = Color3.fromRGB(199, 20, 0)
- part2.Material = "SmoothPlastic"
- part1.Material = "SmoothPlastic"
- local part3 = Instance.new("Part", part1)
- part3.Size = Vector3.new(1.0625,1.65,1.65)
- part3.Shape = "Cylinder"
- part3.Color = Color3.fromRGB(43, 43, 43)
- part3.Material = "SmoothPlastic"
- local part4 = Instance.new("Part", part1)
- part4.Size = Vector3.new(1.255,1.01,0.95)
- part4.Color = Color3.fromRGB(43, 43, 43)
- part4.Material = "SmoothPlastic"
- part3.Massless = true
- part2.Massless = true
- part1.Massless = true
- local weld = Instance.new("Weld", part1)
- weld.Part0 = part2
- weld.Part1 = part1
- weld.C0 = CFrame.Angles(0,0,math.rad(90)) * CFrame.new(0,0,-1.35)
- local weld2 = Instance.new("Weld", part1)
- weld2.Part0 = part3
- weld2.Part1 = part1
- weld2.C0 = CFrame.Angles(0,0,math.rad(90)) * CFrame.new(0,0,-1.35)
- local weld3 = Instance.new("Weld", part1)
- weld3.Part0 = part4
- weld3.Part1 = part1
- weld3.C0 = CFrame.new(0,0,0.39)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement