Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local num = 0
- local p = game.Players.LocalPlayer
- local char = p.Character
- local rad = math.rad
- local hum = char.Humanoid
- local Weld0 = Instance.new("Weld")
- Instance.new("ForceField", char).Visible = false
- hum:SetStateEnabled("Dead", false)
- local candie = false
- local Udyne = true
- local v3 = Vector3.new
- local debounce = true
- local mouse = p:GetMouse()
- local walk1 = true
- local ns = NumberSequence.new
- local new = Instance.new
- local nr = NumberRange.new
- local bc = BrickColor.new
- local srot = 0
- local spos = {
- [1] = {180},
- [2] = {144},
- [3] = {108},
- [4] = {72},
- [5] = {36},
- [6] = {0}
- }
- local Vetrom = new("Sound", char)
- Vetrom.SoundId = "rbxassetid://"
- Vetrom.Volume = 5
- Vetrom.Pitch = 1
- Vetrom.Looped = true
- Vetrom:Play()
- local hitsnd = new("Sound", char)
- hitsnd.SoundId = "rbxassetid://934916502"
- hitsnd.Volume = 10
- hitsnd.Pitch = 1
- local udynespear1 = new("Part", char)
- udynespear1.BrickColor = bc("Gold")
- udynespear1.Material = "Neon"
- udynespear1.CanCollide = false
- udynespear1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 10, 0)
- udynespear1.Size = Vector3.new(0,0,0)
- local udynespear2 = new("Part", char)
- udynespear2.BrickColor = udynespear1.BrickColor
- udynespear2.Material = udynespear1.Material
- udynespear2.CanCollide = false
- udynespear2.CFrame = udynespear1.CFrame
- udynespear2.Size = udynespear1.Size
- local udynespear3 = new("Part", char)
- udynespear3.BrickColor = udynespear1.BrickColor
- udynespear3.Material = udynespear1.Material
- udynespear3.CanCollide = false
- udynespear3.CFrame = udynespear1.CFrame
- udynespear3.Size = udynespear1.Size
- local udynespear4 = new("Part", char)
- udynespear4.BrickColor = udynespear1.BrickColor
- udynespear4.Material = udynespear1.Material
- udynespear4.CanCollide = false
- udynespear4.CFrame = udynespear1.CFrame
- udynespear4.Size = udynespear1.Size
- local udynespear5 = new("Part", char)
- udynespear5.BrickColor = udynespear1.BrickColor
- udynespear5.Material = udynespear1.Material
- udynespear5.CanCollide = false
- udynespear5.CFrame = udynespear1.CFrame
- udynespear5.Size = udynespear1.Size
- local udynespear6 = new("Part", char)
- udynespear6.BrickColor = udynespear1.BrickColor
- udynespear6.Material = udynespear1.Material
- udynespear6.CanCollide = false
- udynespear6.CFrame = udynespear1.CFrame
- udynespear6.Size = udynespear1.Size
- local sbg6 = Instance.new("BodyGyro", udynespear6)
- sbg6.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg6.D = 400
- BP6 = Instance.new("BodyPosition", udynespear6)
- local sbg5 = Instance.new("BodyGyro", udynespear5)
- sbg5.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg5.D = 400
- BP5 = Instance.new("BodyPosition", udynespear5)
- local sbg4 = Instance.new("BodyGyro", udynespear4)
- sbg4.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg4.D = 400
- BP4 = Instance.new("BodyPosition", udynespear4)
- local sbg3 = Instance.new("BodyGyro", udynespear3)
- sbg3.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg3.D = 400
- BP3 = Instance.new("BodyPosition", udynespear3)
- local sbg2 = Instance.new("BodyGyro", udynespear2)
- sbg2.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg2.D = 400
- BP2 = Instance.new("BodyPosition", udynespear2)
- local sbg = Instance.new("BodyGyro", udynespear1)
- sbg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbg.D = 400
- BP = Instance.new("BodyPosition", udynespear1)
- spawn(function()
- while Udyne == true do
- sbg6.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- sbg5.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- sbg4.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- sbg3.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- sbg2.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- sbg.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- srot = srot + 4
- if srot == 360 then
- srot = 0
- end
- wait()
- end
- end)
- local Light = Instance.new("PointLight", char.HumanoidRootPart)
- Light.Color = Color3.new(50, 1, 0)
- Light.Brightness = 100
- Light.Range = 10
- hdebounce = true
- function throw1spear()
- coroutine.resume(coroutine.create(function()
- local udynespeart = new("Part", char)
- local zxc = Instance.new("SpecialMesh", udynespeart
- )
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(.1,.1,.1)
- zxc.MeshId = "rbxassetid://466293216"
- zxc.TextureId = "rbxassetid://466293242"
- udynespeart.BrickColor = udynespear1.BrickColor
- udynespeart.Material = udynespear1.Material
- udynespeart.CanCollide = true
- udynespeart.Anchored = false
- udynespeart.Size = Vector3.new(1.065, 4.969, 0.167)
- udynespeart.CFrame = (char.HumanoidRootPart.CFrame + Vector3.new(math.random(1, 2), 0, 2)) * CFrame.fromEulerAnglesXYZ(math.random(0, math.rad(0)), math.random(0, math.rad(0)), math.random(0, math.rad(0)))
- udynespeart.Touched:connect(function(hit)
- if hit.Parent == char then
- return
- end
- for i, v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") and hdebounce == true then
- hdebounce = false
- v.Health = 0
- udynespeart.Anchored = true
- hdebounce = true
- end
- end
- end)
- local sbgt = Instance.new("BodyGyro", udynespeart)
- sbgt.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbgt.D = 400
- sbgt.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- BPt = Instance.new("BodyPosition", udynespeart)
- BPt.Position = udynespeart.CFrame * CFrame.new(0, 10, 0).p
- wait(1)
- udynespeart.Anchored = true
- wait(0.5)
- udynespeart.Anchored = false
- BPt:destroy()
- local BodyVelocity = Instance.new("BodyVelocity", udynespeart)
- BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- BodyVelocity.velocity = mouse.Hit.lookVector * 200
- for i = 1, 5 do
- sbgt.CFrame = CFrame.new(udynespeart.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- wait()
- end
- sbgt:destroy()
- end))
- end
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "f" then
- throw1spear()
- end
- end)
- local hitt
- mouse.KeyDown:connect(function(k)
- if k == "q" and mouse.Target then
- if mouse.Target.Parent == char then
- return
- end
- if mouse.Target.Parent == game.workspace.Base then
- return
- end
- for i, v in pairs(mouse.Target.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- hitt = mouse.Target.Parent
- if debounce == true then
- debounce = false
- for i = 1, 2 do
- do
- local speara = new("Part", char)
- speara.Touched:connect(function(hit)
- if hit.Parent == char then
- return
- end
- for i, v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") and hdebounce == true then
- hdebounce = false
- v.Health = v.Health - 10
- wait(0.9)
- hdebounce = true
- end
- end
- end)
- local gunlight = Instance.new("SpotLight", speara)
- gunlight.Range = 40
- gunlight.Angle = 60
- gunlight.Face = "Top"
- gunlight.Shadows = true
- gunlight.Enabled = true
- gunlight.Color = Color3.new(0, 0, 1)
- local gunlight2 = Instance.new("SpotLight", speara)
- gunlight2.Range = 40
- gunlight2.Angle = 60
- gunlight2.Face = "Top"
- gunlight2.Shadows = true
- gunlight2.Enabled = true
- gunlight2.Color = Color3.new(0, 0, 1)
- speara.Size = Vector3.new(2, 2, 2)
- speara.BrickColor = bc("Toothpaste")
- local zxc = Instance.new("SpecialMesh", speara)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2, 2, 2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
- speara.Transparency = 0
- speara.Anchored = false
- speara.CanCollide = false
- speara.Name = "Spear"
- speara.CFrame = (mouse.Hit + Vector3.new(math.random(-10, 10), 19, math.random(-10, 10))) * CFrame.fromEulerAnglesXYZ(math.random(0, math.rad(359)), math.random(0, math.rad(359)), math.random(0, math.rad(359)))
- local sbgta = Instance.new("BodyGyro", speara)
- sbgta.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- sbgta.D = 10
- BPta = Instance.new("BodyPosition", speara)
- BPta.Name = "shootP"
- BPta.P = 20000
- sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- BPta.Position = speara.CFrame * CFrame.new(0, 2, 0).p
- wait(0.9)
- sbgta.D = 500
- wait(1)
- BPta.D = 1000
- BPta.Position = hitt.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0).p
- sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
- debounce = true
- local gdisp = coroutine.wrap(function()
- wait(1)
- for i = 1, 9 do
- wait(0.1)
- speara.Transparency = speara.Transparency + 0.3
- end
- speara:Destroy()
- end)
- gdisp()
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement