Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local ImageLabel = Instance.new("ImageLabel")
- local TextBox = Instance.new("TextBox")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- local TextButton_3 = Instance.new("TextButton")
- local TextButton_4 = Instance.new("TextButton")
- local TextButton_5 = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ImageLabel.Parent = ScreenGui
- ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel.Position = UDim2.new(0.0878090337, 0, 0.125148982, 0)
- ImageLabel.Size = UDim2.new(0, 402, 0, 273)
- ImageLabel.Image = "rbxassetid://112645396"
- TextBox.Parent = ScreenGui
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.Position = UDim2.new(0.0937766433, 0, 0.125148982, 0)
- TextBox.Size = UDim2.new(0, 389, 0, 50)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = "RAINBOW GUI V1.1"
- TextBox.TextColor3 = Color3.new(0, 0, 0)
- TextBox.TextSize = 14
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.Position = UDim2.new(0.151747659, 0, 0.407628119, 0)
- TextButton.Size = UDim2.new(0, 62, 0, 36)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "DISCO MESH"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 14
- TextButton_2.Parent = ScreenGui
- TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_2.Position = UDim2.new(0.0878090337, 0, 0.407628119, 0)
- TextButton_2.Size = UDim2.new(0, 65, 0, 36)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "plane"
- TextButton_2.TextColor3 = Color3.new(0, 0, 0)
- TextButton_2.TextSize = 14
- TextButton_3.Parent = ScreenGui
- TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_3.Position = UDim2.new(0.213981241, 0, 0.407628119, 0)
- TextButton_3.Size = UDim2.new(0, 62, 0, 36)
- TextButton_3.Font = Enum.Font.SourceSans
- TextButton_3.Text = "DoomScythe"
- TextButton_3.TextColor3 = Color3.new(0, 0, 0)
- TextButton_3.TextSize = 14
- TextButton_4.Parent = ScreenGui
- TextButton_4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_4.Position = UDim2.new(0.284739971, 0, 0.407628119, 0)
- TextButton_4.Size = UDim2.new(0, 62, 0, 36)
- TextButton_4.Font = Enum.Font.SourceSans
- TextButton_4.Text = "MasterHand"
- TextButton_4.TextColor3 = Color3.new(0, 0, 0)
- TextButton_4.TextSize = 14
- TextButton_5.Parent = ScreenGui
- TextButton_5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_5.Position = UDim2.new(0.352941155, 0, 0.407628119, 0)
- TextButton_5.Size = UDim2.new(0, 62, 0, 36)
- TextButton_5.Font = Enum.Font.SourceSans
- TextButton_5.Text = "Eye"
- TextButton_5.TextColor3 = Color3.new(0, 0, 0)
- TextButton_5.TextSize = 14
- -- Scripts:
- function SCRIPT_JLDF73_FAKESCRIPT() -- TextButton.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = TextButton
- function click()
- plr = game.Players.LocalPlayer.Name
- meshes = {"Brick","Cylinder","Head","Sphere","Torso","Wedge"}
- h = game.Workspace[plr].Head.Mesh
- t = Instance.new("SpecialMesh",game.Workspace[plr].Torso)
- la = Instance.new("SpecialMesh",game.Workspace[plr]["Left Arm"])
- ra = Instance.new("SpecialMesh",game.Workspace[plr]["Right Arm"])
- ll = Instance.new("SpecialMesh",game.Workspace[plr]["Left Leg"])
- rl = Instance.new("SpecialMesh",game.Workspace[plr]["Right Leg"])
- while true do
- wait(0.1)
- h.MeshType = meshes[math.random(1,#meshes)]
- h.Parent.BrickColor = BrickColor.Random()
- t.MeshType = meshes[math.random(1,#meshes)]
- t.Parent.BrickColor = BrickColor.Random()
- la.MeshType = meshes[math.random(1,#meshes)]
- la.Parent.BrickColor = BrickColor.Random()
- ra.MeshType = meshes[math.random(1,#meshes)]
- ra.Parent.BrickColor = BrickColor.Random()
- ll.MeshType = meshes[math.random(1,#meshes)]
- ll.Parent.BrickColor = BrickColor.Random()
- rl.MeshType = meshes[math.random(1,#meshes)]
- rl.Parent.BrickColor = BrickColor.Random()
- end
- end
- script.Parent.MouseButton1Down:connect(click)
- end
- coroutine.resume(coroutine.create(SCRIPT_JLDF73_FAKESCRIPT))
- function SCRIPT_XUKT85_FAKESCRIPT() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = TextButton_2
- function click()
- repeat wait() until game:IsLoaded() and game:service("Players").LocalPlayer.Character ~= nil;
- wait(0.4)
- for i, v in pairs(game:service("Players").LocalPlayer.Character:children()) do
- if v ~= script then
- v:Destroy()
- end
- end
- local player = game:service("Players").LocalPlayer
- local mouse = player:GetMouse()
- local cam = workspace.CurrentCamera
- local char = player.Character
- local Torsoz = char:findFirstChild("Torso")
- local NV = Vector3.new()
- local Main
- local W,S = false,false
- local DoublePress = {nil,0}
- script.Parent = char
- local TrailParts = {}
- local Acceleration = 0.08
- local Speed = 0
- local MinSpeed = 0
- local MaxSpeed = 3.2
- local DesiredDirection = cam.CoordinateFrame.lookVector
- local Direction = DesiredDirection
- local Roll = 0
- local AllowTrails = true
- script.Name = "AdvFlight"
- local P = Instance.new("Part")
- P.Anchored = true
- P.CanCollide = false
- P.Name = "Part"
- P.formFactor = "Custom"
- P.Size = Vector3.new(0.2,0.2,0.2)
- P.Locked = true
- P.TopSurface = 10
- P.BottomSurface = 10
- P.FrontSurface = 10
- P.BackSurface = 10
- P.LeftSurface = 10
- P.RightSurface = 10
- P.Material = "Pebble"
- P.BrickColor = BrickColor.new("White")
- local shipp
- local shadow
- local campart
- function RAY(pos, dir, startpos, endpos, distleft, collidedlist)
- collidedlist = collidedlist or {char}
- startpos = startpos or pos
- distleft = distleft or dir.unit * dir.magnitude
- endpos = endpos or pos + distleft
- local ray = Ray.new(pos, distleft)
- local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
- if hitz ~= nil then
- if hitz.CanCollide == false then
- table.insert(collidedlist, hitz)
- local newpos = enz
- local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
- if newdistleft ~= NV then
- return RAY(newpos-(dir*0.01), dir, startpos, endpos, newdistleft+(dir*0.01), collidedlist)
- end
- end
- end
- return hitz, enz, ray
- end
- function FindSurface(part, position)
- local obj = part.CFrame:pointToObjectSpace(position)
- local siz = part.Size/2
- for i,v in pairs(Enum.NormalId:GetEnumItems()) do
- local vec = Vector3.FromNormalId(v)
- local wvec = part.CFrame:vectorToWorldSpace(vec)
- local vz = (obj)/(siz*vec)
- if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
- return wvec,vec
- end
- end
- if part.className == "WedgePart" then
- return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
- end
- end
- function HSV(H,S,V)
- H = H % 360
- local C = V * S
- local H2 = H/60
- local X = C * (1 - math.abs((H2 %2) -1))
- local color = Color3.new(0,0,0)
- if H2 <= 0 then
- color = Color3.new(C,0,0)
- elseif 0 <= H2 and H2 <= 1 then
- color = Color3.new(C,X,0)
- elseif 1 <= H2 and H2 <= 2 then
- color = Color3.new(X,C,0)
- elseif 2 <= H2 and H2 <= 3 then
- color = Color3.new(0,C,X)
- elseif 3 <= H2 and H2 <= 4 then
- color = Color3.new(0,X,C)
- elseif 4 <= H2 and H2 <= 5 then
- color = Color3.new(X,0,C)
- elseif 5 <= H2 and H2 <= 6 then
- color = Color3.new(C,0,X)
- end
- local m = V - C
- return Color3.new(color.r + m, color.g + m, color.b + m)
- end
- function Build(shiptype)
- AllowTrails = true
- for i, v in pairs(char:children()) do
- if v.className == "Model" and v.Name == "Ship" then
- v:remove()
- end
- end
- for i, v in pairs(TrailParts) do
- for _,V in pairs(v[3]) do
- V:Destroy()
- end
- end
- local mdl = Instance.new("Model", char)
- mdl.Name = "Ship"
- ------------------------ Speeder Ship Type -----------------------------
- if shiptype == "Speeder" then
- shipp = P:Clone()
- shipp.Parent = mdl
- shipp.Size = Vector3.new(1,1,2.2)
- local shipwing1 = P:Clone()
- shipwing1.Parent = mdl
- shipwing1.Size = Vector3.new(0.6,1.2,2)
- local mesh = Instance.new("SpecialMesh", shipwing1)
- mesh.MeshType = "Wedge"
- local shipwing2 = shipwing1:Clone()
- shipwing2.Parent = mdl
- campart = P:Clone()
- campart.Transparency = 1
- local shipwing21 = P:Clone()
- shipwing21.Parent = mdl
- shipwing21.Size = Vector3.new(0.32,1.1,2.6)
- local mesh = Instance.new("SpecialMesh", shipwing21)
- mesh.MeshType = "Wedge"
- local shipwing22 = shipwing21:Clone()
- shipwing22.Parent = mdl
- campart = P:Clone()
- campart.Transparency = 1
- local shipwi = P:Clone()
- shipwi.Parent = mdl
- shipwi.Size = Vector3.new(1,1,1.2)
- local mesh = Instance.new("SpecialMesh", shipwi)
- mesh.MeshType = "Wedge"
- local shipwi2 = P:Clone()
- shipwi2.Parent = mdl
- shipwi2.Size = Vector3.new(0.7,0.7,0.84)
- shipwi2.Material = "SmoothPlastic"
- shipwi2.BrickColor = BrickColor.new("Pastel blue")
- shipwi2.Reflectance = 0.6
- local mesh = Instance.new("SpecialMesh", shipwi2)
- mesh.MeshType = "Wedge"
- shadow = P:Clone()
- shadow.Parent = mdl
- shadow.Name = "Shadow"
- shadow.Material = "SmoothPlastic"
- shadow.BrickColor = BrickColor.new("Really black")
- local mesh = Instance.new("SpecialMesh",shadow)
- mesh.MeshType = "Sphere"
- TrailParts = {}
- table.insert(TrailParts,{shipp,1,{},cam.CoordinateFrame.p,CFrame.new(0,0,1),0.5,18})
- table.insert(TrailParts,{shipwing1,1,{},cam.CoordinateFrame.p,CFrame.new(0,0.45,1),0.3,15})
- table.insert(TrailParts,{shipwing2,1,{},cam.CoordinateFrame.p,CFrame.new(0,0.45,1),0.3,15})
- for _, V in pairs(TrailParts) do
- for i = 1, V[7] do
- local p = P:Clone()
- local mesh = Instance.new("SpecialMesh", p)
- mesh.MeshId = "http://www.roblox.com/asset/?id=9856898"
- mesh.TextureId = "http://www.roblox.com/asset/?id=48358980"
- p.BrickColor = BrickColor.new("Dark stone grey")
- table.insert(V[3],p)
- end
- end
- function ReposParts()
- shipwing1.CFrame = shipp.CFrame * CFrame.new(-1.1,-0.195,-0.14) * CFrame.Angles(0,0,math.pi/2)
- shipwing2.CFrame = shipp.CFrame * CFrame.new(1.1,-0.195,-0.14) * CFrame.Angles(0,0,-math.pi/2)
- shipwing21.CFrame = shipp.CFrame * CFrame.new(-1.05,-0.34,-0.45) * CFrame.Angles(0,0,math.pi/2)
- shipwing22.CFrame = shipp.CFrame * CFrame.new(1.05,-0.34,-0.45) * CFrame.Angles(0,0,-math.pi/2)
- shipwi.CFrame = shipp.CFrame * CFrame.new(0,0,-1.7)
- shipwi2.CFrame = shipwi.CFrame * CFrame.new(0,0.015,-0.015)
- campart.CFrame = shipp.CFrame + Vector3.new(0,1.5,0)
- end
- cam.CameraSubject = campart
- cam.CameraType = "Track"
- shipp.CFrame = CFrame.new(NV,Direction) + cam.CoordinateFrame.p
- ReposParts()
- end
- AllowTrails = true
- end
- Build("Speeder")
- function B1D()
- Build("Speeder")
- end
- function RollThatSht(direc)
- if Roll == 0 then
- for i = 1, 50 do
- Roll = (-360 + math.cos(math.pi/50*i) * 360) * direc
- wait(0.02)
- end
- Roll = 0
- end
- end
- function KD(key)
- if key == "w" then
- W = true
- elseif key == "s" then
- S = true
- end
- local rollpls = 0
- if key == DoublePress[1] and tick() - DoublePress[2] < 0.32 then
- DoublePress = {nil,0}
- if key == "a" then
- rollpls = -1
- elseif key == "d" then
- rollpls = 1
- end
- end
- DoublePress = {key,tick()}
- if rollpls ~= 0 then
- RollThatSht(rollpls)
- end
- end
- function KU(key)
- if key == "w" then
- W = false
- elseif key == "s" then
- S = false
- end
- end
- function Equip()
- end
- function Unequip()
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(B1D)
- mouse.KeyDown:connect(KD)
- mouse.KeyUp:connect(KU)
- local count = 0
- local hue = 0
- --game:GetService("RunService").Stepped:connect(function()
- while wait(0.02) do
- ------ Speed --------
- local valu = (0.002*MaxSpeed) + ((Speed/MaxSpeed)*Acceleration)
- if W == true then
- Speed = Speed + valu
- elseif S == true then
- Speed = Speed - valu
- end
- if Speed > MaxSpeed then
- Speed = MaxSpeed
- elseif Speed < MinSpeed then
- Speed = MinSpeed
- end
- ------ left/right tilt ---------
- local target = 180 + math.floor(math.deg(math.atan2(DesiredDirection.x,DesiredDirection.z)))
- local current = 180 + math.floor(math.deg(math.atan2(Direction.x,Direction.z)))
- local swing = 0
- if math.abs(math.abs(current-target) - 360) > math.abs(target-current) then
- swing = target-current
- else
- swing = (current > target and -(math.abs(current-target) - 360)) or (current < target and math.abs(current-target) - 360)
- end
- DesiredDirection = cam.CoordinateFrame.lookVector
- ------ direction smoothening ------
- local dir = DesiredDirection.unit
- if Direction ~= dir then
- if (Direction - dir).magnitude < 0.01 then
- Direction = dir
- else
- local dist = ((dir - Direction).unit * (dir - Direction).magnitude) /10
- Direction = (Direction + dist).unit
- end
- end
- shipp.CFrame = (CFrame.new(NV,Direction) + shipp.Position + (Direction.unit * Speed)) * CFrame.Angles(0,0,math.rad(Roll) + math.rad(swing/2))
- ReposParts()
- ------ shadow ------
- local ghitz, genz = RAY(shipp.Position,Vector3.new(0,-26,0))
- local angles = CFrame.new()
- if ghitz ~= nil and ghitz.className ~= "Terrain" and ((ghitz.className == "Part" and ghitz.Shape == Enum.PartType.Block) or (ghitz.className ~= "Part" and ghitz:IsA("BasePart"))) then
- local wvec,vec = FindSurface(ghitz,genz)
- angles = CFrame.new(NV,wvec) * CFrame.Angles(-math.pi/2,0,0)
- elseif ghitz ~= nil and (ghitz.className == "Part" and ghitz.Shape == Enum.PartType.Ball) then
- angles = (CFrame.new(ghitz.Position, genz) - ghitz.Position) * CFrame.Angles(-math.pi/2,0,0)
- end
- shadow.CFrame = CFrame.new(genz) * angles
- shadow.Transparency = 0.5 + (((shipp.Position - genz).magnitude /26)*0.5)
- shadow.Mesh.Scale = (Vector3.new(4.4,0.25,4.4) * 5) * (1-(shipp.Position - genz).magnitude /26)
- ------- Trails -----------------------
- if AllowTrails == true then
- count = (count+1)%1
- hue = (hue+1) % 360
- local rgb = HSV(hue,0.65,0.85)
- for _,v in pairs(TrailParts) do
- local to = (v[1].CFrame * v[5]).p
- if Speed > MinSpeed + 0.2 then
- v[2] = (v[2]%#v[3]) + 1
- v[3][v[2]].CFrame = CFrame.new((v[4] + to)/2,to) * CFrame.Angles(math.pi/2,math.rad(Roll) + math.rad(swing/2),0)
- v[3][v[2]].Mesh.Scale = Vector3.new(v[6],(v[4] - to).magnitude*2,v[6])
- v[3][v[2]].Mesh.VertexColor = Vector3.new(rgb.r,rgb.g,rgb.b)
- v[3][v[2]].Transparency = 0.15
- v[3][v[2]].Parent = game.Players.LocalPlayer.Character
- else
- v[2] = (v[2]%#v[3]) + 1
- v[3][v[2]].Parent = nil
- end
- v[4] = to
- end
- end
- end
- --end)
- -- 138098590 -- plane destroyed sound
- -- 133082569 -- propeller 2
- -- 135645246 -- propeller 1
- --[[ Possible Game names
- Aeroscape
- Airbound
- Aerialtude
- ]]
- end
- script.Parent.MouseButton1Down:connect(click)
- end
- coroutine.resume(coroutine.create(SCRIPT_XUKT85_FAKESCRIPT))
- function SCRIPT_ZZQD74_FAKESCRIPT() -- TextButton_3.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = TextButton_3
- click=false
- script.Parent.MouseButton1Up:connect(function() click=false end)
- script.Parent.MouseLeave:connect(function() click=false end)
- script.Parent.MouseButton1Down:connect(function() click=true
- while click==true and wait() do
- --[[
- Script shared by eletronix ]]
- me = game.Players.LocalPlayer
- char = me.Character
- bin = script.Parent
- selected = false
- attacking = false
- hurt = false
- deb = true
- normdmg = 18
- dmg = normdmg
- fly = false
- firecols = {"Bright violet", "Black", "Really black"}
- parts = {}
- if char:findFirstChild("Scythe",true) ~= nil then
- char:findFirstChild("Scythe",true).Parent = nil
- end
- function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
- part.Parent = parent
- part.formFactor = form
- part.CanCollide = collide
- part.Transparency = tran
- part.Reflectance = ref
- part.Size = Vector3.new(x,y,z)
- part.BrickColor = BrickColor.new(color)
- part.TopSurface = 0
- part.BottomSurface = 0
- part.Anchored = anchor
- part.Locked = true
- part:BreakJoints()
- end
- function weld(w, p, p1, a, b, c, x, y, z)
- w.Parent = p
- w.Part0 = p
- w.Part1 = p1
- w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
- end
- function mesh(mesh, parent, x, y, z, type)
- mesh.Parent = parent
- mesh.Scale = Vector3.new(x, y, z)
- mesh.MeshType = type
- end
- function getcharparts(path)
- local objs = {}
- for _,v in pairs(path:children()) do
- if v:IsA("Model") and v.Name ~= name then
- for _,k in pairs(v:children()) do
- if k.Name == "Torso" then
- table.insert(objs,k)
- end
- end
- end
- end
- return objs
- end
- sword = Instance.new("Model",me.Character)
- sword.Name = "Scythe"
- --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
- rarm = char:findFirstChild("Right Arm")
- larm = char:findFirstChild("Left Arm")
- torso = char:findFirstChild("Torso")
- hum = char:findFirstChild("Humanoid")
- main = Instance.new("Part")
- prop(main, sword, false, 0, 0, 0.45, 6.4, 0.45, "Really black", false, "Custom")
- mme = Instance.new("SpecialMesh")
- mesh(mme,main,1,1,1,"Head")
- table.insert(parts,main)
- part1 = Instance.new("Part")
- prop(part1, sword, false, 0, 0, 0.45, 1, 0.45, "Really black", false, "Custom")
- p1m = Instance.new("SpecialMesh")
- mesh(p1m,part1,1,1,1,"Head")
- w1 = Instance.new("Weld")
- weld(w1, main, part1, 0, 0, -1.1, -0.3, 3.3, 0)
- part2 = Instance.new("Part")
- prop(part2, sword, false, 0, 0, 0.45, 1, 0.45, "Really black", false, "Custom")
- p2m = Instance.new("SpecialMesh")
- mesh(p2m,part2,1,1,1,"Head")
- w2 = Instance.new("Weld")
- weld(w2, main, part2, 0, 0, -1.1, 0.3, -3.3, 0)
- blade1 = Instance.new("Part")
- prop(blade1, sword, false, 0, 0, 1.4, 0.8, 0.1, "Dark grey", false, "Custom")
- b1m = Instance.new("BlockMesh",blade1)
- w3 = Instance.new("Weld")
- weld(w3, main, blade1, 0, 0, -0.4, -0.45, -3.4, 0)
- table.insert(parts,blade1)
- blade2 = Instance.new("Part")
- prop(blade2, sword, false, 0, 0, 1.1, 0.8, 0.1, "Dark grey", false, "Custom")
- b2m = Instance.new("BlockMesh",blade2)
- w4 = Instance.new("Weld")
- weld(w4, main, blade2, 0, 0, 0, -1.5, -3.66, 0)
- table.insert(parts,blade2)
- blade3 = Instance.new("Part")
- prop(blade3, sword, false, 0, 0, 0.1, 0.8, 1.7, "Dark grey", false, "Custom")
- b3m = Instance.new("SpecialMesh")
- mesh(b3m,blade3,1,1,1,"Wedge")
- w5 = Instance.new("Weld")
- weld(w5, main, blade3, 0, math.pi/2, 0.4, -2.64, -3.38, 0)
- table.insert(parts,blade3)
- blade1b = Instance.new("Part")
- prop(blade1b, sword, false, 0, 0, 1.4, 0.8, 0.1, "Dark grey", false, "Custom")
- b1mb = Instance.new("BlockMesh",blade1b)
- w6 = Instance.new("Weld")
- weld(w6, main, blade1b, 0, 0, -0.4+math.pi, 0.45, 3.4, 0)
- table.insert(parts,blade1b)
- blade2b = Instance.new("Part")
- prop(blade2b, sword, false, 0, 0, 1.1, 0.8, 0.1, "Dark grey", false, "Custom")
- b2mb = Instance.new("BlockMesh",blade2b)
- w7 = Instance.new("Weld")
- weld(w7, main, blade2b, 0, 0, math.pi, 1.5, 3.66, 0)
- table.insert(parts,blade2b)
- blade3b = Instance.new("Part")
- prop(blade3b, sword, false, 0, 0, 0.1, 0.8, 1.7, "Dark grey", false, "Custom")
- b3mb = Instance.new("SpecialMesh")
- mesh(b3mb,blade3b,1,1,1,"Wedge")
- w8 = Instance.new("Weld")
- weld(w8, main, blade3b, 0, math.pi/2, 0.4+math.pi, 2.64, 3.38, 0)
- table.insert(parts,blade3b)
- for i=0.9, 1.6, 0.09 do
- hp1 = Instance.new("Part")
- prop(hp1, sword, false, 0, 0, 0.48, 0.09, 0.48, "White", false, "Custom")
- h1m = Instance.new("SpecialMesh")
- mesh(h1m,hp1,1,1,1,"Head")
- w9 = Instance.new("Weld")
- weld(w9, main, hp1, math.random(-20,20)/100, 0, math.random(-20,20)/100, 0, i, 0)
- end
- for i=0.9, 1.6, 0.09 do
- hp2 = Instance.new("Part")
- prop(hp2, sword, false, 0, 0, 0.48, 0.09, 0.48, "White", false, "Custom")
- h2m = Instance.new("SpecialMesh")
- mesh(h2m,hp2,1,1,1,"Head")
- w10 = Instance.new("Weld")
- weld(w10, main, hp2, math.random(-20,20)/100, 0, math.random(-20,20)/100, 0, -i, 0)
- end
- --Arm joints-----------------------Arm joints-----------------------Arm joints---------------------
- righthold = Instance.new("Part")
- prop(righthold, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
- w11 = Instance.new("Weld")
- weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0)
- lefthold = Instance.new("Part")
- prop(lefthold, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
- w12 = Instance.new("Weld")
- weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0)
- rb = Instance.new("Part")
- prop(rb, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
- w13 = Instance.new("Weld")
- weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0)
- lb = Instance.new("Part")
- prop(lb, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
- w14 = Instance.new("Weld")
- weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0)
- rw = Instance.new("Weld")
- weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
- lw = Instance.new("Weld")
- weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0)
- holdweld = Instance.new("Weld")
- weld(holdweld,torso,main,0,0,0.85,0,0,-0.64)
- rh = Instance.new("Weld")
- weld(rh,righthold,nil,math.pi/2,0,math.pi,0,0,1)
- lh = Instance.new("Weld")
- weld(lh,lefthold,nil,math.pi/2,0,0,0,0,0)
- rightbattle = nil
- leftbattle = nil
- if script.Parent.className ~= "HopperBin" then
- h = Instance.new("HopperBin",me.Backpack)
- h.Name = "Scythe"
- script.Parent = h
- end
- bin = script.Parent
- function selectmotion()
- rw.Part1 = rarm
- rh.C0 = CFrame.new(0,0,0)
- rw.C0 = CFrame.new(0,0,0)
- lw.C0 = CFrame.new(0,0,0)
- for i=1, 7 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.25,0.13,-0.1)
- wait()
- end
- rh.Part1 = main
- holdweld.Part1 = nil
- for i=1, 5 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.3,0,-0.1)
- rh.C0 = rh.C0 * CFrame.new(0,0,0.4) * CFrame.fromEulerAnglesXYZ(0,0,-(math.pi/2)/5)
- wait()
- end
- lw.Part1 = larm
- for i=1, 5 do
- rw.C0 = rw.C0 * CFrame.new(-0.03,0.05,0.08) * CFrame.fromEulerAnglesXYZ(-0.3,-0.2,0.13)
- lw.C0 = lw.C0 * CFrame.new(0.08,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0)
- wait()
- end
- rightbattle = rw.C0
- leftbattle = lw.C0
- rh.Part1 = main
- lw.Part1 = larm
- rw.C0 = rightbattle
- lw.C0 = leftbattle
- selected = true
- end
- function deselmotion()
- selected = false
- rightbattle = rw.C0
- leftbattle = lw.C0
- rh.Part1 = main
- lw.Part1 = larm
- rw.Part1 = rarm
- rw.C0 = rightbattle
- lw.C0 = leftbattle
- for i=1, 5 do
- rw.C0 = rw.C0 * CFrame.new(0.03,-0.05,-0.08) * CFrame.fromEulerAnglesXYZ(0.3,0.2,-0.13)
- lw.C0 = lw.C0 * CFrame.new(-0.08,0,0) * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
- wait()
- end
- lw.Part1 = nil
- for i=1, 5 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.3,0,0.1)
- rh.C0 = rh.C0 * CFrame.new(0,0,-0.4) * CFrame.fromEulerAnglesXYZ(0,0,(math.pi/2)/5)
- wait()
- end
- holdweld.Part1 = main
- rh.Part1 = nil
- for i=1, 7 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.25,-0.13,0.1)
- wait()
- end
- rw.Part1 = nil
- lw.Part1 = nil
- rh.C0 = CFrame.new(0,0,0)
- rw.C0 = CFrame.new(0,0,0)
- lw.C0 = CFrame.new(0,0,0)
- end
- --Effect------------------Effect------------------Effect------------------Effect------------------Effect----------------
- function effect()
- for _,v in pairs(parts) do
- local o = v:clone()
- o.Parent = workspace
- o.Transparency = 0.6
- o.BrickColor = BrickColor.new("Bright violet")
- o.Anchored = true
- o.CanCollide = false
- o.CFrame = v.CFrame
- coroutine.resume(coroutine.create(function()
- for i=o.Transparency, 1, 0.07 do
- wait()
- o.Transparency = i
- end
- o:remove()
- end))
- end
- end
- --KILL FUNCTION-------------KILL FUNCTION-------------KILL FUNCTION-------------KILL FUNCTION-----------
- function kill(h)
- if hurt and deb then
- local hu = h.Parent:findFirstChild("Humanoid")
- if hu ~= nil and h.Parent.Name ~= name then
- deb = false
- local dam = math.random(0,dmg)
- hu.Health = hu.Health - dam
- local p = Instance.new("Part")
- prop(p,nil,false,1,0,0.9,0.25,0.9,"Bright red",false,"Custom")
- p.CFrame = CFrame.new(blade3b.Position) * CFrame.new(0,2,0)
- local bil = Instance.new("BillboardGui",p)
- bil.Adornee = bil.Parent
- bil.Size = UDim2.new(0,60,0,60)
- local txt = Instance.new("TextLabel",bil)
- txt.Text = dam
- txt.BackgroundTransparency = 1
- txt.FontSize = "Size24"
- txt.Size = UDim2.new(0,60,0,60)
- local bp = Instance.new("BodyPosition",p)
- bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.P = 200000
- bp.position = p.Position
- local po = bp.position
- local cf = CFrame.Angles(0,0,0)
- if fly then
- local too = h.Parent:findFirstChild("Torso")
- if too ~= nil then
- coroutine.resume(coroutine.create(function()
- hu.PlatformStand = true
- wait(0.06)
- local c = CFrame.new(torso.Position, too.Position)
- too.Velocity = c.lookVector * math.random(30,70)
- wait(0.6)
- hu.PlatformStand = false
- end))
- end
- end
- coroutine.resume(coroutine.create(function()
- p.Parent = workspace
- for i=0, math.random(16,27), 0.35 do
- wait()
- cf = CFrame.Angles(0,i/1.3,0) * CFrame.new(0,i/1.7,i/3.2)
- bp.position = po + cf.p
- end
- p:remove()
- end))
- coroutine.resume(coroutine.create(function()
- wait(0.14)
- deb = true
- end))
- end
- end
- end
- for _,v in pairs(parts) do
- v.Touched:connect(kill)
- end
- --Attacks-----------Attacks----------------Attacks-----------Attacks----------------Attacks-----------Attacks--------------
- function att()
- attacking = true
- for i=1,7 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.05,-0.2,-0.05)
- lw.C0 = lw.C0 * CFrame.new(0.07,-0.08,0) * CFrame.fromEulerAnglesXYZ(0,0,0.12)
- wait()
- end
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.3,0,0.05)
- lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0.1)
- wait()
- end
- hurt = true
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.5,-0.06,0.12)
- lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.23,-0.07,0)
- effect()
- wait()
- end
- hurt = false
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.13,0.23,-0.2)
- lw.C0 = lw.C0 * CFrame.new(-0.08,0.09,0.03) * CFrame.fromEulerAnglesXYZ(-0.1,0.15,-0.15)
- effect()
- wait()
- end
- rw.C0 = rightbattle
- lw.C0 = leftbattle
- attacking = false
- end
- function throw()
- attacking = true
- for i=1,7 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.08,-0.14,-0.2)
- wait()
- end
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.2,-0,0)
- effect()
- wait()
- end
- for i=1,4 do
- rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.45,-0,0)
- effect()
- wait()
- end
- rh.Part1 = nil
- local bv = Instance.new("BodyVelocity",main)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity = torso.CFrame.lookVector * 70
- local bav = Instance.new("BodyAngularVelocity",main)
- bav.P = 10000
- bav.angularvelocity = torso.CFrame.lookVector * 40
- local lolpos = torso.CFrame
- wait(0.4)
- hurt = true
- dmg = 65
- coroutine.resume(coroutine.create(function()
- repeat wait() effect() until (main.Position - torso.Position).magnitude < 11
- rh.Part1 = main
- bv:remove()
- bav:remove()
- rw.C0 = rightbattle
- lw.C0 = leftbattle
- attacking = false
- hurt = false
- dmg = normdmg
- end))
- wait(3)
- bv.velocity = lolpos.lookVector * -180
- end
- function spin()
- attacking = true
- wait(0.1)
- local bg = Instance.new("BodyGyro",torso)
- bg.P = 13000
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- local cf = CFrame.Angles(0,0,0)
- local xd = torso.CFrame
- bg.cframe = CFrame.new(torso.Position, xd * cf * CFrame.new(0,0,-90).p)
- for i=1,4 do
- rw.C0 = rw.C0 * CFrame.new(0,0.1,0) * CFrame.fromEulerAnglesXYZ(0.35,0,-0.07)
- lw.C0 = lw.C0 * CFrame.new(0,0.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- wait()
- end
- hurt = true
- fly = true
- for i=0,math.pi*4,math.pi/6 do
- wait()
- cf = CFrame.Angles(0,-i,0)
- bg.cframe = CFrame.new(torso.Position, xd * cf * CFrame.new(0,0,-90).p)
- effect()
- end
- hurt = false
- fly = false
- bg:remove()
- for i=1,4 do
- rw.C0 = rw.C0 * CFrame.new(0,-0.1,0) * CFrame.fromEulerAnglesXYZ(-0.35,0,0.07)
- lw.C0 = lw.C0 * CFrame.new(0,-0.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- wait()
- end
- rw.C0 = rightbattle
- lw.C0 = leftbattle
- wait(0.2)
- attacking = false
- end
- function select(mouse)
- repeat wait() until selected == false and attacking == false
- if selected == false then
- selectmotion()
- end
- coroutine.resume(coroutine.create(function()
- while selected do
- wait(0.25)
- if torso.RotVelocity.Y < -14 and attacking == false then
- spin()
- end
- end
- end))
- mouse.Button1Down:connect(function()
- if selected and attacking == false then
- att()
- end
- end)
- mouse.KeyDown:connect(function(kai)
- if attacking == false then
- omg = kai:lower()
- if omg == "r" then
- throw()
- end
- end
- end)
- end
- function desel()
- repeat wait() until selected and attacking == false
- if selected then
- deselmotion()
- end
- end
- bin.Selected:connect(select)
- bin.Deselected:connect(desel)
- --mediafire
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_ZZQD74_FAKESCRIPT))
- function SCRIPT_HMZD78_FAKESCRIPT() -- TextButton_4.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = TextButton_4
- script.Parent.MouseEnter:connect(function(e)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == gr then
- bt.TextColor3 = wh
- bt.BorderColor3 = wh
- cli:Play()
- end
- end)
- script.Parent.MouseLeave:connect(function(l)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == wh then
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- cli:Play()
- end
- end)
- function click()
- local all=script:GetChildren()
- for i=1,#all do
- if all[i].ClassName=="LocalScript" then
- local s=all[i]:Clone()
- s.Disabled=false
- s.Parent=game.Players.LocalPlayer.Backpack
- end
- end
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- end
- script.Parent.MouseButton1Down:connect(click)
- end
- coroutine.resume(coroutine.create(SCRIPT_HMZD78_FAKESCRIPT))
- function SCRIPT_MSKR66_FAKESCRIPT() -- TextButton_5.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = TextButton_5
- script.Parent.MouseEnter:connect(function(e)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == gr then
- bt.TextColor3 = wh
- bt.BorderColor3 = wh
- cli:Play()
- end
- end)
- script.Parent.MouseLeave:connect(function(l)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == wh then
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- cli:Play()
- end
- end)
- function click()
- local all=script:GetChildren()
- for i=1,#all do
- if all[i].ClassName=="LocalScript" then
- local s=all[i]:Clone()
- s.Disabled=false
- s.Parent=game.Players.LocalPlayer.Backpack
- end
- end
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- end
- script.Parent.MouseButton1Down:connect(click)
- end
- coroutine.resume(coroutine.create(SCRIPT_MSKR66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement