Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System = {}
- System.Create = function(a, c)
- local e = Instance.new(a)
- for d, a in pairs(c) do
- local b, a = ypcall(function()
- return e[d]
- end)
- if b then
- e[d] = c[d]
- end
- end
- return e
- end
- function b(d, b)
- local c = getfenv(d)
- local a = setmetatable({}, {
- __index = function(a, a)
- if a:lower() == 'script' then
- return b
- else
- return c[a]
- end
- end
- })
- setfenv(d, a)
- ypcall(function()
- d()
- end)
- end
- c = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = System.Create("Part",{
- ["Parent"] = mas,
- ["Position"] = Vector3.new(225.174713, 0.665851116, -134.765137),
- ["Rotation"] = Vector3.new(79.999939, 0, 2.54445326e-014),
- ["Anchored"] = true,
- ["CFrame"] = CFrame.new(225.174713, 0.665851116, -134.765137, 0.999996305, -4.4408921e-016, 0, 0, 0.173648298, -0.984803975, 0, 0.984805763, 0.173648611),
- ["CanCollide"] = false,
- ["Size"] = Vector3.new(0.1,0.1,0.1),
- ["BottomSurface"] = Enum.SurfaceType.Smooth,
- ["TopSurface"] = Enum.SurfaceType.Smooth,
- })
- o2 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(-7, 0, 0),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o3 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(7, 0, -1),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o5 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(7, 0, -2),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o6 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(-7, 0, -2),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o7 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(-7, 0, -1),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o8 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(-7, 0, 1),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o9 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(7, 0, 1),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- o10 = System.Create("ParticleEmitter",{
- ["Parent"] = o1,
- ["Size"] = NumberSequence.new(4,4),
- ["Color"] = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)),
- ["LightEmission"] = -5,
- ["Texture"] = "rbxasset://textures/particles/fire_main.dds",
- ["Acceleration"] = Vector3.new(7, 0, 0),
- ["Lifetime"] = NumberRange.new(10,10),
- ["Rate"] = 70,
- ["LockedToPart"] = true,
- })
- mas.Parent = game.Players.LocalPlayer.Character or workspace.Player1
- mas:MakeJoints()
- local b = mas:GetChildren()
- for a = 1, #b do
- b[a].Parent = game.Players.LocalPlayer.Character or workspace.Player1
- ypcall(function()
- b[a]:MakeJoints()
- end)
- end
- mas:Destroy()
- for a = 1, #c do
- coroutine.resume(c[a])
- end
- local p = game.Players.LocalPlayer.Character.Part
- local me = game.Players.LocalPlayer.Character or game.Players.Player1.Character
- game:GetService('RunService').Stepped:connect(function()
- p.CFrame = me.Torso.CFrame * CFrame.new(0,-1,1) * CFrame.Angles(-100,0,0)
- end)
- wait(0.5)
- local p = game:GetService("Players").LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local shot = 0
- local stanceToggle = "Floating"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- hum.DisplayDistanceType = "None"
- math.randomseed(os.time())
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs (hed:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- ----------------------------------------------------
- ----------------------------------------------------
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "rbxassetid://237906462"
- char.Pants.PantsTemplate = "rbxassetid://237906462"
- ----------------------------------------------------
- local hat1 = Instance.new("SpecialMesh")
- local hat2 = Instance.new("Part")
- hat1.Parent = hat2
- hat2.Parent = hat3
- hat2.CanCollide = false
- hat2.Anchored = true
- hat2.Locked = true
- hat2.Parent = char
- hat2.Name = "Handle"
- hat1.Name = "Mesh"
- char.Handle.Mesh.MeshId = "http://www.roblox.com/asset/?id=16150814"
- char.Handle.Mesh.Scale = char.Handle.Mesh.Scale * 16
- char.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=16150799"
- char.Handle.Mesh.VertexColor = Vector3.new(0.2,0.2,0.2)
- ----------------------------------------------------
- local p = game.Players.LocalPlayer.Character.Handle
- local me = game.Players.LocalPlayer.Character
- game:GetService('RunService').Stepped:connect(function()
- p.CFrame = me.Head.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
- end)
- ----------------------------------------------------
- ----------------------------------------------------
- hum.Health = 9000000000000000
- ----------------------------------------------------
- local function recursiveSetAllDensityToOne(instance)
- if instance:IsA("BasePart") then
- -- See if this is a CUSTOM Physics part already
- if instance.CustomPhysicalProperties then
- local oldProp = instance.CustomPhysicalProperties
- local physicalProp = PhysicalProperties.new(0.01, oldProp.Friction,
- oldProp.Elasticity,
- oldProp.FrictionWeight,
- oldProp.ElasticityWeight)
- instance.CustomPhysicalProperties = physicalProp
- else
- local oldProp = PhysicalProperties.new(instance.Material)
- local physicalProp = PhysicalProperties.new(0.01, oldProp.Friction,
- oldProp.Elasticity,
- oldProp.FrictionWeight,
- oldProp.ElasticityWeight)
- instance.CustomPhysicalProperties = physicalProp
- end
- end
- for i,v in pairs(instance:GetChildren()) do
- pcall( function()recursiveSetAllDensityToOne(v) end)
- end
- end
- recursiveSetAllDensityToOne(game)
- ----------------------------------------------------
- Debounces = {
- CanAttack = true;
- CanJoke = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- Slapping = false;
- Slapped = false;
- ks = false;
- }
- ----------------------------------------------------
- function weld5(part0, part1, c0, c1)
- weeld=Instance.new("Weld", part0)
- weeld.Part0=part0
- weeld.Part1=part1
- weeld.C0=c0
- weeld.C1=c1
- return weeld
- end
- function lerp(a, b, t) -- Linear interpolation
- return a + (b - a)*t
- end
- function slerp(a, b, t) --Spherical interpolation
- 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 matrixInterpolate(a, b, t)
- local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
- local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
- local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
- local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
- local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
- local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
- local t = v1:Dot(v2)
- if not (t < 0 or t == 0 or t > 0) then -- Failsafe
- return CFrame.new()
- end
- return CFrame.new(
- v0.x, v0.y, v0.z,
- v1.x, v1.y, v1.z,
- v2.x, v2.y, v2.z,
- v3.x, v3.y, v3.z)
- end
- ----------------------------------------------------
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- 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
- ----------------------------------------------------
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- ----------------------------------------------------
- local AddInstance = function(Object, ...)
- local Obj = Instance.new(Object)
- for i,v in next,(...) do
- Obj[i] = v
- end
- return Obj
- end
- ----------------------------------------------------
- larm.Size = larm.Size * 13.5
- rarm.Size = rarm.Size * 13.5
- lleg.Size = lleg.Size * 13.5
- rleg.Size = rleg.Size * 13.5
- torso.Size = torso.Size * 13.5
- hed.Size = hed.Size * 13.5
- root.Size = root.Size * 13.5
- ----------------------------------------------------
- newWeld(torso, larm, -7.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(5.2,0.5,0)
- newWeld(torso, rarm, 7.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(-5.2, 0.5, 0)
- newWeld(torso, hed, 0, 6.8, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(1.7, 8, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(-1.7, 8, 0)
- newWeld(root, torso, 0, 0, 0)
- torso.Weld.C1 = CFrame.new(0, 0, 0)
- ----------------------------------------------------
- --local SIDz = {"167985102"}, 167161785, 148274436
- z = Instance.new("Sound",char)
- z.SoundId = "rbxassetid://167978935"--..SIDz[math.random(1,#SIDz)]
- z.Looped = true
- z.Volume = 1
- z.Pitch = 1
- wait(1)
- z:Play()
- hum.WalkSpeed = 5
- ----------------------------------------------------
- ----------------------------------------------------
- local o1 = AddInstance("Model",{
- Name = "Genkadda",
- Parent = char,
- })
- local o2 = AddInstance("Part",{
- Name = "Handle",
- Parent = o1,
- Material = Enum.Material.Granite,
- BrickColor = BrickColor.new("Black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 4.96428585, 1.02857149),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.105882, 0.164706, 0.207843),
- Transparency = 1,
- Locked = true,
- })
- local o3 = AddInstance("Part",{
- Parent = o1,
- Material = Enum.Material.Granite,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.521428645, 0.200000003, 4.92857265),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
- Locked = true,
- Transparency = 1,
- })
- local Weld = AddInstance("Weld",{
- Parent = o3,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o3,
- C1 = CFrame.new(7.12578583, -2.70594311, -56.9015656, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- local o6 = AddInstance("Part",{
- Name = "8",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.864285767, 0.221428677, 5.65714407),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- Transparency = 1,
- })
- local Weld = AddInstance("Weld",{
- Parent = o6,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o6,
- C1 = CFrame.new(7.12578583, -2.68451595, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- local o8 = AddInstance("Part",{
- Name = "20",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 0.657142878, 1.02857149),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o8,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o8,
- C1 = CFrame.new(7.12578964, 2.69762135, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- local o10 = AddInstance("Part",{
- Name = "15",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 0.657142937, 2.02857161),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o10,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o10,
- C1 = CFrame.new(7.12578773, 2.69762325, -55.3730087, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- local o11 = AddInstance("SpecialMesh",{
- Parent = o10,
- MeshType = Enum.MeshType.Wedge,
- })
- o12 = AddInstance("Part",{
- Name = "10",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 0.657142878, 2.02857161),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o12,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o12,
- C1 = CFrame.new(-7.12579155, 2.69761753, 58.4300995, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494),
- })
- local o13 = AddInstance("SpecialMesh",{
- Parent = o12,
- MeshType = Enum.MeshType.Wedge,
- })
- local o14 = AddInstance("Part",{
- Name = "9",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 1.11428583, 0.371428579),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o14,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o14,
- C1 = CFrame.new(7.12578201, 2.12619781, -56.2015648, -0.999990702, 0.00427558692, -0.000560841348, 0.00055476022, -0.00142335275, -0.999998868, -0.00427637994, -0.999989867, 0.00142096763),
- })
- local o15 = AddInstance("SpecialMesh",{
- Parent = o14,
- MeshType = Enum.MeshType.Wedge,
- })
- o16 = AddInstance("Part",{
- Name = "6",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 1.11428583, 0.371428579),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o16,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o16,
- C1 = CFrame.new(-7.12579536, 2.12619114, 57.6015701, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237),
- })
- local o17 = AddInstance("SpecialMesh",{
- Parent = o16,
- MeshType = Enum.MeshType.Wedge,
- })
- o18 = AddInstance("Part",{
- Name = "21",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.564285755, 0.257142901, 0.514285743),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o18,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o18,
- C1 = CFrame.new(-7.12578964, 2.24047565, 57.1586876, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237),
- })
- local o19 = AddInstance("SpecialMesh",{
- Parent = o18,
- MeshType = Enum.MeshType.Wedge,
- })
- o20 = AddInstance("Part",{
- Name = "13",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.564285755, 0.257142901, 0.514285743),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o20,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o20,
- C1 = CFrame.new(7.1258049, 2.24045849, -56.6443939, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849),
- })
- local o21 = AddInstance("SpecialMesh",{
- Parent = o20,
- MeshType = Enum.MeshType.Wedge,
- })
- o22 = AddInstance("Part",{
- Name = "16",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.564285755, 1.73571444, 0.200000003),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o22,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o22,
- C1 = CFrame.new(7.1258049, 1.38688946, -56.830143, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849),
- })
- local o23 = AddInstance("SpecialMesh",{
- Parent = o22,
- Scale = Vector3.new(1, 1, 0.714285672),
- MeshType = Enum.MeshType.Wedge,
- })
- o24 = AddInstance("Part",{
- Name = "14",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.564285755, 1.73571444, 0.200000003),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o24,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o24,
- C1 = CFrame.new(-7.12580872, 1.38689709, 56.9729919, 0.999990702, -0.0042760619, 0.000560866669, 0.000554783503, -0.00142366707, -0.999998868, 0.00427685538, 0.999989867, -0.00142128149),
- })
- local o25 = AddInstance("SpecialMesh",{
- Parent = o24,
- Scale = Vector3.new(1, 1, 0.714285672),
- MeshType = Enum.MeshType.Wedge,
- })
- o26 = AddInstance("Part",{
- Name = "4",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.54285717, 0.657142878, 1.02857149),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o26,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o26,
- C1 = CFrame.new(-7.12579346, 2.69762135, 57.9301262, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494),
- })
- local o27 = AddInstance("SpecialMesh",{
- Parent = o26,
- MeshType = Enum.MeshType.Wedge,
- })
- o28 = AddInstance("Part",{
- Name = "11",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.864285767, 0.657142937, 1.02857149),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o28,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o28,
- C1 = CFrame.new(7.12579346, 59.387291, -2.07380676, -0.999990702, 0.00427573128, -0.000560924469, 0.00427652476, 0.999989867, -0.00142105541, 0.000554842758, -0.00142344099, -0.999998868),
- })
- local o29 = AddInstance("SpecialMesh",{
- Parent = o28,
- MeshType = Enum.MeshType.Wedge,
- })
- o30 = AddInstance("Part",{
- Name = "17",
- Parent = o1,
- Material = Enum.Material.Granite,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.542999983, 20, 3.02900004),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o30,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o30,
- C1 = CFrame.new(7.1257782, -12.6132841, -56.901535, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- local o32 = AddInstance("Part",{
- Name = "3",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.864285767, 0.657142937, 1.02857149),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Transparency = 1,
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o32,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o32,
- C1 = CFrame.new(-7.12579155, -54.4158592, -2.07380486, 0.999990702, -0.00427573407, 0.000560930872, -0.00427652756, -0.999989867, 0.00142105471, 0.000554849161, -0.00142344029, -0.999998868),
- })
- local o33 = AddInstance("SpecialMesh",{
- Parent = o32,
- MeshType = Enum.MeshType.Wedge,
- })
- o34 = AddInstance("Part",{
- Name = "18",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.400000006, 6.11428595, 5.03142834),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Transparency = 1,
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o34,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o34,
- C1 = CFrame.new(-7.12446594, -25.670372, 56.9022903, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121),
- })
- local o35 = AddInstance("SpecialMesh",{
- Parent = o34,
- MeshType = Enum.MeshType.Wedge,
- })
- o36 = AddInstance("Part",{
- Name = "7",
- Parent = o1,
- Material = Enum.Material.Granite,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.542999983, 4.11428595, 3.03142834),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o36,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o36,
- C1 = CFrame.new(-7.12448502, -24.6703815, 56.9065475, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121),
- })
- local o37 = AddInstance("SpecialMesh",{
- Parent = o36,
- MeshType = Enum.MeshType.Wedge,
- })
- local o38 = AddInstance("Part",{
- Name = "19",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(4.54285717, 5.01428556, 1.02857161),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o38,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o38,
- C1 = CFrame.new(2.95587444, -56.843811, -7.12423134, -0.000554800034, 0.00142350839, 0.999998927, -0.00427680276, -0.999989867, 0.0014211227, 0.999990702, -0.00427600928, 0.000560882385),
- })
- local o39 = AddInstance("SpecialMesh",{
- Parent = o38,
- MeshId = "http://www.roblox.com/asset?id=156292343",
- Scale = Vector3.new(7, 7, 15),
- MeshType = Enum.MeshType.FileMesh,
- })
- local o40 = AddInstance("Part",{
- Name = "12",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(4.54285717, 5.01428556, 1.02857161),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o40,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o40,
- C1 = CFrame.new(-12.5559368, 56.88451, -7.11906242, 0.000555172679, -0.00142338919, -0.999998868, 0.00427656481, 0.999989867, -0.00142100221, 0.999990702, -0.00427577086, 0.000561254215),
- })
- local o41 = AddInstance("SpecialMesh",{
- Parent = o40,
- MeshId = "rbxassetid://430139732",
- Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001),
- MeshType = Enum.MeshType.FileMesh,
- })
- local o42 = AddInstance("Part",{
- Name = "2",
- Parent = o1,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Really black"),
- CanCollide = false,
- Size = Vector3.new(0.400000006, 20, 5.02900028),
- BackSurface = Enum.SurfaceType.SmoothNoOutlines,
- BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
- Transparency = 1,
- FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
- LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
- RightSurface = Enum.SurfaceType.SmoothNoOutlines,
- TopSurface = Enum.SurfaceType.SmoothNoOutlines,
- Color = Color3.new(0.972549, 0.972549, 0.972549),
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = o42,
- Part0 = o2,
- C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- Part1 = o42,
- C1 = CFrame.new(7.1257782, -12.6132774, -56.9015694, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- ----------------------------------------------------
- local cor = AddInstance("Part",{
- Parent = char.Genkadda,
- Name = "Thingy",
- Locked = true,
- BottomSurface = 0,
- CanCollide = false,
- Size = Vector3.new(5.5, 5.5, 5.5),
- Transparency = 1,
- TopSurface = 0,
- })
- local corw = AddInstance("Weld",{
- Parent = cor,
- Part0 = rarm,
- Part1 = cor,
- C0 = CFrame.new(0, -3, 0) * CFrame.Angles(0,0,0),
- C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0),
- })
- local weld1 = AddInstance("Weld",{
- Parent = char.Genkadda,
- Part0 = cor,
- Part1 = o2,
- C0 = CFrame.new(-7, 57, 0),
- C1 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
- })
- ----------------------------------------------------
- function Vanish()
- for i = 1, 10 do wait()
- for i,v in pairs(char.Genkadda:GetChildren()) do
- if v:IsA("Part") or v:IsA("WedgePart") then
- if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
- v.Transparency = v.Transparency + 0.1
- end
- end
- end
- end
- end
- ----------------------------------------------------
- function Appear()
- for i = 1, 10 do wait()
- for i,v in pairs(char.Genkadda:GetChildren()) do
- if v:IsA("Part") or v:IsA("WedgePart") then
- if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
- v.Transparency = v.Transparency - 0.1
- end
- end
- end
- end
- end
- ----------------------------------------------------
- local player = game:GetService("Players").LocalPlayer
- local pchar = player.Character
- local mouse = player:GetMouse()
- local cam = workspace.CurrentCamera
- local keysDown = {}
- local flySpeed = 0
- local MAX_FLY_SPEED = 80
- local canFly = false
- local flyToggled = false
- local forward, side = 0, 0
- local lastForward, lastSide = 0, 0
- local floatBP = Instance.new("BodyPosition")
- floatBP.maxForce = Vector3.new(0, math.huge, 0)
- local flyBV = Instance.new("BodyVelocity")
- flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
- local turnBG = Instance.new("BodyGyro")
- turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- mouse.KeyDown:connect(function(key)
- keysDown[key] = true
- if key == "f" then
- flyToggled = not flyToggled
- if not flyToggled then
- stanceToggle = "Floating"
- floatBP.Parent = nil
- flyBV.Parent = nil
- turnBG.Parent = nil
- root.Velocity = Vector3.new()
- pchar.Humanoid.PlatformStand = false
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- keysDown[key] = nil
- end)
- local function updateFly()
- if not flyToggled then return end
- lastForward = forward
- lastSide = side
- forward = 0
- side = 0
- if keysDown.w then
- forward = forward + 1
- end
- if keysDown.s then
- forward = forward - 1
- end
- if keysDown.a then
- side = side - 1
- end
- if keysDown.d then
- side = side + 1
- end
- canFly = (forward ~= 0 or side ~= 0)
- if canFly then
- stanceToggle = "Floating"
- turnBG.Parent = root
- floatBP.Parent = nil
- flyBV.Parent = root
- flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
- if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
- else
- floatBP.position = root.Position
- floatBP.Parent = root
- flySpeed = flySpeed - 1
- if flySpeed < 0 then flySpeed = 0 end
- end
- local camCF = cam.CoordinateFrame
- local in_forward = canFly and forward or lastForward
- local in_side = canFly and side or lastSide
- flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
- in_forward * 0.2, 0).p) - camCF.p) * flySpeed
- turnBG.cframe = camCF * CFrame.Angles(-math.rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
- 0)
- end
- game:service'RunService'.RenderStepped:connect(function()
- if flyToggled then
- pchar.Humanoid.PlatformStand = true
- end
- updateFly()
- end)
- ----------------------------------------------------
- o42.Touched:connect(function(ht)
- hit = ht.Parent
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- if Debounces.Slashing == true and Debounces.Slashed == false then
- Debounces.Slashed = true
- hit:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- wait(.3)
- Debounces.Slashed = false
- end
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- if Debounces.Slashing == true and Debounces.Slashed == false then
- Debounces.Slashed = true
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- wait(.3)
- Debounces.Slashed = false
- end
- end
- end
- end
- end)
- ----------------------------------------------------
- ptz = {0.7, 0.8, 0.9, 1}
- idz = {"161006212", "161006195"}
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.on = true
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,0.65,-6)*CFrame.Angles(math.rad(60),math.rad(70),math.rad(70)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-1,2.2) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
- if Debounces.on == false then break end
- rs:wait(2)
- end
- z = Instance.new("Sound", hed)
- z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
- z.Pitch = ptz[math.random(1,#ptz)]
- z.Volume = math.huge
- wait(.01)
- z:Play()
- Debounces.Slashing = true
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, -2, 3) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
- if Debounces.on == false then break end
- rs:wait(2)
- end
- Debounces.Slashing = false
- z:Destroy()
- cor.Weld.C1 = CFrame.Angles(0,0,0)
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- Debounces.NoIdl = false
- Debounces.on = false
- end
- end
- end
- end)
- ----------------------------------------------------
- ----------------------------------------------------
- Melee = false
- mouse.KeyDown:connect(function(key)
- if key == "m" then
- if Melee == false then
- Melee = true
- Vanish()
- stanceToggle = "Normal"
- hum.WalkSpeed = 50
- elseif Melee == true then
- Melee = false
- Appear()
- stanceToggle = "Floating"
- hum.WalkSpeed = 5
- end
- end
- end)
- -------------------------------
- -------------------------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 48 then
- if Debounces.CanAttack == true then
- if stanceToggle ~= "Floating" then
- char.Humanoid.WalkSpeed = 80
- elseif Debounces.CanAttack == false then
- elseif stanceToggle == "Floating" then
- wait()
- end
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 48 then
- char.Humanoid.WalkSpeed = 16
- end
- end)
- -------------------------------
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- -------------------------------
- --[[if stanceToggle == "Sitting" then
- if wait(math.random(1,2)) == 1 then
- stanceToggle = "Sitting2"
- wait(8)
- stanceToggle = "Sitting"
- end
- end]]--
- -------------------------------
- game:GetService("RunService").RenderStepped:connect(function()
- --[[if char.Humanoid.Jump == true then
- jump = true
- else
- jump = false
- end]]
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end)
- sine = sine + change
- if jumpn == true then
- animpose = "Jumping"
- elseif ffing == true then
- animpose = "Freefalling"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
- animpose = "Running"
- end
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if stanceToggle == "Normal" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -15, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- end
- elseif stanceToggle == "Floating" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -16, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- wait()
- end
- else
- end
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- if stanceToggle == "Normal" then
- change = 0.5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -15, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- elseif stanceToggle == "Melee" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
- elseif stanceToggle == "Floating" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -16, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- end
- elseif animpose == "Walking" then
- if stanceToggle == "Normal" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -15, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- elseif stanceToggle == "Melee" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
- elseif stanceToggle == "Floating" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-14.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-5, -16, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(5, -16, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- end
- elseif animpose == "Running" then
- if stanceToggle == "Normal" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2, -6, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2, -6, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- elseif stanceToggle == "Floating" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,20,-.8)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2, -6, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2, -6, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
- end
- end
- end
- end)
- Spawn(function()
- while wait() do
- updateFly()
- end
- end)
- local length = 90 --Length of cape in studs
- local width = 27 --Width of cape
- local thickness = 2 --How thick the cape is
- local flourish = 30 --Widening towards bottom of cape
- local thicken = -2 --Thickening towards bottom of cape
- local segments = 20 --Segments of cape
- local color = BrickColor.new("Really black") --What color the cape is, BrickColor name goes between quatations
- local material = Enum.Material.Slate --What material the cape is
- local reflectance = 0 --How reflective the cape is
- local transparency = 0 --How transparent the cape is
- local yOffset = 0 --This will raise or lower where the cape is on the player. Can be used for tails.
- -- Advanced Customization -- You might not want to mess with these unless you know what you are doing.
- local updatePercentage = 0.75--Cape will update to this percent velocity with the remaining as reminence from old velocity
- local terminalVelo = 40 --Cape height will cap at this speed
- local veloDivider = 5 --Velocity (not capped by terminal velocity) will be divided by this to lower the trail
- local walkingMP = 30 --Multiplier for trail effect while moving, higher = more trail-y while walking
- local backTrailMP = 30 --This makes the cape move backward a little more while moving, higher = more trail-y all around
- local unitCap = 1 --This helps limit values. I DO NOT RECOMEND CHANGING THIS!
- local maxSegmentAngle = -20 --This is how much segments can rotate from eachother.
- local upperAngle = -45 --How cape flows idly and when trailing. The closer to zero the straighter.
- -- Variables -- Waits for stuff to load in.
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr.CharacterAdded:wait()
- local hum = char:WaitForChild("Humanoid")
- local root = char:WaitForChild("HumanoidRootPart")
- local torso = char:WaitForChild("Torso")
- local hb = game:GetService("RunService").Heartbeat
- -- Instances -- Now the real code begins...
- local cape = Instance.new("Model", char)
- cape.Name = "Cape"
- if segments*0.2 > length then --If there are too many segments, this will automatically shorten the cape to what you want
- segments = math.floor(length/0.2 + 0.5)
- end
- local segBase = Instance.new("Part")
- segBase.Size = Vector3.new(width, length/segments, thickness)
- segBase.CanCollide = false
- segBase.BrickColor = color
- segBase.Material = material
- segBase.Reflectance = reflectance
- segBase.Transparency = transparency
- segBase.BottomSurface = Enum.SurfaceType.Smooth
- wait(0.5)
- segBase.CanCollide = true
- segBase.TopSurface = Enum.SurfaceType.Smooth
- segBase.CFrame = root.CFrame
- segBase.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0,0,0,0)
- if thickness < 0.2 then --For otherwise impossible-to-reach thickness-es
- local bMesh = Instance.new("BlockMesh", segBase)
- bMesh.Scale = Vector3.new(1,1,(thickness/0.2))
- end
- local jointBase = Instance.new("HingeConstraint")
- jointBase.LimitsEnabled = true
- jointBase.LowerAngle = maxSegmentAngle --Limits cape up/down angle
- jointBase.Restitution = 0
- jointBase.UpperAngle = upperAngle --Cape automatically splays out with this rotation; this is changed per-segment
- local asBase = Instance.new("Attachment")
- asBase.Name = "Start"
- asBase.Position = Vector3.new(-segBase.Size.X/2,segBase.Size.Y/2,0)
- asBase.Axis = Vector3.new(1,0,0)
- asBase.SecondaryAxis = Vector3.new(0,1,0)
- local asBase2 = asBase:Clone()
- asBase2.Position = Vector3.new(-asBase2.Position.X, asBase2.Position.Y, asBase2.Position.Z)
- local aeBase = Instance.new("Attachment")
- aeBase.Name = "End"
- aeBase.Position = Vector3.new(-segBase.Size.X/2,-segBase.Size.Y/2,0)
- aeBase.Axis = Vector3.new(1,0,0)
- aeBase.SecondaryAxis = Vector3.new(0,1,0)
- local aeBase2 = aeBase:Clone()
- aeBase2.Position = Vector3.new(-aeBase2.Position.X, aeBase2.Position.Y, aeBase2.Position.Z)
- local startPos = torso.CFrame --torso:GetRenderCFrame() --RenderCFrame is not best for freshly-spawned players...
- startPos = startPos - (startPos.lookVector*0.2) + Vector3.new(0,torso.Size.Y/2 + yOffset,0)
- local lastEnd = asBase:Clone()
- lastEnd.Position = Vector3.new(-torso.Size.X/2, torso.Size.Y/2 + yOffset, torso.Size.Z/2)
- lastEnd.Parent = torso
- local lastEnd2 = lastEnd:Clone()
- lastEnd2.Position = Vector3.new(-lastEnd2.Position.X, lastEnd2.Position.Y, lastEnd2.Position.Z)
- lastEnd2.Parent = torso
- -- Generation --
- wait(0.125) --Player instantly dies upon first spawn otherise... :/
- --Change at your own risk!
- local segs = {}
- for i = 1, segments do
- local seg = segBase:Clone()
- seg.Name = "Segment"..i
- seg.Size = seg.Size + Vector3.new((flourish/segments)*i,0,(thicken/segments)*i)
- if i == 1 then
- seg.CFrame = startPos
- else
- seg.CFrame = segs[i-1].CFrame
- end
- seg.Parent = cape
- segs[#segs+1] = seg
- local as = asBase:Clone()
- as.Parent = seg
- local ae = aeBase:Clone()
- ae.Parent = seg
- local as2 = asBase2:Clone()
- as2.Parent = seg
- local ae2 = aeBase2:Clone()
- ae2.Parent = seg
- local joint = jointBase:Clone()
- joint.Parent = seg
- joint.Attachment0 = lastEnd
- joint.Attachment1 = as
- local joint2 = jointBase:Clone()
- joint2.Parent = seg
- joint2.Attachment0 = lastEnd2
- joint2.Attachment1 = as2
- lastEnd = ae
- lastEnd2 = ae2
- if i <= segments/3 then
- joint.UpperAngle = joint.UpperAngle/(i*3)
- joint2.UpperAngle = joint2.UpperAngle/(i*3)
- else
- joint.UpperAngle = 0
- joint2.UpperAngle = 0
- end
- end
- local force = {}
- for i = 1, #segs do
- segs[i].Velocity = Vector3.new()
- force[#force+1] = Instance.new("BodyForce", segs[i])
- force[#force].Force = Vector3.new()
- end
- -- Forcery -- Like sorcery but with forces *Puts on sunglasses.* Deal with it. >:3
- if updatePercentage > unitCap then updatePercentage = unitCap end
- local cForce = 0
- local lForce = 0
- while hum.Health > 0 and force ~= nil and torso ~= nil and torso.Parent ~= nil and cape ~= nil and cape.Parent ~= nil do
- hb:wait()
- local velo = torso.Velocity.magnitude/terminalVelo
- if velo > unitCap then velo = unitCap end
- cForce = (velo*updatePercentage + lForce*(1-updatePercentage))/veloDivider
- if hum.MoveDirection.magnitude ~= 0 then cForce = cForce*walkingMP end
- if cForce > unitCap then cForce = unitCap end
- cForce = cForce/3.5
- for i = 1, #force do
- force[i].Force = Vector3.new(0,cForce,0) - (torso:GetRenderCFrame().lookVector/backTrailMP*cForce)
- end
- lForce = cForce
- end
- for i = 1, #force do --Cape falls to ground upon death. May fall through ground too. Works nice with my ragoll script.
- force[i].Force = Vector3.new()
- end
- Spawn(function()
- while wait(0) do
- hum.MaxHealth = 1.79769e+308
- hum.Health = 1.79769e+308
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement