Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = Instance.new("Part",script)
- part.Size = Vector3.new(0.8, 0.140625, 0.91265625)
- part.Anchored = true
- local death = Instance.new("Sound", part)
- death.SoundId = "rbxassetid://4908056253"
- death.Volume = 2
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = part
- Mesh.MeshId = "http://www.roblox.com/asset/?id=4946463257"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=4946463441"
- Mesh.Scale = Vector3.new(1.5,1.5,1.5)
- local donthit = {}
- for i,v in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- table.insert(donthit,v)
- end)
- end
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {donthit}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = workspace:Raycast(owner.Character.HumanoidRootPart.Position + owner.Character.HumanoidRootPart.CFrame.lookVector * 2,owner.Character.HumanoidRootPart.CFrame.upVector * -1000 + owner.Character.HumanoidRootPart.CFrame.lookVector * 2,params)
- if result then
- part.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(180),0)
- part.Position = result.Position
- part.CFrame = part.CFrame * CFrame.new(0,0.0703125,0.456328125)
- task.wait()
- local TweenService = game:GetService("TweenService")
- local goal = {}
- goal.CFrame = part.CFrame
- local tweenInfo = TweenInfo.new(.5,Enum.EasingStyle.Exponential,Enum.EasingDirection.In,0,false,0)
- local tween = TweenService:Create(part, tweenInfo, goal)
- task.wait()
- part.CFrame = part.CFrame * CFrame.new(0,-0.0703125,-0.456328125) * CFrame.new(0,0.456328125,0)
- part.CFrame = part.CFrame * CFrame.Angles(math.rad(-89),0,0)
- death.TimePosition = 79
- death:Play()
- wait(6.5)
- tween:Play()
- wait(10)
- death:Stop()
- end
Add Comment
Please, Sign In to add comment