Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local User = "loroquen" --replace with your username
- local Player = game:GetService("Players")[User]
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = Player.Character
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- local ServiceData = setmetatable({},{__index = function(s,i) return game:service(i) end})
- local PlayersOfServer = ServiceData.Players
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local PlayerGui = Player.PlayerGui
- local Cam = workspace.CurrentCamera
- local Backpack = Player.Backpack
- local RootPart = Character["HumanoidRootPart"]
- local Torso = Character["Torso"]
- local Head = Character["Head"]
- local RootJoint = RootPart["RootJoint"]
- local Neck = Torso["Neck"]
- local RightShoulder = Torso["Right Shoulder"]
- local LeftShoulder = Torso["Left Shoulder"]
- local RightHip = Torso["Right Hip"]
- local LeftHip = Torso["Left Hip"]
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- C3RBG = Color3.fromRGB
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- local hax = IT("Model")
- hax.Name = "I\'\m gonna die"
- hax.Parent = workspace.Terrain
- local megahax = IT("Folder",hax)
- megahax.Name = "\"Mega Epic Folder\""
- local suprememhax = IT("Folder",PlayerGui)
- suprememhax.Name = "Random \"Nil\" Folder"
- script.Parent = suprememhax
- pumpk = Instance.new("Sound", Head)
- pumpk.SoundId = "rbxassetid://1771675015"
- pumpk.Volume = 2
- pumpk.Looped = true
- pumpk:Play()
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function CreatePart1(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --customize--
- Player_Size = 1
- Animation_Speed = 3
- local SIZE = 1
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 20
- --local Effects = {}
- gem_mode = 1
- --endoslol--
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 1
- local Rooted = false
- local SINE = 0
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local WALK = 0
- local VALUE1 = 1
- local VALUE2 = false
- local UIS = ServiceData.UserInputService
- local CAS = ServiceData.ContextActionService
- local WEAPONGUI = IT("ScreenGui", PlayerGui)
- WEAPONGUI.Name = "Weapon GUI"
- local Weapon = IT("Model")
- Weapon.Name = "Adds"
- local HITFLOOR = nil
- local Effects = IT("Folder", Character)
- Effects.Name = "Effects"
- local FADERS = true
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character:WaitForChild("Animate")
- local EveryStroke = {
- "Gold",
- "Really red",
- "Bright blue",
- "Bright reddish lilac",
- "Olivine",
- "New Yeller"
- }
- local EveryColor = {
- "Bright orange",
- "Persimmon",
- "Teal",
- "Eggplant",
- "Mint",
- "Bright yellow"
- }
- local TweenService = game:GetService("TweenService")
- local Colours = {Color3.fromRGB(218, 133, 65),Color3.fromRGB(255, 89, 89),Color3.fromRGB(18, 238, 212),Color3.fromRGB(123, 0, 123),Color3.fromRGB(177, 229, 166),Color3.fromRGB(245, 205, 48)}
- local Colours2 = {Color3.fromRGB(239, 184, 56),Color3.fromRGB(255, 0, 0),Color3.fromRGB(13, 105, 172),Color3.new(0.639216, 0.635294, 0.647059
- ),Color3.fromRGB(148, 190, 129),Color3.fromRGB(255, 255, 0)}
- local Int = 0
- --[[
- while wait(0.45) do
- if Int == #Colours then Int = 0 end
- Int = Int+1
- TweenService:Create(part,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
- TweenService:Create(part,TweenInfo.new(1),{TextStrokeColor3 = Colours2[Int]}):Play()
- end
- ]]
- ChangeColorNumber = 1
- --BrickColor.new(Rainbow[ChangeColorNumber]).Color
- --[[
- Head.face:Destroy()
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Pants") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Graphic Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("GraphicShirt") then
- v:Destroy()
- end
- end
- Head.BrickColor = BrickColor.new("White")
- RightArm.BrickColor = BrickColor.new("White")
- LeftArm.BrickColor = BrickColor.new("White")
- Torso.BrickColor = BrickColor.new("White")
- RightLeg.BrickColor = BrickColor.new("White")
- LeftLeg.BrickColor = BrickColor.new("White")
- ]]--
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --|| Davo's fixed Rainbow Function
- --\\=================================//
- -->|Fixed By XDavodioX|<--
- local cR=255
- local cG=0
- local cB=0
- local flg5=1 local omgidk=1
- local add=10.5
- game:GetService('RunService').Heartbeat:connect(function()
- if omgidk>10000 then omgidk=0 end
- omgidk=omgidk+1
- if cR>=255 then flg5=1 end
- if cG>=255 then flg5=2 end
- if cB>=255 then flg5=3 end
- if flg5==1 then cR=cR-add cG=cG+add end
- if flg5==2 then cG=cG-add cB=cB+add end
- if flg5==3 then cB=cB-add cR=cR+add end
- end)
- --[Now useable in FE scripts/requires!]--
- --//=================================\\
- --|| End of Rainbow Function
- --\\=================================//
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
- local frame = IT("Frame")
- frame.BackgroundTransparency = TRANSPARENCY
- frame.BorderSizePixel = BORDERSIZEPIXEL
- frame.Position = POSITION
- frame.Size = SIZE
- frame.BackgroundColor3 = COLOR
- frame.BorderColor3 = BORDERCOLOR
- frame.Name = NAME
- frame.Parent = PARENT
- return frame
- end
- function CreateLabel(PARENT, TEXT, COLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = COLOR
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = false
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- function NoOutlines(PART)
- PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
- coroutine.resume(coroutine.create(function()
- local FADE = IT("Model",Effects)
- if PARENT ~= nil then
- FADE.Parent = PARENT
- end
- FADE.Name = "FadingEffect"
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" then
- c.CanCollide = false
- local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
- FADER.CFrame = c.CFrame
- FADER.Color = COLOR
- if FADER.Name == "Head" then
- Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
- elseif FADER.Name == "HumanoidRootPart" then
- FADE.PrimaryPart = FADER
- FADER.Transparency = 1
- end
- end
- end
- local TRANS = 0.25/TIMER
- local DIST = nil
- if MOVEDIRECTION ~= nil then
- DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
- end
- for i = 1, TIMER do
- Swait()
- for _, c in pairs(FADE:GetChildren()) do
- if c.ClassName == "Part" then
- c.Transparency = c.Transparency + TRANS
- end
- end
- if MOVEDIRECTION ~= nil then
- local ORI = FADE.PrimaryPart.Orientation
- FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
- end
- end
- FADE:remove()
- end))
- end
- function CreateSound(ID, PARENT, VOLUME, PITCH)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = IT("Sound", PARENT)
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- Swait()
- NEWSOUND:play()
- game:GetService("Debris"):AddItem(NEWSOUND, 10)
- end))
- return NEWSOUND
- end
- function CreateClientSound(ID, PARENT, VOLUME, PITCH, TIME)
- local NEWCLIENTSOUND = nil
- local NEWCLIENTSOUNDDATA = nil
- if script:FindFirstChild("ClientSound") == nil then
- return error("ClientSound not found!")
- else
- NEWCLIENTSOUNDDATA = script.ClientSound
- local pt = NEWCLIENTSOUNDDATA:WaitForChild("SoundParent")
- local si = NEWCLIENTSOUNDDATA:WaitForChild("SoundID")
- local vo = NEWCLIENTSOUNDDATA:WaitForChild("SoundVolume")
- local pi = NEWCLIENTSOUNDDATA:WaitForChild("SoundPitch")
- local dt = NEWCLIENTSOUNDDATA:WaitForChild("DestroyTime")
- pt.Value = PARENT
- si.Value = tonumber(ID)
- vo.Value = tonumber(VOLUME)
- pi.Value = tonumber(PITCH)
- dt.Value = tonumber(TIME)
- NEWCLIENTSOUND = script.ClientSound:Clone()
- NEWCLIENTSOUND.Parent = PlayerGui
- NEWCLIENTSOUND.Disabled = false
- end
- end
- function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
- local Sound = IT("Sound")
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- Sound:destroy()
- end)
- elseif(effect)then
- end
- Sound.Parent =parent or Torso
- return Sound
- end
- function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
- local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
- local Sound = IT("Sound")
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- soundPart:destroy()
- end)
- elseif(effect)then
- warn("Sound can't be looped and a sound effect!")
- end
- Sound.Parent = soundPart
- return Sound
- end
- function CreateOutfit()
- if script:FindFirstChild("Outfit Mesh") == nil then
- return error("Outfit Folder not found!")
- else
- for _, b in pairs(script["Outfit Mesh"]:children()) do
- b.Parent = Character
- end
- end
- end
- function CreateShield()
- local Shield = IT("MeshPart")
- Shield.Color = Color3.fromRGB(13, 105, 172)
- Shield.Transparency = 1
- Shield.CFrame = CF(Torso.Position)
- Shield.CanCollide = false
- Shield.Size = VT(5.4,6,5.4) --VT(3, 6.7, 5.44)
- Shield.Name = "BulletShield"
- Shield.Material = Enum.Material.Plastic
- Shield.Parent = workspace
- local ShieldMesh = IT("Weld")
- ShieldMesh.Parent = Shield
- ShieldMesh.Part0 = Shield
- ShieldMesh.Part1 = Torso
- end
- function CreateSnapGui()
- for a, t in pairs(PlayersOfServer:GetPlayers()) do
- if script:FindFirstChild("ThanosSnap") == nil then
- return error("Thanos Snap Gui not found!")
- else
- local guisc = script.GuiScript:Clone()
- local clgui = script.ThanosSnap:Clone()
- clgui.Parent = t.PlayerGui
- guisc.Parent = clgui
- guisc.Disabled = false
- end
- end
- end
- function CreateSelectionBox(PARENT, THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
- local box = IT("SelectionBox")
- box.Parent = PARENT
- box.Adornee = PARENT
- box.Color3 = COLOR
- box.Transparency = TRANS
- box.LineThickness = THICKNESS
- if SURFACECOLOR ~= nil then
- box.SurfaceColor3 = SURFACECOLOR
- else
- box.SurfaceColor3 = Color3.new(1,1,1)
- end
- if SURFACETRANS ~= nil then
- box.SurfaceTransparency = SURFACETRANS
- else
- box.SurfaceTransparency = 1
- end
- return box
- end
- function CreateModelSelectionBox(MODEL, THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
- for f, g in pairs(MODEL:GetChildren()) do
- if g.ClassName == "Part" or g.ClassName == "MeshPart" then
- CreateSelectionBox(g , THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
- end
- end
- end
- function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
- end
- function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = SIZE
- mesh.Offset = VT(0,0,-SIZE.X/8)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = SIZE
- --mesh.Offset = VT(0,0,-SIZE.X/8)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
- mesh.Scale = SIZE
- mesh.Offset = VT(0,0,0)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = SIZE
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(1,1,1), true)
- local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale * GROW
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "Sphere"
- mesh.Scale = SIZE
- mesh.Offset = VT(0,0,0)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- wave.Transparency = wave.Transparency + (1/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function MakeForm(PART,TYPE)
- if TYPE == "Cyl" then
- local MSH = IT("CylinderMesh",PART)
- elseif TYPE == "Ball" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Sphere"
- elseif TYPE == "Wedge" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Wedge"
- end
- end
- function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
- if FLOOR ~= nil then
- coroutine.resume(coroutine.create(function()
- local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
- PART.CFrame = CF(POSITION)
- for i = 1, 45 do
- local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
- RingPiece.Material = FLOOR.Material
- RingPiece.Color = FLOOR.Color
- RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
- Debris:AddItem(RingPiece,SWAIT/100)
- end
- PART:remove()
- end))
- end
- end
- function CheckTableForString(Table, String)
- for i, v in pairs(Table) do
- if string.find(string.lower(String), string.lower(v)) then
- return true
- end
- end
- return false
- end
- function CheckIntangible(Hit)
- local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
- if Hit and Hit.Parent then
- if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
- return true
- end
- end
- return false
- end
- function R_RANDOM(CFRAME,DIST)
- return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
- end
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- function SpawnTrail(FROM,TO,BIG)
- local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
- MakeForm(TRAIL,"Cyl")
- local DIST = (FROM - TO).Magnitude
- if BIG == true then
- TRAIL.Size = VT(0.5,DIST,0.5)
- else
- TRAIL.Size = VT(0.25,DIST,0.25)
- end
- TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
- coroutine.resume(coroutine.create(function()
- for i = 1, 5 do
- Swait()
- TRAIL.Transparency = TRAIL.Transparency + 0.1
- end
- TRAIL:remove()
- end))
- end
- Debris = game:GetService("Debris")
- function MagicSphere1(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Eye", VT(1,1,1), true)
- wave.Color = COLOR
- local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- wave.Transparency = wave.Transparency + (1/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
- if DoesCourontine == false then
- local Direction = CF(Part.Position, ToLocation)
- local Distance = (Part.Position - ToLocation).magnitude
- for i = 1, AmountOfTime do
- Swait()
- Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
- Direction = Part.CFrame
- end
- Part:remove()
- elseif DoesCourontine == true then
- coroutine.resume(coroutine.create(function()
- local Direction = CF(Part.Position, ToLocation)
- local Distance = (Part.Position - ToLocation).magnitude
- for i = 1, AmountOfTime do
- Swait()
- Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
- Direction = Part.CFrame
- end
- Part:remove()
- end))
- end
- end
- function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
- if FLOOR ~= nil then
- for i = 1, AMOUNT do
- local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Debree", BLOCKSIZE, false)
- DEBREE.Material = FLOOR.Material
- DEBREE.Color = FLOOR.Color
- DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
- DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
- coroutine.resume(coroutine.create(function()
- Swait(15)
- DEBREE.Parent = workspace
- DEBREE.CanCollide = true
- Debris:AddItem(DEBREE,SWAIT)
- end))
- end
- end
- end
- function Slice2(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
- local mesh
- if KIND == "Base" then
- mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
- elseif KIND == "Thin" then
- mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
- elseif KIND == "Round" then
- mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
- end
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW / 10
- wave.Transparency = wave.Transparency + 0.5 / WAIT
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
- if FLOOR ~= nil then
- coroutine.resume(coroutine.create(function()
- local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Lime green", "DebreeCenter", VT(0,0,0))
- PART.CFrame = CF(POSITION)
- for i = 1, 45 do
- local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really blue", "DebreePart", BLOCKSIZE)
- RingPiece.Material = FLOOR.Material
- RingPiece.Color = FLOOR.Color
- RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
- Debris:AddItem(RingPiece,SWAIT)
- end
- PART:remove()
- end))
- end
- end
- function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
- for _, c in pairs(PARENT:GetChildren()) do
- if c.ClassName == "Model" then
- if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
- local HUMANOID = c:FindFirstChildOfClass("Humanoid")
- local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
- if DIST > (TORSO.Position - FROM).Magnitude then
- table.insert(TABLE, c)
- end
- AddChildrenToTable(FROM, c, DIST, TABLE)
- elseif c.ClassName == "Folder" then
- AddChildrenToTable(FROM, c, DIST, TABLE)
- end
- end
- end
- end
- function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
- local Direction = CFrame.new(StartPos, Vec).lookVector
- local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
- local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
- if RayHit and CheckIntangible(RayHit) then
- if DelayIfHit then
- wait()
- end
- RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
- end
- return RayHit, RayPos, RayNormal
- end
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CF(StartPos,EndPos).lookVector
- return Raycast(StartPos, DIRECTION, Distance, Ignore)
- end
- function turnto(position)
- RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
- end
- local BODY = {}
- for _, c in pairs(Character:GetDescendants()) do
- if c:IsA("BasePart") and c.Name ~= "Handle" then
- if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
- elseif c:IsA("JointInstance") then
- table.insert(BODY,{c,c.Parent,nil,nil,nil})
- end
- end
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= RootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- function refit()
- Character.Parent = megahax
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= RootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- Humanoid:remove()
- PART.Parent = PARENT
- Humanoid = IT("Humanoid",Character)
- end
- end
- end
- end
- Humanoid.Died:connect(function()
- ATTACK = false
- refit()
- end)
- Humanoid.HealthChanged:connect(function()
- ATTACK = false
- refit()
- end)
- --Weapon MAKE--
- --Design--
- local Gauntlet = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gauntlet", VT(0, 0, 0),false)
- local HandleMesh = CreateMesh("SpecialMesh", Gauntlet, "FileMesh", "1757389224", "1782744902", VT(0.062,0.062,0.062), VT(0,0, 0))
- local Weld = CreateWeldOrSnapOrMotor("Weld", Gauntlet, LeftArm, Gauntlet, CF(0.265, -0.54, 0) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
- local basgui = IT("GuiMain")
- basgui.Parent = PlayerGui
- basgui.Name = "VISgui"
- local fullscreenz = IT("Frame")
- fullscreenz.Parent = basgui
- fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
- fullscreenz.BackgroundTransparency = 1
- fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
- fullscreenz.Size = UDim2.new(1, 0, 1, 0)
- fullscreenz.Position = UDim2.new(0, 0, 0, 0)
- local imgl2 = Instance.new("ImageLabel",fullscreenz)
- imgl2.BackgroundTransparency = 1
- imgl2.BorderSizePixel = 0
- imgl2.ImageTransparency = 0.432
- imgl2.ImageColor3 = Color3.new(255,255,255)
- imgl2.Position = UDim2.new(0.90,-200,0.794,-200)
- imgl2.Size = UDim2.new(0,400,0,400)
- imgl2.Image = "rbxassetid://2480004800"
- local circl = imgl2:Clone()
- circl.Parent = fullscreenz
- circl.ImageTransparency = 1
- circl.Size = UDim2.new(0,550,0,550)
- circl.Position = UDim2.new(0.75,25,0.55,25)
- circl.ImageColor3 = Color3.new(255,255,255)
- circl.Image = "rbxassetid://278749933"
- local ned = Instance.new("TextLabel",fullscreenz)
- ned.ZIndex = 2
- ned.Font = "Antique"
- ned.BackgroundTransparency = 1
- ned.BorderSizePixel = 0.65
- ned.Size = UDim2.new(0.3,0,0.2,0)
- ned.Position = UDim2.new(0.7,0,0.788,0)
- ned.TextColor3 = BrickColor.new("White").Color
- ned.TextStrokeColor3 = BrickColor.new("White").Color
- ned.TextScaled = true
- ned.TextStrokeTransparency = 0
- ned.Text = "Soul Gem"
- ned.TextSize = 17.3
- ned.Rotation = 1
- ned.TextXAlignment = "Right"
- ned.TextYAlignment = "Bottom"
- function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
- local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
- STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
- local BODYGYRO = IT("BodyGyro", STATPART)
- local BODYPOSITION = IT("BodyPosition", STATPART)
- BODYPOSITION.P = 2000
- BODYPOSITION.D = 100
- BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
- BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
- game:GetService("Debris"):AddItem(STATPART ,5)
- local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
- BILLBOARDGUI.Adornee = STATPART
- BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
- BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
- BILLBOARDGUI.AlwaysOnTop = false
- local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
- TEXTLABEL.BackgroundTransparency = 1
- TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
- TEXTLABEL.Text = TEXT
- TEXTLABEL.Font = "SciFi"
- TEXTLABEL.FontSize="Size42"
- TEXTLABEL.TextColor3 = COLOR
- TEXTLABEL.TextStrokeTransparency = 1
- TEXTLABEL.TextScaled = true
- TEXTLABEL.TextWrapped = true
- coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
- if LABELTYPE == "Normal" then
- for i = 1, 30 do
- Swait()
- STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- elseif LABELTYPE == "Debuff" then
- for i = 1, 30 do
- Swait()
- STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- elseif LABELTYPE == "Shock" then
- local ORIGIN = STATPART.Position
- for i = 1, 30 do
- Swait()
- STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- end
- THEPART.Parent = nil
- end),STATPART, BODYPOSITION, TEXTLABEL)
- end
- --Attack functions--
- local masos = Instance.new("Model",game:GetService("Lighting"))
- local IDFSGPARTICLE = Instance.new("ParticleEmitter")
- IDFSGPARTICLE.Name = "idontfeelsogood"
- IDFSGPARTICLE.Parent = masos
- IDFSGPARTICLE.Speed = NumberRange.new(1, 1)
- IDFSGPARTICLE.LightInfluence = 1
- IDFSGPARTICLE.Texture = "rbxassetid://252644715"
- IDFSGPARTICLE.Size = NumberSequence.new(0.20000000298023,0)
- IDFSGPARTICLE.Acceleration = Vector3.new(3, 0, 0)
- IDFSGPARTICLE.Lifetime = NumberRange.new(2, 2)
- IDFSGPARTICLE.Rate = 200
- IDFSGPARTICLE.RotSpeed = NumberRange.new(-60, 60)
- IDFSGPARTICLE.Enabled = false
- function GiveSpecialMesh(object, size, idmesh)
- if object ~= nil then
- local mesho = Instance.new("SpecialMesh")
- mesho.Parent = object
- mesho.Scale = size
- mesho.MeshId = "rbxassetid://" ..idmesh
- end
- end
- function GiveIDFSG(model)
- if model ~= nil then
- local yee = IDFSGPARTICLE:Clone()
- yee.Parent = model
- yee.Color = ColorSequence.new(model.Color)
- yee.Enabled = true
- end
- end
- function TurnBaby(who)
- if who ~= nil and who ~= Character then
- local hedos = who:FindFirstChild("Head")
- local laos = who:FindFirstChild("Left Arm")
- local llos = who:FindFirstChild("Left Leg")
- local raos = who:FindFirstChild("Right Arm")
- local rlos = who:FindFirstChild("Right Leg")
- local toros = who:FindFirstChild("Torso")
- if toros ~= nil and llos ~= nil and raos ~= nil and laos ~= nil and hedos ~= nil and rlos ~= nil then
- laos.Transparency = 1
- raos.Transparency = 1
- toros.Size = Vector3.new(0.34,0.34,0.34)
- llos.Size = Vector3.new(0.34,0.34,0.34)
- rlos.Size = Vector3.new(0.34,0.34,0.34)
- hedos.Size = Vector3.new(0.34,0.34,0.34)
- rlos.Size = Vector3.new(0.34,0.34,0.34)
- laos.Size = Vector3.new(0.34,0.34,0.34)
- end
- end
- end
- function ResetCharacter(Boi)
- if Boi ~= Character then
- Boi:LoadCharacter()
- end
- end
- function BegoneBye(thaobject)
- if thaobject ~= nil then
- GiveIDFSG(thaobject)
- coroutine.wrap(function()
- for i = 0,1,0.01 do
- wait()
- if thaobject.Name == "HumanoidRootPart" then
- thaobject:Destroy()
- else
- thaobject.Transparency = i
- end
- end
- if thaobject.Transparency >= 0.9 then
- thaobject:Destroy()
- end
- end)()
- end
- end
- function BegoneByeModel(thaobject)
- for f, g in pairs(thaobject:GetChildren()) do
- if g.ClassName == "Part" or g.ClassName == "MeshPart" then
- BegoneBye(g)
- end
- end
- end
- function killnearest(position, range, maxstrength)
- for i, v in ipairs(workspace:GetChildren()) do
- do
- local body = v:GetChildren()
- for part = 1, #body do
- if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
- if v.ClassName == "Model" then
- v:BreakJoints()
- end
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
- bv.Parent = body[part]
- Debris:AddItem(bv, 0.2)
- body[part].Parent = Effects
- body[part].Material = "Neon"
- body[part].Color = Color3.fromRGB(167, 94, 155)
- body[part].CanCollide = true
- coroutine.resume(coroutine.create(function()
- wait(5)
- if body[part].Parent == Effects then
- body[part]:remove()
- end
- end))
- end
- end
- if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
- v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
- end
- end
- end
- end
- function killnearest2(position, range, maxstrength, mode)
- for i, v in ipairs(workspace:GetChildren()) do
- do
- local body = v:GetChildren()
- for part = 1, #body do
- if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
- if v.ClassName == "Model" then
- if mode == "IDFSG" then
- BegoneByeModel(v)
- elseif mode == "NORMAL" then
- v:BreakJoints()
- end
- end
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
- bv.Parent = body[part]
- Debris:AddItem(bv, 0.2)
- end
- end
- end
- end
- end
- function Transparency(TRANS)
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" and c ~= RootPart then
- c.Transparency = TRANS
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal").Transparency = TRANS
- end
- elseif c.ClassName == "Accessory" then
- c.Handle.Transparency = TRANS
- elseif c.ClassName == "Model" then
- for _, q in pairs(c:GetChildren()) do
- if q.ClassName == "Part" then
- q.Transparency = TRANS
- if q:FindFirstChildOfClass("Decal") then
- q:FindFirstChildOfClass("Decal").Transparency = TRANS
- end
- end
- end
- end
- end
- end
- function Petrify(Char)
- local NewCharacter = IT("Model",Effects)
- NewCharacter.Name = "StonedPerson"
- for _, c in pairs(Char:GetDescendants()) do
- if c:IsA("BasePart") and c.Transparency == 0 then
- if c.Parent == Char then
- end
- c:BreakJoints()
- c.Material = "Cobblestone"
- c.Color = C3(0.5,0.5,0.5)
- c.CanCollide = true
- c.Transparency = 0
- if c:FindFirstChildOfClass("SpecialMesh") then
- c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- if c.Name == "Head" then
- c:ClearAllChildren()
- c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
- end
- if c.ClassName == "MeshPart" then
- c.TextureID = ""
- end
- if c:FindFirstChildOfClass("BodyPosition") then
- c:FindFirstChildOfClass("BodyPosition"):remove()
- end
- if c:FindFirstChildOfClass("ParticleEmitter") then
- c:FindFirstChildOfClass("ParticleEmitter"):remove()
- end
- c.Parent = NewCharacter
- c.Name = "DeadPart"
- c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
- c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
- end
- end
- Char:remove()
- Debris:AddItem(NewCharacter,5)
- end
- function RealityBeam(FROM,TO,BRUTAL)
- local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
- coroutine.resume(coroutine.create(function()
- if AIMHIT ~= nil then
- if AIMHIT.Parent ~= Character then
- if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
- if BRUTAL == true then
- Petrify(AIMHIT.Parent)
- else
- AIMHIT.Parent:BreakJoints()
- if AIMHIT.Name == "Head" then
- AIMHIT.Name = "HEADSHOT"
- AIMHIT:remove()
- end
- end
- else
- if BRUTAL == true then
- Petrify(AIMHIT.Parent.Parent)
- else
- AIMHIT.Parent.Parent:BreakJoints()
- end
- end
- end
- end
- end
- end))
- SpawnTrail(FROM,AIMPOS)
- return AIMHIT,AIMPOS,NORMAL
- end
- function TimeStopCharacter(who)
- if who.Parent ~= Character and who:FindFirstChild("HumanoidRootPart") then
- local TORSO = who:FindFirstChild("HumanoidRootPart")
- local bex = IT("Part")
- bex.Parent = Effects
- bex.Orientation = VT(TORSO.Orientation)
- bex.Size = VT(0.001,0.001,0.001)
- bex.Transparency = 1
- bex.CFrame = CF(TORSO.Position)
- bex.CanCollide = false
- bex.Name = "" ..math.random(10000,99999)
- bex.Anchored = true
- local wed = IT("Weld")
- wed.Parent = bex
- wed.Part0 = bex
- wed.Part1 = TORSO
- CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
- CreateModelSelectionBox(TORSO.Parent, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
- end
- end
- function TimeStopPart(prt)
- if prt.Parent ~= Character then
- if prt:IsA("Part") or prt:IsA("MeshPart") then
- if prt:FindFirstChild("Already Stopped") ~= nil then
- return
- end
- local vale = IT("StringValue")
- vale.Parent = prt
- vale.Name = "Already Stopped"
- vale.Value = "nil"
- local bex = IT("Part")
- bex.Parent = Effects
- bex.Orientation = VT(prt.Orientation)
- bex.Size = VT(0.001,0.001,0.001)
- bex.Transparency = 1
- bex.CFrame = CF(prt.Position)
- bex.CanCollide = false
- bex.Name = "" ..math.random(10000,99999)
- bex.Anchored = true
- local wed = IT("Weld")
- wed.Parent = bex
- wed.Part0 = bex
- wed.Part1 = prt
- CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
- if prt.Transparency < 1 then
- CreateSelectionBox(prt, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
- end
- end
- end
- end
- function IDontFeelSoGood(whom)
- if whom ~= Character then
- for i,v in pairs(whom:GetDescendants()) do
- if v:IsA("BasePart") and v ~= whom.RootPart then
- local function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- local cors = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "idontfeelsogood"
- ParticleEmitter0.Parent = mas
- ParticleEmitter0.Speed = NumberRange.new(1, 1)
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.Texture = "rbxassetid://252644715"
- ParticleEmitter0.Size = NumberSequence.new(0.20000000298023,0)
- ParticleEmitter0.Acceleration = Vector3.new(3, 0, 0)
- ParticleEmitter0.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter0.Rate = 200
- ParticleEmitter0.RotSpeed = NumberRange.new(-60, 60)
- ParticleEmitter0.Enabled = false
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = whom --script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local Particlee = ParticleEmitter0:Clone()
- Particlee.Parent = v
- Particlee.Color = ColorSequence.new(v.BrickColor.Color)
- whom.Torso.Anchored = true
- Particlee.Enabled = true
- CreateSound("1874339971", whom.Torso, 7, 1)
- coroutine.wrap(function()
- for i = 0,0.7,0.01 do
- wait()
- Head.face.Transparency = i
- v.Transparency = i
- end
- Particlee.Enabled = false
- wait(5)
- whom:Destroy()
- Particlee:Destroy()
- ParticleEmitter0:Destroy()
- cors = {}
- end)()
- end
- end
- end
- end
- --Attacks--
- function change_gem()
- imgl2.ImageTransparency = 1
- circl.ImageTransparency = 0.12
- ned.TextStrokeTransparency = 1
- ned.TextTransparency = 1
- CreateClientSound("847061203",workspace,3,1,0.7)
- Swait(20)
- circl.ImageTransparency = 1
- imgl2.ImageTransparency = 0.435
- ned.TextStrokeTransparency = 0
- ned.TextTransparency = 0
- end
- function SNAP()
- ATTACK = true
- Rooted = true
- pumpk:Pause()
- for i=0, 0.1, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- for i= 1, 3 do
- Swait()
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Lilac",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"New Yeller",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright green",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright Orange",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Eggplant",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright blue",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(i/3,i/3,0))
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- CreateSound("2930668938", workspace, 10, 1)
- CreateSnapGui()
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= Character then
- BegoneByeModel(v)
- end
- end
- for i= 1, 6 do
- Swait()
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Lilac",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"New Yeller",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright green",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright Orange",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Eggplant",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright blue",VT(i/3,i/3,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(i/3,i/3,0))
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- for i=0, 0.83, 1.5 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- ATTACK = false
- Rooted = false
- pumpk:Resume()
- end
- local punchallowed = false
- function Punch()
- ATTACK = true
- Rooted = false
- punchallowed = true
- repeat
- CreateSound("145487017", LeftArm, 3, .8)
- for i = 1, 16 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(-89)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(85), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- Swait(5)
- for i = 1, 10 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-22)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(12), RAD(0), RAD(-4)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- Swait(5)
- until HOLD == false
- Swait(2)
- ATTACK = false
- Rooted = false
- punchallowed = false
- end
- LeftArm.Touched:connect(function(h)
- if punchallowed == true then
- if h.Parent ~= Character and h.Name ~= "Baseplate" and h.Name ~= "Base" then
- h:BreakJoints()
- h.Anchored = false
- local vel = Instance.new("BodyVelocity", h)
- if gem_mode == 1 or gem_mode == 2 or gem_mode == 3 or gem_mode == 6 then
- CreateSound("2401098476", h, 9e999, 1)
- vel.Velocity = h.CFrame.lookVector * -43
- elseif gem_mode == 4 then
- CreateSound("440145223", h, 3, 1)
- vel.Velocity = h.CFrame.lookVector * -231
- MagicSphere(VT(0.5,0.5,0.5),11,CF(h.Position),Color3.fromRGB(167, 94, 155),VT(0.6,0.6,0.6))
- h.Color = Color3.fromRGB(137, 64, 135)
- elseif gem_mode == 5 then
- if h:FindFirstChild("Already Stopped") ~= nil then
- return
- end
- h.Anchored = true
- vel.Velocity = h.CFrame.lookVector * 0
- MagicSphere(VT(0.8,0.8,0.8),11,CF(h.Position),Color3.fromRGB(75, 151, 75),VT(0.7,0.7,0.7))
- h.Color = Color3.fromRGB(45, 131, 45)
- TimeStopPart(h)
- elseif gem_mode == 7 then
- CreateSound("138210320", h, 3, 1)
- vel.Velocity = h.CFrame.lookVector * -666
- MagicSphere(VT(0.8,0.8,0.8),11,CF(h.Position),Color3.fromRGB(255, 255, 0),VT(0.7,0.7,0.7))
- end
- vel.MaxForce = VT(math.huge,math.huge,math.huge)
- if gem_mode == 7 then
- Swait(10)
- else
- Swait(3)
- end
- Swait(3)
- if gem_mode == 7 then
- h:Destroy()
- else
- vel:Destroy()
- end
- end
- end
- end)
- function Space_Teleport()
- ATTACK = true
- Rooted = true
- local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z)
- local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really yellow", "Warphole", VT(0, 0, 0))
- local SpacePortal = script.ThanosPortal:Clone()
- SpacePortal.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(0), RAD(0), RAD(0))
- local SpacePortal2 = script.ThanosPortal:Clone()
- SpacePortal2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(0), RAD(0), RAD(0))
- ROOT.CFrame = CF(SpacePortal2.Position, RootPart.Position)
- SpacePortal.Parent = Effects
- SpacePortal2.Parent = Effects
- CreateSound("1127492102", RootPart, 10, 0.7)
- CreateSound("1127492102", RootPart, 10, 0.7)
- for i = 1, 75 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- VALUE1 = true
- for i = 1, 15 do
- Transparency(i / 15)
- Swait()
- RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(90), RAD(0)), 1)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(-90), RAD(0)), 1)
- end
- RootPart.CFrame = ROOT.CFrame
- ROOT:remove()
- for i = 1, 15 do
- Transparency(1 - i / 15)
- Swait()
- RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(90), RAD(0)), 1)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(-90), RAD(0)), 1)
- end
- VALUE1 = false
- coroutine.resume(coroutine.create(function()
- for i = 1, 75 do
- Swait()
- SpacePortal.CFrame = SpacePortal.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
- SpacePortal2.CFrame = SpacePortal2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
- end
- SpacePortal:remove()
- SpacePortal2:remove()
- end))
- ATTACK = false
- Rooted = false
- end
- function Portal_Disapear()
- ATTACK = true
- Rooted = false
- if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
- local SpacePortal = script.ThanosPortal:Clone()
- SpacePortal.CFrame = Mouse.Target.Parent.HumanoidRootPart * CF(0, 0, -3) * ANGLES(RAD(0), RAD(90), RAD(0))
- end
- ATTACK = false
- Rooted = false
- end
- function AreaPower()
- ATTACK = true
- Rooted = true
- CreateSound("384105511",Torso,10,.85)
- for i = 1, 25 do
- Swait()
- CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Lilac",VT(i/5,i/5,0))
- CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Lilac",VT(i/5,i/5,0))
- CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Plum",VT(i/3,i/3,0))
- killnearest(RootPart.Position, 40, 100)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-3), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-4), RAD(0), RAD(11)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(20), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- ATTACK = false
- Rooted = false
- end
- function Laser()
- ATTACK = true
- Rooted = false
- repeat
- local GYRO = IT("BodyGyro",RootPart)
- GYRO.D = 175
- GYRO.P = 20000
- GYRO.MaxTorque = VT(0,40000,0)
- GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
- for i=0, 0.0, 0.1 / Animation_Speed do
- Swait()
- GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(MRANDOM(10,20)), RAD(MRANDOM(10,20))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- RealityBeam(LeftArm.Position,Mouse.Hit.p,true)
- WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0.3,0,0.3), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = LeftArm.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(255, 89, 89), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- GYRO:remove()
- ATTACK = false
- Rooted = false
- until KEYHOLD == false
- end
- function Begone()
- ATTACK = true
- Rooted = true
- if Mouse.Target.Parent ~= Character and Mouse.Target:FindFirstChildOfClass("Part") ~= nil then
- local TORSO = Mouse.Target:FindFirstChildOfClass("Part")
- if TORSO then
- local GYRO = IT("BodyGyro", RootPart)
- GYRO.D = 750
- GYRO.P = 2000
- GYRO.MaxTorque = VT(0, 40000, 0)
- for i = 0, 0.3, 0.1 / Animation_Speed do
- Swait()
- GYRO.cframe = CF(RootPart.Position, TORSO.Position)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
- if ANIM == "Idle" then
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- elseif ANIM == "Walk" then
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
- elseif ANIM == "Jump" or ANIM == "Fall" then
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
- end
- end
- GYRO:remove()
- CreateSound("1874339971", TORSO, 10, 1)
- BegoneBye(TORSO)
- for i = 0, 0.25, 0.1 / Animation_Speed do
- Swait()
- GYRO.cframe = CF(RootPart.Position, TORSO.Position)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
- end
- end
- end
- ATTACK = false
- Rooted = false
- end
- function Timestopper()
- ATTACK = true
- Rooted = false
- if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
- CreateSound("384105511",RootPart,3.3,1)
- for i = 1, 25 do
- Swait()
- CreateRing(VT(0,0,0),false,0,5,LeftArm.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Camo",VT(i/7.5,i/7.5,0))
- CreateRing(VT(0,0,0),false,0,5,LeftArm.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Camo",VT(i/7.5,i/7.5,0))
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-3), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-4), RAD(0), RAD(11)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(94), RAD(12), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- local TORSO = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart")
- local bex = IT("Part")
- bex.Parent = Effects
- bex.Orientation = VT(TORSO.Orientation)
- bex.Size = VT(0.001,0.001,0.001)
- bex.Transparency = 1
- bex.CFrame = CF(TORSO.Position)
- bex.CanCollide = false
- bex.Name = "" ..math.random(10000,99999)
- bex.Anchored = true
- local wed = IT("Weld")
- wed.Parent = bex
- wed.Part0 = bex
- wed.Part1 = TORSO
- CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
- CreateModelSelectionBox(TORSO.Parent, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
- end
- ATTACK = false
- Rooted = false
- end
- function FullPowerBlast()
- ATTACK = true
- Rooted = true
- CreateSound("581516887",Torso,2,0.88)
- for i=0, 1.5, 0.1 / Animation_Speed do
- Swait()
- turnto(Mouse.Hit.p)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- for i = 1, 50 do
- Swait()
- end
- local LOOP = 0
- local BEAM1 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beamo", VT(0,0,0))
- MakeForm(BEAM1, "Ball")
- local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beame", VT(0,0,0))
- MakeForm(BEAM2, "Ball")
- local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beam", VT(0, 0, 0), true)
- MakeForm(BEAM, "Cyl")
- CreateSound("1146690130",BEAM1,4,0.83)
- local beamsound = IT("Sound")
- beamsound.SoundId = "rbxassetid://1447681819"
- beamsound.Looped = true
- beamsound.Volume = 5
- beamsound.Parent = BEAM
- beamsound:Play()
- repeat
- local DISTANCE = (RightArm.Position - Mouse.Hit.p).Magnitude
- if gem_mode == 7 then
- TweenService:Create(BEAM,TweenInfo.new(1),{Color = Colours[Int]}):Play()
- TweenService:Create(BEAM1,TweenInfo.new(1),{Color = Colours[Int]}):Play()
- TweenService:Create(BEAM2,TweenInfo.new(1),{Color = Colours[Int]}):Play()
- end
- if gem_mode == 7 and Mouse.Target.Name ~= "Baseplate" and Mouse.Target.Name ~= "Base" then
- Mouse.Target:Destroy()
- elseif gem_mode ~= 7 and Mouse.Target.Name ~= "Baseplate" and Mouse.Target.Name ~= "Base" then
- Mouse.Target:BreakJoints()
- end
- if DISTANCE < 2000 then
- BEAM1.Size = VT(2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8))
- BEAM1.CFrame = CF(LeftArm.Position)
- BEAM2.Size = VT(2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8))
- BEAM2.CFrame = CF(Mouse.Hit.p)
- BEAM.Size = VT(2 + 0.25 * COS(SINE / 8), DISTANCE, 2 + 0.25 * COS(SINE / 8))
- BEAM.CFrame = CF(LeftArm.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
- Swait()
- LOOP = LOOP + 1
- end
- until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000
- coroutine.resume(coroutine.create(function()
- for i = 1, 15 do
- Swait()
- BEAM.Size = BEAM.Size - VT(0.1, 0, 0.1)
- BEAM1.Size = BEAM1.Size - VT(0.1, 0.1, 0.1)
- BEAM2.Size = BEAM2.Size - VT(0.1, 0.1, 0.1)
- BEAM.Transparency = BEAM.Transparency + 0.06666666666666667
- BEAM1.Transparency = BEAM1.Transparency + 0.06666666666666667
- BEAM2.Transparency = BEAM2.Transparency + 0.06666666666666667
- end
- BEAM:remove()
- BEAM1:remove()
- BEAM2:remove()
- end))
- ATTACK = false
- Rooted = false
- end
- function MouseDown(Mouse)
- HOLD = true
- if ATTACK == false then
- Punch()
- end
- end
- function MouseUp(Mouse)
- HOLD = false
- end
- function KeyDown(Key)
- KEYHOLD = true
- if(Key == "z" and ATTACK == false)then
- if gem_mode == 1 then
- end
- if gem_mode == 2 then
- Laser()
- end
- if gem_mode == 3 then
- end
- if gem_mode == 4 then
- FullPowerBlast()
- end
- if gem_mode == 5 then
- Timestopper()
- end
- if gem_mode == 6 then
- end
- if gem_mode == 7 then
- SNAP()
- end
- end
- if(Key == "x" and ATTACK == false)then
- if gem_mode == 1 then
- end
- if gem_mode == 2 then
- end
- if gem_mode == 3 then
- Space_Teleport()
- end
- if gem_mode == 4 then
- AreaPower()
- end
- if gem_mode == 5 then
- end
- if gem_mode == 6 then
- end
- if gem_mode == 7 then
- FullPowerBlast()
- end
- end
- if(Key == "c" and ATTACK == false)then
- if gem_mode == 1 then
- end
- if gem_mode == 2 then
- end
- if gem_mode == 3 then
- end
- if gem_mode == 4 then
- end
- if gem_mode == 5 then
- end
- if gem_mode == 6 then
- end
- if gem_mode == 7 then
- end
- end
- if(Key == "one" and ATTACK == false and gem_mode ~= 1)then
- change_gem()
- gem_mode = 1 --Soul
- end
- if(Key == "two" and ATTACK == false and gem_mode ~= 2)then
- change_gem()
- gem_mode = 2 --Reality
- end
- if(Key == "three" and ATTACK == false and gem_mode ~= 3)then
- change_gem()
- gem_mode = 3 --Space
- end
- if(Key == "four" and ATTACK == false and gem_mode ~= 4)then
- change_gem()
- gem_mode = 4 --Power
- end
- if(Key == "five" and ATTACK == false and gem_mode ~= 5)then
- change_gem()
- gem_mode = 5 --Time
- end
- if(Key == "six" and ATTACK == false and gem_mode ~= 6)then
- change_gem()
- gem_mode = 6 --Mind
- end
- if(Key == "seven" and ATTACK == false and gem_mode ~= 7)then
- change_gem()
- gem_mode = 7 --Every
- end
- end
- function KeyUp(Key)
- KEYHOLD = false
- end
- Mouse.Button1Down:connect(function(NEWKEY)
- MouseDown(NEWKEY)
- end)
- Mouse.Button1Up:connect(function(NEWKEY)
- MouseUp(NEWKEY)
- end)
- Mouse.KeyDown:connect(function(NEWKEY)
- KeyDown(NEWKEY)
- end)
- Mouse.KeyUp:connect(function(NEWKEY)
- KeyUp(NEWKEY)
- end)
- function unanchor()
- local g = Character:GetChildren()
- for i = 1, #g do
- if g[i].ClassName == "Part" then
- g[i].Anchored = false
- end
- end
- end
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true) then
- Humanoid.Jump = false
- end
- end)
- spawn(function()
- while wait(0.64) do
- Swait()
- --[[
- Swait(6)
- ChangeColorNumber = 1
- Swait(6)
- ChangeColorNumber = 2
- Swait(6)
- ChangeColorNumber = 3
- Swait(6)
- ChangeColorNumber = 4
- Swait(6)
- ChangeColorNumber = 5
- Swait(6)
- ChangeColorNumber = 6
- ]]
- if gem_mode == 7 then
- if Int == #Colours then Int = 0 end
- Int = Int+1
- TweenService:Create(ned,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
- TweenService:Create(ned,TweenInfo.new(1),{TextStrokeColor3 = Colours2[Int]}):Play()
- end
- end
- end)
- CreateOutfit()
- CreateShield()
- while true do
- Swait()
- refit()
- ANIMATE.Parent = nil
- for _,v in next, Humanoid:GetPlayingAnimationTracks() do
- v:Stop();
- end
- SINE = SINE + CHANGE
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
- if ANIM == "Walk" and TORSOVELOCITY > 1 then
- RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
- RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- end
- if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
- ANIM = "Jump"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- end
- elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
- ANIM = "Fall"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
- end
- elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
- ANIM = "Idle"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
- end
- elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
- ANIM = "Walk"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
- end
- end
- circl.Rotation = circl.Rotation - 0.14 + 1.5
- if gem_mode == 7 then
- ned.Rotation = 0 -2 * math.cos(SINE / 1) + math.random(-3,3)
- ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
- else
- ned.Rotation = 0 - 2 * math.cos(SINE / 24)
- ned.Position = UDim2.new(0.7,0 - 10 * math.cos(SINE / 32),0.8,0 - 10 * math.cos(SINE / 45))
- end
- if Weld == nil then
- local Weld = CreateWeldOrSnapOrMotor("Weld", Gauntlet, LeftArm, Gauntlet, CF(0.265, -0.54, 0) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
- end
- unanchor()
- if workspace:FindFirstChild("BulletShield") == nil then
- CreateShield()
- end
- if gem_mode == 1 then
- imgl2.Image = "rbxassetid://2480004800"
- ned.Text = "Soul Gem"
- ned.TextStrokeColor3 = BrickColor.new("Gold").Color
- ned.TextColor3 = BrickColor.new("Bright orange").Color
- end
- if gem_mode == 2 then
- imgl2.Image = "rbxassetid://2480005731"
- ned.Text = "Reality Gem"
- ned.TextStrokeColor3 = BrickColor.new("Really red").Color
- ned.TextColor3 = BrickColor.new("Persimmon").Color
- end
- if gem_mode == 3 then
- imgl2.Image = "rbxassetid://2480007159"
- ned.Text = "Space Gem"
- ned.TextStrokeColor3 = BrickColor.new("Bright blue").Color
- ned.TextColor3 = BrickColor.new("Teal").Color
- end
- if gem_mode == 4 then
- imgl2.Image = "rbxassetid://2480007882"
- ned.Text = "Power Gem"
- ned.TextStrokeColor3 = BrickColor.new("Bright reddish lilac").Color
- ned.TextColor3 = BrickColor.new("Eggplant").Color
- end
- if gem_mode == 5 then
- imgl2.Image = "rbxassetid://2480008988"
- ned.Text = "Time Gem"
- ned.TextStrokeColor3 = BrickColor.new("Olivine").Color
- ned.TextColor3 = BrickColor.new("Mint").Color
- end
- if gem_mode == 6 then
- imgl2.Image = "rbxassetid://2480009679"
- ned.Text = "Mind Gem"
- ned.TextStrokeColor3 = BrickColor.new("New Yeller").Color
- ned.TextColor3 = BrickColor.new("Bright yellow").Color
- end
- if gem_mode == 7 then
- imgl2.Image = "rbxassetid://2481697056"
- ned.Text = "Every Gem"
- --ned.TextStrokeColor3 = BrickColor.new(EveryStroke[ChangeColorNumber]).Color
- --ned.TextColor3 = BrickColor.new(EveryColor[ChangeColorNumber]).Color
- end
- Humanoid.MaxHealth = 1e99999
- Humanoid.Health = Humanoid.Health + 1e9999
- if Rooted == false then
- Disable_Jump = false
- Humanoid.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement