Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Sadly, this script is non-FE only.
- plr = game:GetService("Players").LocalPlayer
- char = plr.Character
- hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
- Camera = cam
- local CamInterrupt = false
- local TwoD = false
- local TargetInfo = {nil, nil}
- cam.CameraType = "Custom"
- t = char.Torso
- h = char.Head
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- tors = char.Torso
- lleg = char["Left Leg"]
- root = char.HumanoidRootPart
- hed = char.Head
- rleg = char["Right Leg"]
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- radian = math.rad
- random = math.random
- Vec3 = Vector3.new
- Inst = Instance.new
- cFrame = CFrame.new
- Euler = CFrame.fromEulerAnglesXYZ
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- local eff = true
- local shielding = false
- local Booleans = {
- CamFollow = true,
- GyroUse = true
- }
- function lerp(object, newCFrame, alpha)
- return object:lerp(newCFrame, alpha)
- end
- local Directer = Inst("BodyGyro", root)
- Directer.MaxTorque = Vec3(0, 0, 0)
- Directer.P = 600000
- local CPart = Inst("Part")
- CPart.Anchored = true
- CPart.CanCollide = false
- CPart.Locked = true
- CPart.Transparency = 1
- local rainbowmode = false
- local chaosmode = false
- kan = Instance.new("Sound",char)
- kan.Volume = 1.25
- kan.TimePosition = 0
- kan.PlaybackSpeed = 1
- kan.Pitch = 1
- kan.SoundId = "rbxassetid://996980700"
- kan.Name = "wrecked"
- kan.Looped = true
- kan:Play()
- function newTheme(ID,timepos,pitch,vol)
- local kanz = kan
- --kanz:Stop()
- --kanz.Volume = vol
- --kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "wrecked"
- kanz.Looped = true
- kanz.Volume = 0.3
- --kanz:Play()
- --coroutine.resume(coroutine.create(function()
- --wait(0.05)
- --end))
- end
- function newThemeCust(ID,timepos,pitch,vol)
- local kanz = kan
- kanz:Stop()
- kanz.Volume = vol
- kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "wrecked"
- kanz.Looped = true
- kanz:Play()
- coroutine.resume(coroutine.create(function()
- wait(0.05)
- end))
- end
- function CameraShake(Times, Power, PlayerTarget)
- coroutine.resume(coroutine.create(function()
- FV = Instance.new("BoolValue", PlayerTarget)
- FV.Name = "CameraShake"
- for ShakeNum=1,Times do
- swait()
- local ef=Power
- if ef>=1 then
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
- else
- ef=Power*10
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
- end
- end
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- FV:Destroy()
- end))
- end
- function CameraEnshaking(Length,Intensity)
- coroutine.resume(coroutine.create(function()
- local intensity = 1*Intensity
- local rotM = 0.01*Intensity
- for i = 0, Length, 0.1 do
- swait()
- intensity = intensity - 0.05*Intensity/Length
- rotM = rotM - 0.0005*Intensity/Length
- hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
- cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
- end
- Humanoid.CameraOffset = Vec3(0, 0, 0)
- end))
- end
- CamShake=function(Part,Distan,Power,Times)
- local de=Part.Position
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- for _,c in pairs(v:children()) do
- if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
- local Noob=v.Humanoid
- if Noob~=nil then
- coroutine.resume(coroutine.create(function()
- FV = Instance.new("BoolValue", Noob)
- FV.Name = "CameraShake"
- for ShakeNum=1,Times do
- swait()
- local ef=Power
- if ef>=1 then
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
- else
- ef=Power*10
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
- end
- end
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- FV:Destroy()
- end))
- CameraShake(Times, Power, Noob)
- end
- end
- end
- end
- end
- end
- function chatfunc(text,color)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "SciFi"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = color
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local tecks3 = Instance.new("TextLabel",naeeym2)
- tecks3.BackgroundTransparency = 1
- tecks3.BorderSizePixel = 0
- tecks3.Text = ""
- tecks3.Font = "SciFi"
- tecks3.TextSize = 30
- tecks3.TextStrokeTransparency = 0
- tecks3.TextColor3 = Color3.new(0,0,0)
- tecks3.TextStrokeColor3 = color
- tecks3.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while true do
- swait(1)
- plr.Character.wrecked.Volume = 0.3
- if chaosmode == true then
- tecks2.TextColor3 = BrickColor.random().Color
- tecks3.TextStrokeColor3 = BrickColor.random().Color
- end
- tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
- tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
- tecks2.Rotation = math.random(-5,5)
- tecks3.Rotation = math.random(-5,5)
- end
- end))
- for i = 1,string.len(text),1 do
- CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
- tecks2.Text = string.sub(text,1,i)
- tecks3.Text = string.sub(text,1,i)
- swait(1)
- end
- wait(1)
- local randomrot = math.random(1,2)
- if randomrot == 1 then
- for i = 1, 50 do
- swait()
- tecks2.Rotation = tecks2.Rotation - .75
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.Rotation = tecks2.Rotation + .75
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- elseif randomrot == 2 then
- for i = 1, 50 do
- swait()
- tecks2.Rotation = tecks2.Rotation + .75
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.Rotation = tecks2.Rotation - .75
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- local Create = LoadLibrary("RbxUtility").Create
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["LongSound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 30)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local halocolor = BrickColor.new("Deep orange")
- local halocolor2 = BrickColor.new("Deep orange")
- local starcolor = BrickColor.new("Deep orange")
- local lunacolor = BrickColor.new("Deep orange")
- local lunacolor2 = BrickColor.new("Deep orange")
- local wepcolor = BrickColor.new("Deep orange")
- local maincolor = BrickColor.new("Deep orange")
- local m = Instance.new("Model",char)
- local m2 = Instance.new("Model",char)
- local m3 = Instance.new("Model",char)
- local mw1 = Instance.new("Model",char)
- local mw2 = Instance.new("Model",char)
- local extrawingmod1 = Instance.new("Model",char)
- local extrawingmod2 = Instance.new("Model",char)
- function CreateParta(parent,transparency,reflectance,material,brickcolor)
- local p = Instance.new("Part")
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = parent
- p.Size = Vector3.new(0.1,0.1,0.1)
- p.Transparency = transparency
- p.Reflectance = reflectance
- p.CanCollide = false
- p.Locked = true
- p.BrickColor = brickcolor
- p.Material = material
- return p
- end
- function CreateMesh(parent,meshtype,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = meshtype
- mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
- return mesh
- end
- function CreateSpecialMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.Scale = Vector3.new(x1,y1,z1)
- return mesh
- end
- function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
- mesh.Scale = Vector3.new(x1,y1,z1)
- mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
- return mesh
- end
- function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
- local weld = Instance.new("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
- weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
- return weld
- end
- --------------
- local secondchar = Instance.new("Model",char)
- local GhostCol = BrickColor.new("Really red")
- local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(sectors,"Brick",2*8,2*8,1*8)
- local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
- local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
- local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
- local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
- local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
- CreateMesh(seched,"Brick",1*8,1*8,1*8)
- local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- --------------
- local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
- CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
- CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0,0,0)
- local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- handlex = CreateParta(mw2,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0,0,0)
- CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local handle = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- --- Left wing.
- local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing1,wed,0,0,0.75,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing1,wed,0,0,0.75,math.rad(270),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,lwing1,wed,0,-0.75,3.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,lwing1,wed,0,-3.25,0.75,math.rad(180),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- tl1 = Instance.new('Trail',wed)
- tl1.Attachment0 = A0
- tl1.Attachment1 = A1
- tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tl1.LightEmission = 1
- tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl1.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tl1.Lifetime = 0.6
- local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing2,wed,0,0,0.75,math.rad(120),math.rad(90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing2,wed,0,0,0.75,math.rad(240),math.rad(-90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,lwing2,wed,0,-0.75,3.25,math.rad(120),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,lwing2,wed,0,-3.25,0.75,math.rad(210),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- tl2 = Instance.new('Trail',wed)
- tl2.Attachment0 = A0
- tl2.Attachment1 = A1
- tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tl2.LightEmission = 1
- tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl2.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tl2.Lifetime = 0.6
- local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing3,wed,0,0,0.75,math.rad(40),math.rad(90),math.rad(0),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,lwing3,wed,0,0,0.75,math.rad(320),math.rad(-90),math.rad(0),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,lwing3,wed,0,-0.75,3.25,math.rad(40),math.rad(90),math.rad(90),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- wed = CreateParta(mw1,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,lwing3,wed,0,-3.25,0.75,math.rad(130),math.rad(90),math.rad(90),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- tl3 = Instance.new('Trail',wed)
- tl3.Attachment0 = A0
- tl3.Attachment1 = A1
- tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tl3.LightEmission = 1
- tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl3.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tl3.Lifetime = 0.6
- -- Right wing.
- local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing1,wed,0,0,0.75,math.rad(270),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing1,wed,0,0,0.75,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,rwing1,wed,0,-0.75,3.25,math.rad(270),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,rwing1,wed,0,-3.25,0.75,math.rad(360),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- tr1 = Instance.new('Trail',wed)
- tr1.Attachment0 = A0
- tr1.Attachment1 = A1
- tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tr1.LightEmission = 1
- tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tr1.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tr1.Lifetime = 0.6
- local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing2,wed,0,0,0.75,math.rad(240),math.rad(90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing2,wed,0,0,0.75,math.rad(120),math.rad(-90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,rwing2,wed,0,-0.75,3.25,math.rad(240),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,rwing2,wed,0,-3.25,0.75,math.rad(330),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- tr2 = Instance.new('Trail',wed)
- tr2.Attachment0 = A0
- tr2.Attachment1 = A1
- tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tr2.LightEmission = 1
- tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tr2.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tr2.Lifetime = 0.6
- local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
- CreateMesh(handle,"Brick",0.5,0.5,0.5)
- local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing3,wed,0,0,0.75,math.rad(320),math.rad(90),math.rad(0),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- A0 = Instance.new('Attachment',wed)
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,1.5)
- CreateWeld(wed,rwing3,wed,0,0,0.75,math.rad(40),math.rad(-90),math.rad(0),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,1.5,5)
- CreateWeld(wed,rwing3,wed,0,-0.75,3.25,math.rad(320),math.rad(90),math.rad(90),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- wed = CreateParta(mw2,0,0,"Neon",halocolor)
- CreateMesh(wed,"Wedge",0.5,5,1.5)
- CreateWeld(wed,rwing3,wed,0,-3.25,0.75,math.rad(50),math.rad(90),math.rad(90),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
- A1 = Instance.new('Attachment',wed)
- tr3 = Instance.new('Trail',wed)
- tr3.Attachment0 = A0
- tr3.Attachment1 = A1
- tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tr3.LightEmission = 1
- tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tr3.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
- tr3.Lifetime = 0.6
- ---- HERES THE RING
- --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",1.02,1.02,1.02)
- CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",0.9,0.9,1.025)
- CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",1.025,0.9,0.9)
- CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(gan,"Brick",1.075,0.1,1.075)
- CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(gan,"Brick",1.075,0.1,1.075)
- CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m2,0,0,"Neon",halocolor2)
- CreateMesh(gan,"Brick",1.095,0.035,1.095)
- CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m2,0,0,"Neon",halocolor2)
- CreateMesh(gan,"Brick",1.095,0.035,1.095)
- CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
- CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
- CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
- CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
- CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
- CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- --- second ring
- ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",1.02,1.02,1.02)
- CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",0.9,0.9,1.025)
- CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(ran,"Wedge",1.025,0.9,0.9)
- CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(gan,"Brick",1.075,0.1,1.075)
- CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateMesh(gan,"Brick",1.075,0.1,1.075)
- CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m2,0,0,"Neon",halocolor2)
- CreateMesh(gan,"Brick",1.095,0.035,1.095)
- CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gan = CreateParta(m2,0,0,"Neon",halocolor2)
- CreateMesh(gan,"Brick",1.095,0.035,1.095)
- CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
- CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
- CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
- CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
- CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
- CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
- CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
- local p = game:GetService("Players").LocalPlayer
- local plr = game:GetService("Players").LocalPlayer
- local player = game:GetService("Players").LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char:WaitForChild("Left Arm")
- local rarm = char:WaitForChild("Right Arm")
- local lleg = char:WaitForChild("Left Leg")
- local rleg = char:WaitForChild("Right Leg")
- local hed = char:WaitForChild("Head")
- local torso = char:WaitForChild("Torso")
- local root = char:WaitForChild("HumanoidRootPart")
- local hum = char:FindFirstChildOfClass("Humanoid")
- local debris = game:GetService("Debris")
- local run = game:GetService("RunService")
- local rs = run.RenderStepped
- local cam = workspace.CurrentCamera
- local movement = 4
- local change = 0.4
- local DebrisModel = Instance.new("Model",char)
- local stealth = false
- local debounce = false
- hum.MaxHealth = 50000
- hum.Health = hum.MaxHealth
- themeid = 0
- themepitch = 1
- main = {r = 0;g = 100;b = 255;v = 1}
- if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
- if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
- if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
- if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
- if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
- if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
- pr = p:FindFirstChild("rcolor")
- pg = p:FindFirstChild("gcolor")
- pb = p:FindFirstChild("bcolor")
- pv = p:FindFirstChild("vcolor")
- idth = p:FindFirstChild("idtheme")
- pith = p:FindFirstChild("pitchtheme")
- main_color = Color3.fromRGB(239, 184, 56)
- explosionid = {262562442,144699494,539294959,1388740053}
- --919941001
- Prefix = "/"
- p.Chatted:connect(function(msg)
- if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
- local v = tonumber(msg:sub(#Prefix+#'color r '+1))
- main.r = v
- elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
- local v = tonumber(msg:sub(#Prefix+#'color g '+1))
- main.g = v
- elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
- local v = tonumber(msg:sub(#Prefix+#'color b '+1))
- main.b = v
- elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
- local v = tonumber(msg:sub(#Prefix+#'color v '+1))
- if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
- elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
- local v = tonumber(msg:sub(#Prefix+#'theme '+1))
- themeid = v
- music(themeid,themepitch)
- elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
- local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
- themepitch = v
- music(themeid,themepitch)
- elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
- local v = msg:sub(#Prefix+#'prefix '+1)
- Prefix = v
- elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
- main.r = 0
- main.g = 100
- main.b = 255
- main.v = 1
- themeid = 556122490
- themepitch = 1
- music(themeid,themepitch)
- end
- end)
- ----------------------------------------------------------------------------
- no_anim = false
- attack = false
- attacking = false
- canjump = true
- aiming_anim = false
- animid = math.random(0,1)
- timer = 0
- bg = Instance.new("BodyGyro",root)
- bg.P = 100000
- bg.D = 100
- ----------------------------------------------------------------------------
- function rswait(value)
- if value ~= nil and value ~= 0 then
- for i=1,value do
- rs:wait()
- end
- else
- rs:wait()
- end
- end
- ----------------------------------------------------------------------------
- max = 0
- function music(id,pitch)
- max = 0
- if id == "Stop" then
- if not torso:FindFirstChild("MusicRuin") then
- soundz = Instance.new("Sound",torso)
- end
- soundz:Stop()
- else
- if not torso:FindFirstChild("MusicRuin") then
- soundz = Instance.new("Sound",torso)
- end
- soundz.MaxDistance = 150*5
- soundz.EmitterSize = 150/5
- soundz.Volume = 10
- soundz.Name = "MusicRuin"
- soundz.Looped = true
- soundz.PlaybackSpeed = pitch
- soundz.SoundId = "rbxassetid://"..id
- soundz:Stop()
- soundz:Play()
- end
- end
- ----------------------------------------------------------------------------
- function lerp(a, b, t)
- return a + (b - a)*t
- end
- ----------------------------------------------------------------------------
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function slerp(a, b, t)
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- ----------------------------------------------------------------------------
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function findAllNearestTorso(pos,dist)
- local list = game.Workspace:children()
- local torso = {}
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= char) then
- local nayem = "Torso"
- if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
- temp = temp2:findFirstChild(nayem)
- human = temp2:findFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- table.insert(torso,temp)
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- ----------------------------------------------------------------------------
- local isAPlayer
- function checkIfNotPlayer(model)
- coroutine.resume(coroutine.create(function()
- if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
- isAPlayer = true
- else
- isAPlayer = false
- end
- end))
- return isAPlayer
- end
- ----------------------------------------------------------------------------
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- ----------------------------------------------------------------------------
- function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- return wld
- end
- ----------------------------------------------------------------------------
- function weld(model)
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(model)
- for _,v in pairs(parts) do
- v.Anchored = false
- v.Locked = true
- end
- end
- ----------------------------------------------------------------------------
- function sound(id,position,vol,pitch,dist,start,finish)
- coroutine.resume(coroutine.create(function()
- local part = Instance.new("Part",DebrisModel)
- part.Anchored = true
- part.Position = position
- part.Size = Vector3.new(0,0,0)
- part.CanCollide = false
- part.Transparency = 1
- soundasd = Instance.new("Sound",part)
- soundasd.SoundId = "rbxassetid://"..id
- if vol ~= nil then
- soundasd.Volume = vol
- end
- if pitch ~= nil then
- soundasd.PlaybackSpeed = pitch
- end
- if dist ~= nil then
- soundasd.MaxDistance = dist*5
- soundasd.EmitterSize = dist/5
- end
- delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
- soundasd:Play()
- end))
- return soundasd
- end
- function createsound(id,parent)
- local soundz = Instance.new("Sound",parent)
- soundz.SoundId = "rbxassetid://"..id
- return soundz
- end
- function playsound(sond,vol,pitch,start)
- if vol ~= nil then
- sond.Volume = vol
- end
- if pitch ~= nil then
- sond.PlaybackSpeed = pitch
- end
- if start ~= nil then
- sond.TimePosition = start
- end
- sond:Play()
- end
- ----------------------------------------------------------------------------
- eColors={"Really red","Really black"}
- function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
- local magz = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {-Offset,Offset}
- for i=1,Times do
- local li = Instance.new("Part", DebrisModel)
- li.TopSurface =0
- li.Material = Enum.Material.Neon
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- li.Transparency = Trans or 0.4
- li.BrickColor = BrickColor.new(Color)
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(Thickness,Thickness,magz/Times)
- local lim = Instance.new("BlockMesh",li)
- local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
- if Times == i then
- local magz2 = (curpos - Part1).magnitude
- li.Size = Vector3.new(Thickness,Thickness,magz2)
- li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
- li.Name = "LIGHTNING"
- end
- end
- ----------------------------------------------------------------------------
- local HBill = Instance.new("BillboardGui",hed)
- local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
- local HName = Instance.new("TextLabel")
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.StudsOffset = Vector3.new(3.675,1.2,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(.5,0,.2,0)
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.BackgroundColor3 = Color3.new(255,255,255)
- HName.BorderColor3 = Color3.new(0,0,0)
- HName.BorderSizePixel = 2
- HName.Size = UDim2.new(1,0,.75,0)
- HName.Font = "Code"
- HName.Text = "The Profane God"
- HName.TextScaled = true
- HName.TextColor3 = Color3.fromRGB(255,176,0)
- HName.TextStrokeColor3 = Color3.new(239/255,184/255,56/255)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Bottom"
- local HBill = Instance.new("BillboardGui",hed)
- local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
- local HName = Instance.new("TextLabel")
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.StudsOffset = Vector3.new(3.675,2,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(.5,0,.5,0)
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.BackgroundColor3 = Color3.new(255,255,255)
- HName.BorderColor3 = Color3.new(0,0,0)
- HName.BorderSizePixel = 2
- HName.Size = UDim2.new(1,0,.75,0)
- HName.Font = "Code"
- HName.Text = "Providence"
- HName.TextScaled = true
- HName.TextColor3 = Color3.new(255/255,176/255,0/255)
- HName.TextStrokeColor3 = Color3.fromRGB(239,184,56)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Bottom"
- function bigboomrektxd()
- coroutine.resume(coroutine.create(function()
- local magnitude = nil
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- --sound(743499393,Position,10,math.random(6,8)/10)
- sound(440145223,Position,10,math.random(10,12)/10,50)
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshId = "rbxassetid://559831844"
- mesh2.Scale = Vector3.new(0,0,0.4)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(0,0,0)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
- Part1.Name = "EXPLOSION2"
- local Part0 = Instance.new("Part",DebrisModel)
- local PointLight2 = Instance.new("PointLight")
- Part0.Name = "Bullet"
- Part0.Material = Enum.Material.Neon
- Part0.Color = Color3.fromRGB(255, 176, 0)
- Part0.Anchored = false
- Part0.Size = Vector3.new(5, 5, 5)
- local mesh = Instance.new("SpecialMesh",Part0)
- mesh.MeshType = Enum.MeshType.Sphere
- local bforce = Instance.new("BodyForce",Part0)
- bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
- Part0.CanCollide = false
- PointLight2.Parent = Part0
- PointLight2.Color = Part0.Color
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local pos = Position + (direction * 2)
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- Part0.Velocity = direction * 60
- local asd = nil
- local loop = nil
- delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
- loop = rs:connect(function()
- local asdf = math.random(500,1000)/1000
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
- Part1.Name = "SMOKE"
- end)
- asd = Part0.Touched:connect(function(ht)
- local hit=ht.Parent
- if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
- asd:disconnect()
- loop:disconnect()
- Part0:Destroy()
- sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
- for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
- if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
- v:Destroy()
- else
- v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
- end
- local Position = Part0.Position
- local Target = v.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- local bv = Instance.new("BodyVelocity",v)
- bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
- debris:AddItem(bv,1)
- end
- for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
- for z=1,math.random(2,3) do
- local asdf = math.random(-5,5)*10-(i/20)*8
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0,0,0)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- local a = i*0.5
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
- Part1.Name = "EXPLOSION"
- end
- end
- end
- end)
- end))
- end
- holdclick=false
- mouse.Button1Down:connect(function()
- if debounce == false then
- if animid == 0 then
- animid = 1
- else
- animid = 0
- end
- debounce = true
- holdclick = true
- aiming_anim = true
- wait(0.2)
- repeat
- rs:wait()
- timer = 150
- until holdclick == false
- bigboomrektxd()
- local Position = mouse.Hit.p
- local Target = root.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- root.Velocity = direction * 150
- aiming_anim = false
- delay(0.3,function() debounce = false end)
- end
- end)
- mouse.Button1Up:connect(function()
- holdclick=false
- end)
- function dashasdf()
- debounce = true
- canjump = false
- attack = true
- for i,v in pairs(char:GetChildren()) do
- if v ~= root then
- if v:IsA("Part") then
- v.Transparency = 1
- elseif v:IsA("Accoutrement") then
- v:FindFirstChildOfClass("Part").Transparency = 1
- end
- end
- end
- local tempattachment = Instance.new("Attachment",root)
- tempattachment.Position = Vector3.new(0,0,-4)
- for i=1,20 do rs:wait()
- root.Velocity = Vector3.new(0,0,0)
- root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
- local asdf = math.random(500,1000)/100
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
- Part1.Name = "SMOKE"
- end
- tempattachment:Destroy()
- for i,v in pairs(char:GetChildren()) do
- if v ~= root then
- if v:IsA("Part") then
- v.Transparency = 0
- elseif v:IsA("Accoutrement") then
- v:FindFirstChildOfClass("Part").Transparency = 0
- end
- end
- end
- canjump = true
- attack = false
- delay(0.1,function() debounce = false end)
- end
- function laz0r()
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshId = "rbxassetid://559831844"
- mesh2.Scale = Vector3.new(0,0,0.4)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(0,0,0)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
- Part1.Name = "EXPLOSION3"
- local Part0 = Instance.new("Part",DebrisModel)
- Part0.Name = "Bullet"
- Part0.Material = Enum.Material.Neon
- Part0.Color = Color3.fromRGB(255, 176, 0)
- Part0.Anchored = true
- local mesh = Instance.new("SpecialMesh",Part0)
- mesh.MeshType = Enum.MeshType.Sphere
- Part0.CanCollide = false
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local ray = Ray.new(Position, (Target-Position).unit*1048)
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- Part0.Size = Vector3.new(5,1,5)
- mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
- local pos = Position + (direction * (mesh.Scale.Y/2))
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- clashpart = Instance.new("Part",DebrisModel)
- clashpart.Size = Vector3.new(50,50,50)
- clashpart.CanCollide = false
- clashpart.Anchored = true
- clashpart.Transparency = 1
- clashpart.Color = main_color
- clashpart.Name = "StarLightClash"
- clashpart.CFrame = CFrame.new(endPoint, root.Position)
- sound(1177475476,Position,10,math.random(5,6)/10,300)
- local z = 10
- for i = 1,100 do rs:wait()
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local ray = Ray.new(Position, (Target-Position).unit*1048)
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
- mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
- mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
- local pos = Position + (direction * (mesh.Scale.Y/2))
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- clashpart.CFrame = CFrame.new(endPoint, root.Position)
- local Position = mouse.Hit.p
- local Target = root.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- root.Velocity = direction * 5
- if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
- Part1 = Part0:Clone()
- Part1.Parent = DebrisModel
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Name = "SMOKE2"
- if part ~= nil then
- if part.Name == "StarLightClash" then
- local asdf = math.random(0,5)*20
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0,0,0)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- local a = 1.5
- Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
- Part1.Name = "EXPLOSION"
- else
- local asdf = math.random(0,5)*10
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0,0,0)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- local a = 1.5
- Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
- Part1.Name = "EXPLOSION"
- end
- end
- for i,v in pairs(findAllNearestTorso(endPoint,50)) do
- if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
- v:Destroy()
- else
- v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
- end
- local Position = mouse.Hit.p
- local Target = v.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- local bv = Instance.new("BodyVelocity",v)
- bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
- debris:AddItem(bv,1)
- end
- end
- clashpart:Destroy()
- Part0:Destroy()
- wait(0.3)
- aiming_anim = false
- delay(0.3,function() debounce = false end)
- end
- function nukewelpo()
- coroutine.resume(coroutine.create(function()
- local magnitude = nil
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- --sound(743499393,Position,10,math.random(6,8)/10)
- sound(440145223,Position,10,math.random(4,5)/10,100)
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshId = "rbxassetid://559831844"
- mesh2.Scale = Vector3.new(0,0,0.4)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(0,0,0)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
- Part1.Name = "EXPLOSION3"
- local Part0 = Instance.new("Part",DebrisModel)
- local PointLight2 = Instance.new("PointLight")
- Part0.Name = "Bullet"
- Part0.Material = Enum.Material.Neon
- Part0.Color = Color3.fromRGB(255, 176, 0)
- Part0.Anchored = false
- Part0.Size = Vector3.new(5, 5, 5)
- local mesh = Instance.new("SpecialMesh",Part0)
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Scale = Vector3.new(3,3,3)
- local bforce = Instance.new("BodyForce",Part0)
- bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
- Part0.CanCollide = false
- PointLight2.Parent = Part0
- PointLight2.Color = Part0.Color
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local pos = Position + (direction * 2)
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- Part0.Velocity = direction * 150
- local asd = nil
- local loop = nil
- delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
- loop = rs:connect(function()
- local asdf = math.random(500,1000)/1000
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
- Part1.Name = "SMOKE"
- end)
- asd = Part0.Touched:connect(function(ht)
- local hit=ht.Parent
- if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
- asd:disconnect()
- loop:disconnect()
- Part0:Destroy()
- sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
- for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
- if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
- v:Destroy()
- else
- v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
- end
- local Position = Part0.Position
- local Target = v.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- local bv = Instance.new("BodyVelocity",v)
- bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
- debris:AddItem(bv,1)
- end
- for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
- for z=1,math.random(2,3) do
- local asdf = math.random(-5,5)*10-(i/20)*12
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0,0,0)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromRGB(255, 176, 0)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- local a = i*5
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
- Part1.Name = "EXPLOSION4"
- end
- end
- end
- end)
- end))
- end
- holdq = false
- holdr = false
- cooldownult = false
- mouse.KeyDown:connect(function(key)
- if debounce == false then
- if key == "e" then
- dashasdf()
- elseif key == "r" and cooldownult == false then
- cooldownult = true
- if animid == 0 then
- animid = 1
- else
- animid = 0
- end
- debounce = true
- holdr = true
- aiming_anim = true
- wait(0.2)
- repeat
- rs:wait()
- timer = 150
- until holdr == false
- nukewelpo()
- local Position = mouse.Hit.p
- local Target = root.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- root.Velocity = direction * 300
- aiming_anim = false
- delay(5,function() cooldownult = false end)
- delay(1,function() debounce = false end)
- elseif key == "q" then
- debounce = true
- if animid == 0 then
- animid = 1
- else
- animid = 0
- end
- holdq = true
- attack = true
- aiming_anim = true
- repeat rs:wait() timer = 150 until holdq == false
- laz0r()
- attack = false
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "q" then
- holdq = false
- elseif key == "r" then
- holdr = false
- end
- end)
- ----------------------------------------------------------------------------
- music(themeid,themepitch)
- velocityYFall=0
- velocityYFall2=0
- velocityYFall3=0
- velocityYFall4=0
- neckrotY=0
- neckrotY2=0
- torsorotY=0
- torsorotY2=0
- torsoY=0
- torsoY2=0
- sine = 0
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- rs:connect(function()
- bg.MaxTorque = Vector3.new(0,0,0)
- for i,v in pairs(DebrisModel:GetChildren()) do
- if v.Name == "EXPLOSION" then
- local change = 0.04-(v.Transparency*0.02)
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- vm.Scale = vm.Scale + Vector3.new(change,change,change)
- v.Transparency = v.Transparency + 0.02
- if v.Transparency >= 1 then
- v:Destroy()
- end
- elseif v.Name == "EXPLOSION2" then
- local change = 0.04-(v.Transparency*0.04)
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- vm.Scale = vm.Scale + Vector3.new(change,change,0)
- v.Transparency = v.Transparency + 0.025
- if v.Transparency >= 1 then
- v:Destroy()
- end
- elseif v.Name == "EXPLOSION3" then
- local change = 0.5-(v.Transparency*0.5)
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- vm.Scale = vm.Scale + Vector3.new(change,change,0)
- v.Transparency = v.Transparency + 0.1
- if v.Transparency >= 1 then
- v:Destroy()
- end
- elseif v.Name == "EXPLOSION4" then
- local change = 0.15-(v.Transparency*0.125)
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- vm.Scale = vm.Scale + Vector3.new(change,change,change)
- v.Transparency = v.Transparency + 0.01
- if v.Transparency >= 1 then
- v:Destroy()
- end
- elseif v.Name == "SMOKE" then
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
- if vm.Scale.X <= 0 then
- v:Destroy()
- end
- elseif v.Name == "SMOKE2" then
- local change = 2-(v.Transparency*2)
- local vm = v:FindFirstChildOfClass("SpecialMesh")
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local ray = Ray.new(Position, (Target-Position).unit*1048)
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
- local pos = Position + (direction * (vm.Scale.Y/2))
- v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
- v.Transparency = v.Transparency + 0.1
- if v.Transparency >= 1 then
- v:Destroy()
- end
- elseif v.Name == "LIGHTNING" then
- local vm = v:FindFirstChildOfClass("BlockMesh")
- vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
- if vm.Scale.X <= 0 then
- v:Destroy()
- end
- end
- end
- if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
- velocityYFall = root.Velocity.Y/1.5
- end
- if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
- velocityYFall2 = root.Velocity.Y/180
- end
- if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
- velocityYFall3 = root.Velocity.Y/1.5
- end
- if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
- velocityYFall4 = root.Velocity.Y/1.5
- end
- if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
- neckrotY = root.RotVelocity.Y/6
- end
- if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
- neckrotY2 = root.RotVelocity.Y/8
- end
- if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
- torsorotY = root.RotVelocity.Y/6
- end
- if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
- torsorotY2 = root.RotVelocity.Y/8
- end
- torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
- torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
- if attack == true then
- hum.WalkSpeed = 1
- else
- hum.WalkSpeed = 8
- end
- if canjump == true then
- hum.JumpPower = 50
- else
- hum.JumpPower = 0
- end
- local jumped = false
- local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
- local part1, endPoint = workspace:FindPartOnRay(ray1, char)
- local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
- local part2, endPoint = workspace:FindPartOnRay(ray2, char)
- local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
- local part3, endPoint = workspace:FindPartOnRay(ray3, char)
- local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
- local part4, endPoint = workspace:FindPartOnRay(ray4, char)
- if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
- local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
- local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
- local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
- local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
- if no_anim == false then
- if hum.Health > 0 then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- elseif jumped == true then
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
- end
- for i=1,5 do
- if aiming_anim == true then
- bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
- if jumped == false then
- bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
- else
- bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- end
- if animid == 0 then
- hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
- else
- hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4)
- end
- else
- if timer <= 0 then
- animid = math.random(0,1)
- else
- timer = timer - 1
- end
- end
- end
- end
- end
- main_color = Color3.fromRGB(255, 176, 0)
- pr.Value = main.r
- pg.Value = main.g
- pb.Value = main.b
- pv.Value = main.v
- idth.Value = themeid
- pith.Value = themepitch
- HName.TextStrokeColor3 = Color3.fromRGB(239, 184, 56)
- HName.TextColor3 = Color3.fromRGB(255, 176, 0)
- sine = sine + change
- if hum.Health <= 0 then
- debounce = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement