Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
- print("Draggo edit by Memo1332")
- wait(.25)
- print("FE Compatibility: by WaverlyCole & Mokiros")
- wait(.25)
- InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput"
- local function NewFakeEvent()
- local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
- return Fake
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Function then
- Trigger.Function(...)
- end
- end
- Mouse.TrigEvent = TriggerEvent
- UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then end
- if Input.MouseEvent then
- Mouse.Target = Input.Target
- Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then
- return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do
- if Key==Input.KeyCode then
- Action.Function(Action.Name,Input.UserInputState,Input)
- end
- end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse
- InternalData["ContextActionService"] = ContextActionService
- InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner
- local Event = script:WaitForChild("UserInput")
- local UserInputService = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input)
- UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)
- return InternalData["Mouse"]
- end
- end
- return function (self,...)
- return RealPlayer[Index](RealPlayer,...)
- end
- else
- return RealPlayer[Index]
- end
- end;
- __tostring = function(self)
- return RealPlayer.Name
- end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- if Service:lower() == "players" then
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "localplayer" then
- return Sandbox(owner)
- end
- return RealService[Index2]
- end
- end;
- __tostring = function(self)
- return RealGame:GetService(Service).Name
- end
- })
- elseif Service:lower() == "contextactionservice" then
- return InternalData["ContextActionService"]
- elseif Service:lower() == "contextactionservice" then
- return InternalData["UserInputService"]
- elseif Service:lower() == "runservice" then
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "bindtorenderstep" then
- return function (self,Name,Priority,Function)
- return RealGame:GetService("RunService").Stepped:Connect(Function)
- end
- end
- if Index2:lower() == "renderstepped" then
- return RealService["Stepped"]
- end
- return RealService[Index2]
- end
- end
- })
- else
- return RealGame:GetService(Service)
- end
- end
- end
- return function (self,...)
- return RealGame[Index](RealGame,...)
- end
- else
- if game:GetService(Index) then
- return game:GetService(Index)
- end
- return RealGame[Index]
- end
- else
- return nil
- end
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer
- print("Complete! Running...")
- -- if u read this u hab big fat
- onlyparticle = Instance.new("ParticleEmitter")
- --i used stravants Beautifier so it might look a bit wonky
- Meshes = {
- Blast = '20329976',
- Crown = '1323306',
- Ring = '3270017',
- Claw = '10681506',
- Crystal = '9756362',
- Coil = '9753878',
- Cloud = '1095708',
- }
- clangsounds = {
- '199149119',
- '199149109',
- '199149072',
- '199149025',
- '199148971'
- }
- hitsounds = {
- '199149137',
- '199149186',
- '199149221',
- '199149235',
- '199149269',
- '199149297'
- }
- blocksounds = {
- '199148933',
- '199148947'
- }
- armorsounds = {
- '199149321',
- '199149338',
- '199149367',
- '199149409',
- '199149452'
- }
- woosh = {
- Heavy1 = '320557353',
- Heavy2 = '320557382',
- Heavy3 = '320557453',
- Heavy4 = '199144226',
- Heavy5 = '203691447',
- Heavy6 = '203691467',
- Heavy7 = '203691492',
- Light1 = '320557413',
- Light2 = '320557487',
- Light3 = '199145095',
- Light4 = '199145146',
- Light5 = '199145887',
- Light6 = '199145913',
- Light7 = '199145841',
- Medium1 = '320557518',
- Medium2 = '320557537',
- Medium3 = '320557563',
- Medium4 = '199145204'
- }
- music = {--i like music a lot
- Breaking = '179281636',
- FinalReckoning = '357375770',
- NotDeadYet = '346175829',
- Intense = '151514610',
- JumpP1 = '160536628',
- JumpP2 = '60536666',
- SonsOfWar = '158929777',
- WrathOfSea = '165520893',
- ProtecTorsofEarth = '160542922',
- SkyTitans = '179282324',
- ArchAngel = '144043274',
- Anticipation = '168614529',
- TheMartyred = '186849544',
- AwakeP1 = '335631255',
- AwakeP2 = '335631297',
- ReadyAimFireP1 = '342455387',
- ReadyAimFireP2 = '342455399',
- DarkLordP1 = '209567483',
- DarkLordP2 = '209567529',
- BloodDrainP1 = '162914123',
- BloodDrainP2 = '162914203',
- DanceOfSwords = '320473062',
- Opal = '286415112',
- Calamity = '190454307',
- Hypnotica = '155968128',
- Nemisis = '160453802',
- Breathe = '276963903',
- GateToTheRift = '270655227',
- InfernalBeserking = '244143404',
- Trust = '246184492',
- AwakeningTheProject = '245121821',
- BloodPain = '242545577',
- Chaos = '247241693',
- NightmareFictionHighStake = '248062278',
- TheWhiteWeapon = '247236446',
- Gale = '256851659',
- ImperialCode = '256848383',
- Blitzkrieg = '306431437',
- RhapsodyRage = '348690251',
- TheGodFist = '348541501',
- BattleForSoul = '321185592',
- TheDarkColossus = '305976780',
- EmpireOfAngels = '302580452',
- Kronos = '302205297',
- Exorcist = '299796054',
- CrimsonFlames = '297799220',
- UltimatePower = '295753229',
- DrivingInTheDark = '295753229',
- AscendToPower = '293860654',
- GodOfTheSun = '293612495',
- DarkRider = '293861765',
- Vengeance = '293375555',
- SoundOfWar = '293376196',
- HellsCrusaders = '293012202',
- Legend = '293011823',
- RisingSouls = '290524959'
- }
- misc = {
- GroundSlam = '199145477',
- LaserSlash = '199145497',
- RailGunFire = '199145534',
- Charge1 = '199145659',
- Charge2 = '169380469',
- Charge3 = '169380479',
- EmptyGun = '203691822',
- GunShoot = '203691837',
- Stomp1 = '200632875',
- Stomp2 = '200632561',
- TelsaCannonCharge = '169445572',
- TelsaCannonShoot = '169445602',
- AncientHymm = '245313442'
- }
- wait(1 / 60)
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local mouse = Player:GetMouse()
- local m = Instance.new('Model', Character)
- m.Name = "WeaponModel"
- 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 cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- --cam.CameraSubject = Head
- local equipped = false
- local attack = false
- local Anim = 'Idle'
- local idle = 0
- local sprint = false
- local battlestance = false
- local attacktype = 1
- local state = 'none'
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local on = false
- local grabbed = false
- local skill1 = false
- local skill2 = false
- local skill3 = false
- local skill4 = false
- local cooldown1 = 0
- local cooldown2 = 0
- -- if u read this u hab big fat
- local cooldown3 = 0
- local cooldown4 = 0
- local co1 = 10--how long it will take for skill to cooldown
- local co2 = 15
- local co3 = 15
- local co4 = 25
- local inputserv = game:GetService('UserInputService')
- local typing = false
- local crit = false
- local critchance = 2--critical chance percentage
- local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
- local critdamageaddmax = 7--maximum amount
- local maxstamina = 100--max amount of stamina
- local stamina = 0--stamina you start out with
- local skill1stam = 10--how much stamina is needed for a skill
- local skill2stam = 10
- local skill3stam = 20
- local skill4stam = 30
- local recovermana = 3--how much mana per second
- local defensevalue = 1--how much defense this character has
- local speedvalue = 1--how much speed this character has
- --speed is 16*speedvalue
- local mindamage = 5--self explanatory
- local maxdamage = 7--self explanatory
- local damagevalue = 1--how much damage this character has
- --damage is math.random(mindamage,maxdamage)*damagevalue
- --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
- --asd
- local cn = CFrame.new-- make things easier :)
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
- --asd
- local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Humanoid.Animator:Destroy()
- --Angles For RootJoint `~`
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- --Save Shoulders/Hips
- RSH, LSH = nil, nil
- RHS, LHS = nil, nil
- --Shoulders
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- --Hips
- RH = Instance.new("Weld")
- LH = Instance.new("Weld")
- --
- Player = Player
- ch = Character
- LHS = Torso["Left Hip"]
- RHS = Torso["Right Hip"]
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- LHS.Parent = nil
- RHS.Parent = nil
- --
- RW.Name = "RW"
- RW.Part0 = ch.Torso
- RW.C0 = cn(1.5, 0.5, 0)
- RW.C1 = cn(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- --
- LW.Name = "LW"
- LW.Part0 = ch.Torso
- LW.C0 = cn(-1.5, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --
- LH.Name = "LH"
- LH.Part0 = ch.Torso
- LH.C0 = cn(-0.5, -2, 0)
- LH.Part1 = ch["Left Leg"]
- LH.Parent = ch.Torso
- --
- RH.Name = "RH"
- RH.Part0 = ch.Torso
- RH.C0 = cn(0.5, -2, 0)
- RH.Part1 = ch["Right Leg"]
- RH.Parent = ch.Torso
- -- if u read this u hab big fat
- Flying = false
- game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
- if Flying == true then
- if jump == "Jump" then
- Humanoid.Jump = false
- end
- end
- end)
- Humanoid.CameraOffset = Vector3.new(0, -2, 0)
- Torso.Transparency = 1
- Head.Transparency = 1
- LeftLeg.Transparency = 1
- RightLeg.Transparency = 1
- LeftArm.Transparency = 1
- RightArm.Transparency = 1
- for i,v in pairs (Character:GetChildren()) do
- if v.ClassName == "Hat"
- then v:Destroy()
- end
- end
- for i,v in pairs (Character.Head:GetChildren()) do
- if v.ClassName == "Decal"
- then v:Destroy()
- end
- end
- Character.Animate:Destroy()
- local scrn = Instance.new('ScreenGui')
- scrn.Parent = nil
- function makeframe(par, trans, pos, size, color)
- local frame = Instance.new('Frame', par)
- frame.BackgroundTransparency = trans
- frame.BorderSizePixel = 0
- frame.Position = pos
- frame.Size = size
- frame.BackgroundColor3 = color
- return frame
- end
- function makelabel(par, text)
- local label = Instance.new('TextLabel', par)
- label.BackgroundTransparency = 1
- label.Size = ud(1, 0, 1, 0)
- label.Position = ud(0, 0, 0, 0)
- label.TextColor3 = c3(255, 255, 255)
- label.TextStrokeTransparency = 0
- label.FontSize = Enum.FontSize.Size32
- label.Font = Enum.Font.SourceSansBold
- label.BorderSizePixel = 0
- label.TextScaled = true
- label.Text = text
- end
- framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- text1 = makelabel(framesk1, '[3] Skill3')
- text2 = makelabel(framesk2, '[4] Skill4')
- text3 = makelabel(framesk3, "[2] Skill2")
- text4 = makelabel(framesk4, '[1] Skill1')
- staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
- staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
- staminatext = makelabel(staminabar, 'Mana')
- healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
- healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
- healthtext = makelabel(healthbar, 'Health')
- local stats = Instance.new('Folder', Character)
- stats.Name = 'Stats'
- local block = Instance.new('BoolValue', stats)
- block.Name = 'Block'
- block.Value = false
- local stun = Instance.new('BoolValue', stats)
- stun.Name = 'Stun'
- stun.Value = false
- local defense = Instance.new('NumberValue', stats)
- defense.Name = 'Defence'
- defense.Value = defensevalue
- local speed = Instance.new('NumberValue', stats)
- speed.Name = 'Speed'
- speed.Value = speedvalue
- local damagea = Instance.new('NumberValue', stats)
- damagea.Name = 'Damage'
- damagea.Value = damagevalue
- function atktype(s, e)
- coroutine.resume(coroutine.create(function()
- attacktype = e
- wait(1.5)
- attacktype = s
- end))
- end
- function turncrit()
- coroutine.resume(coroutine.create(function()
- print'CRITICAL!'
- crit = true
- wait(.25)
- crit = false
- end))
- end
- function subtractstamina(k)
- if stamina >= k then
- stamina = stamina - k
- end
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- function randomizer(percent)
- local randomized = math.random(0, 100)
- if randomized <= percent then
- return true
- elseif randomized >= percent then
- return false
- end
- end
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- formFactor = FormFactor,
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end
- -- if u read this u hab big fat
- function rayCast(pos, dir, maxl, ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
- end
- --Effects
- function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
- local p = Instance.new('Part', par or workspace)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'SmoothPlastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = trans
- p.FormFactor = 'Custom'
- RemoveOutlines(p)
- local mesh = Instance.new('SpecialMesh', p)
- mesh.Scale = size
- if id ~= nil and type == nil then
- mesh.MeshId = 'rbxassetid://'..id
- elseif id == nil and type ~= nil then
- mesh.MeshType = type
- elseif id == nil and type == nil then
- mesh.MeshType = 'Brick'
- end
- coroutine.wrap(function()
- for i = 0, delay1, .1 do
- wait(1 / 60)
- p.CFrame = p.CFrame
- mesh.Scale = mesh.Scale + howmuch
- p.Transparency = p.Transparency + trans1
- end
- p:Destroy()
- end)()
- return p
- end
- function clangy(cframe)
- wait(1 / 60)
- local clang = {}
- local dis = 0
- local part = Instance.new('Part', nil)
- part.CFrame = cframe
- part.Anchored = true
- part.CanCollide = false
- part.BrickColor = BrickColor.new('New Yeller')
- part.FormFactor = 'Custom'
- part.Name = 'clanger'
- part.Size = Vector3.new(.2, .2, .2)
- part.TopSurface = 10
- part.BottomSurface = 10
- part.RightSurface = 10
- part.LeftSurface = 10
- part.BackSurface = 10
- part.FrontSurface = 10
- --part.Material='Neon'
- part:BreakJoints()
- local mesh = Instance.new('BlockMesh', part)
- coroutine.wrap(function()
- for i = 1, 7 do
- wait(1 / 60)
- dis = dis + .2
- local partc = part:clone()
- partc.Parent = workspace
- partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
- partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
- table.insert(clang, partc)
- end
- for i, v in pairs(clang) do
- coroutine.wrap(function()
- for i = 1, 10 do
- wait(.01)
- v.Transparency = v.Transparency + .1
- end
- v:destroy()
- end)()
- end
- end)()
- end
- --damage effects
- function circle(color, pos1)
- local p = Instance.new('Part', m)
- p.BrickColor = BrickColor.new(color)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'Plastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = 0.35
- p.FormFactor = 'Custom'
- local mesh = Instance.new('CylinderMesh', p)
- mesh.Scale = Vector3.new(0, 0, 0)
- coroutine.wrap(function()
- for i = 0, 5, .1 do
- wait(1 / 60)
- p.CFrame = p.CFrame
- mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
- p.Transparency = p.Transparency + .025
- end
- p:Destroy()
- end)()
- end
- function firespaz1(color, pos1)
- local p = Instance.new('Part', m)
- p.BrickColor = BrickColor.new(color)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'Plastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = 0.5
- p.FormFactor = 'Custom'
- local mesh = Instance.new('BlockMesh', p)
- mesh.Scale = Vector3.new(1, 1, 1)
- coroutine.wrap(function()
- for i = 0, 15, .1 do
- wait(1 / 30)
- p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
- mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
- p.Transparency = p.Transparency + .025
- end
- p:Destroy()
- end)()
- end
- function pickrandom(tablesa)
- local randomized = tablesa[math.random(1, #tablesa)]
- return randomized
- end
- function sound(id, pitch, volume, par, last)
- local s = Instance.new('Sound', par or Torso)
- s.SoundId = 'rbxassetid://'..id
- s.Pitch = pitch or 1
- s.Volume = volume or 1
- wait()
- s:play()
- game.Debris:AddItem(s, last or 120)
- end
- function clangy(cframe)
- wait(1 / 60)
- local clang = {}
- local dis = 0
- local part = Instance.new('Part', nil)
- part.CFrame = cframe
- part.Anchored = true
- part.CanCollide = false
- part.BrickColor = BrickColor.new('New Yeller')
- part.FormFactor = 'Custom'
- part.Name = 'clanger'
- part.Size = Vector3.new(.2, .2, .2)
- part.TopSurface = 10
- part.BottomSurface = 10
- part.RightSurface = 10
- part.LeftSurface = 10
- part.BackSurface = 10
- part.FrontSurface = 10
- --part.Material='Neon'
- part:BreakJoints()
- local mesh = Instance.new('BlockMesh', part)
- coroutine.wrap(function()
- for i = 1, 7 do
- wait(1 / 60)
- dis = dis + .2
- local partc = part:clone()
- partc.Parent = workspace
- partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
- partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
- table.insert(clang, partc)
- end
- for i, v in pairs(clang) do
- coroutine.wrap(function()
- for i = 1, 10 do
- wait(.01)
- v.Transparency = v.Transparency + .1
- end
- v:destroy()
- end)()
- end
- end)()
- end
- --damage effects
- --Effects
- so = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = id
- wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou, 6)
- end))
- end
- local function getclosest(obj, distance)
- local last, lastx = distance + 1
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
- local t = v.Torso
- local dist = (t.Position - obj.Position).magnitude
- if dist <= distance then
- if dist < last then
- last = dist
- lastx = v
- end
- end
- end
- end
- return lastx
- end
- function makegui(cframe, text)
- local a = math.random(-10, 10) / 100
- local c = Instance.new("Part")
- c.Transparency = 1
- Instance.new("BodyGyro").Parent = c
- c.Parent = m
- c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
- local f = Instance.new("BodyPosition")
- f.P = 2000
- f.D = 100
- f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- f.position = c.Position + Vector3.new(0, 3, 0)
- f.Parent = c
- game:GetService("Debris"):AddItem(c, .5 + 6)
- c.CanCollide = false
- m.Parent = workspace
- c.CanCollide = false
- local bg = Instance.new('BillboardGui', m)
- bg.Adornee = c
- bg.Size = UDim2.new(1, 0, 1, 0)
- bg.StudsOffset = Vector3.new(0, 0, 0)
- bg.AlwaysOnTop = false
- local tl = Instance.new('TextLabel', bg)
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1, 0, 1, 0)
- tl.Text = text
- tl.Font = 'SourceSansBold'
- tl.FontSize = 'Size42'
- if crit == true then
- tl.TextColor3 = Color3.new(180 / 255, 0, 0)
- else
- tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
- end
- tl.TextStrokeTransparency = 0
- tl.TextScaled = true
- tl.TextWrapped = true
- coroutine.wrap(function()
- wait(2)
- for i = 1, 10 do
- wait()
- tl.TextTransparency = tl.TextTransparency + .1
- end
- end)()
- end
- function tag(hum, Player)
- local creator = Instance.new('ObjectValue', hum)
- creator.Value = Player
- creator.Name = 'creator'
- end
- function untag(hum)
- if hum ~= nil then
- local tag = hum:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function tagPlayer(h)
- coroutine.wrap(function()
- tag(h, Player)
- wait(1)
- untag(h)
- end)()
- end
- function damage(hit, mind, maxd, knock, type, prop)
- --[[
- to apply it to a Player directly, make the first arg go to the Players Torso
- 1 - normal type(damage and knockback)
- 2 - drain type(damage no knockback)
- 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
- 4 - heal(heals target)
- 5 - subtracts enemies defense
- 6 - subtracts enemies speed
- 7 -
- ]]
- if hit.Name:lower() == 'Hitbox' then
- local pos = CFrame.new(0, 1, -1)
- sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
- coroutine.wrap(function()
- for i = 1, 4 do
- clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
- end
- end)()
- end
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for i, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
- h = hit.Parent.Parent:FindFirstChild('Humanoid')
- end
- if hit.Parent:IsA('Hat') then
- hit = hit.Parent.Parent:findFirstChild('Head')
- end
- local D = math.random(mind, maxd) * damagea.Value
- if h.Parent:FindFirstChild('Stats') then
- D = D / h.Parent:FindFirstChild('Stats').Defence.Value
- elseif not h.Parent:FindFirstChild('Stats') then
- D = D
- end
- if h then
- makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if type == 1 then
- tagPlayer(h)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
- local vp = Instance.new('BodyVelocity')
- vp.P = 500
- vp.maxForce = Vector3.new(math.huge, 0, math.huge)
- vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
- if knock > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif type == 2 then
- so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- tagPlayer(h)
- elseif type == 3 then
- tagPlayer(h)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- Character.Humanoid.Health = Character.Humanoid.Health + D / 2
- so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
- for i = 1, 10 do
- firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
- end
- elseif type == 4 then
- h.Health = h.Health + D
- so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
- circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
- end
- end
- end
- -- if u read this u hab big fat
- function subtrackstamina(k)
- if stamina >= k then
- stamina = stamina - k
- end
- end
- -- if u read this u hab big fat
- Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
- Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006))
- CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945))
- CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588))
- CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
- NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199))
- CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441))
- CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
- TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
- Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0))
- CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093))
- HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
- HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847))
- CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
- HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
- CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
- BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992))
- CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
- BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686))
- CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Head",Vector3.new(1.59999979, 1, 1.19999993))
- Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1))
- CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
- -- if u read this u hab big fat
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
- Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
- CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
- Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
- CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
- Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
- CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
- Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
- RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
- CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
- Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
- NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
- Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.5999999, 1, 1.39999998))
- Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
- TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
- Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
- -- if u read this u hab big fat
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
- Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622))
- CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
- Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
- CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
- Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
- Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942))
- CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
- Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
- CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
- Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
- Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
- Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
- Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
- CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- mouse.Button1Down:connect(function()
- end)
- inputserv.InputBegan:connect(function(k)
- if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
- elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
- elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
- elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
- end
- end)
- inputserv.InputBegan:connect(function(k)
- if k.KeyCode == Enum.KeyCode.Slash then
- local fin = nil
- typing = true
- fin = inputserv.InputBegan:connect(function(k)
- if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
- typing = false
- fin:disconnect()
- end
- end)
- end
- end)
- function updateskills()
- if cooldown1 <= co1 then
- cooldown1 = cooldown1 + 1 / 30
- end
- if cooldown2 <= co2 then
- cooldown2 = cooldown2 + 1 / 30
- end
- if cooldown3 <= co3 then
- cooldown3 = cooldown3 + 1 / 30
- end
- if cooldown4 <= co4 then
- cooldown4 = cooldown4 + 1 / 30
- end
- if stamina <= maxstamina then
- stamina = stamina + recovermana / 30
- end
- end
- coroutine.resume(coroutine.create(function(Part,Weld)
- while Part.Parent~=nil do
- wait(5)
- for i=0,1,0.2 do
- wait()
- BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
- end
- for i=0,1,0.2 do
- wait()
- BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
- end
- end
- end),BlinkPartR,BlinkPartRweld)
- coroutine.resume(coroutine.create(function(Part,Weld)
- while Part.Parent~=nil do
- wait(5)
- for i=0,1,0.2 do
- wait()
- BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
- end
- for i=0,1,0.2 do
- wait()
- BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
- end
- end
- end),BlinkPartL,BlinkPartLweld)
- game:GetService'RunService'.Heartbeat:connect(function()
- updateskills()
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if equipped == true or equipped == false then
- if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
- Anim = "Jump"
- if attack == false then
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
- Anim = "Fall"
- if attack == false then
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
- end
- elseif Torsovelocity < 1 then
- Anim = "Idle"
- if Flying == false then
- change = 1
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3)
- elseif Flying == true then
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3)
- end
- elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
- Anim = "Walk"
- if attack == false and Flying == false then
- change = 1
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
- elseif attack == false and Flying == true then
- change = 1
- Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3)
- HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3)
- LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
- LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
- RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
- RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
- TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3)
- Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
- Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3)
- end
- end
- end
- end)
- local d = game.Players.LocalPlayer.Character:GetChildren()
- for i=1, #d do
- if (d[i].className == "Accessory") then
- d[i]:remove()
- end
- end
- local plr = game.Players.LocalPlayer
- plr.Character.Humanoid.MaxHealth = math.huge
- Instance.new("ForceField",plr.Character).Visible = false
- function firework()
- local varx = math.random(-15,15)
- wait()
- local vary = math.random(-15,15)
- wait()
- local ran = math.random(0,6)
- wait()
- if ran == 0 then
- color1 = Color3.fromRGB(255,0,255) -- memo colors
- color2 = Color3.fromRGB(47,0,143)
- elseif ran == 1 then
- color1 = Color3.fromRGB(255,0,255)
- color2 = Color3.fromRGB(255,255,255)
- elseif ran == 2 then
- color1 = Color3.fromRGB(255,0,255)
- color2 = Color3.fromRGB(255,175,255)
- elseif ran == 3 then
- color1 = Color3.fromRGB(255,255,255)
- color2 = Color3.fromRGB(255,0,255)
- elseif ran == 4 then
- color1 = Color3.fromRGB(255,175,255)
- color2 = Color3.fromRGB(255,0,255)
- elseif ran == 5 then
- color1 = Color3.fromRGB(255,255,255)
- color2 = Color3.fromRGB(255,100,255)
- elseif ran == 6 then
- color1 = Color3.fromRGB(55,0,55)
- color2 = Color3.fromRGB(175,0,255)
- end
- local ParticleEmittera = onlyparticle:Clone()
- local ParticleEmitter1 = onlyparticle:Clone()
- local ParticleEmitter2 = onlyparticle:Clone()
- local ParticleEmitter3 = onlyparticle:Clone()
- local ParticleEmitter4 = onlyparticle:Clone()
- local ParticleEmitter5 = onlyparticle:Clone()
- wait()
- local SoundPitch =0.9+math.random()*.5
- wait()
- local firework = Instance.new("Part",workspace)
- local sound1 = Instance.new("Sound",firework)
- sound1.SoundId = "rbxassetid://858818415"
- sound1.Volume = 5
- sound1.Pitch = SoundPitch
- local sound2 = Instance.new("Sound",firework)
- sound2.SoundId = "rbxassetid://884087543"
- sound2.Volume = 5
- sound2.Pitch = SoundPitch
- local sound3 = Instance.new("Sound",firework)
- sound3.SoundId = "rbxassetid://858818261"
- sound3.Volume = 10
- sound3.Pitch = 0.9+math.random()*.5
- sound1:Play()
- sound2:Play()
- ParticleEmittera.Parent = firework
- ParticleEmittera.Speed = NumberRange.new(65, 65)
- ParticleEmittera.Color = ColorSequence.new(color1,color1)
- ParticleEmittera.Enabled = false
- ParticleEmittera.LightEmission = 1
- ParticleEmittera.LightInfluence = 0
- ParticleEmittera.Texture = "rbxassetid://1280736246"
- ParticleEmittera.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmittera.Size = NumberSequence.new(3,3)
- ParticleEmittera.Lifetime = NumberRange.new(3, 5)
- ParticleEmittera.Rate = 100
- ParticleEmittera.RotSpeed = NumberRange.new(10, 10)
- ParticleEmittera.SpreadAngle = Vector2.new(360, 360)
- ParticleEmittera.VelocitySpread = 360
- ParticleEmitter1.Parent = firework
- ParticleEmitter1.Speed = NumberRange.new(65, 65)
- ParticleEmitter1.Color = ColorSequence.new(color2,color2)
- ParticleEmitter1.Enabled = false
- ParticleEmitter1.LightEmission = 1
- ParticleEmitter1.LightInfluence = 0
- ParticleEmitter1.Texture = "rbxassetid://1280736246"
- ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter1.Size = NumberSequence.new(3,3)
- ParticleEmitter1.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter1.Rate = 100
- ParticleEmitter1.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Parent = firework
- ParticleEmitter2.Speed = NumberRange.new(65, 65)
- ParticleEmitter2.Color = ColorSequence.new(color1,color1)
- ParticleEmitter2.Enabled = false
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.LightInfluence = 0
- ParticleEmitter2.Texture = "rbxassetid://1280736246"
- ParticleEmitter2.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter2.Size = NumberSequence.new(3,3)
- ParticleEmitter2.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter2.Rate = 100
- ParticleEmitter2.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- ParticleEmitter3.Parent = firework
- ParticleEmitter3.Speed = NumberRange.new(65, 65)
- ParticleEmitter3.Color = ColorSequence.new(color2,color2)
- ParticleEmitter3.Enabled = false
- ParticleEmitter3.LightEmission = 1
- ParticleEmitter3.LightInfluence = 0
- ParticleEmitter3.Texture = "rbxassetid://1280736246"
- ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter3.Size = NumberSequence.new(3,3)
- ParticleEmitter3.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter3.Rate = 100
- ParticleEmitter3.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter3.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter3.VelocitySpread = 360
- ParticleEmitter4.Parent = firework
- ParticleEmitter4.Speed = NumberRange.new(65, 65)
- ParticleEmitter4.Color = ColorSequence.new(color1,color1)
- ParticleEmitter4.Enabled = false
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.LightInfluence = 0
- ParticleEmitter4.Texture = "rbxassetid://1280736246"
- ParticleEmitter4.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter4.Size = NumberSequence.new(3,3)
- ParticleEmitter4.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter4.Rate = 100
- ParticleEmitter4.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter4.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter4.VelocitySpread = 360
- ParticleEmitter5.Parent = firework
- ParticleEmitter5.Speed = NumberRange.new(65, 65)
- ParticleEmitter5.Color = ColorSequence.new(color2,color2)
- ParticleEmitter5.Enabled = false
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.LightInfluence = 0
- ParticleEmitter5.Texture = "rbxassetid://1280736246"
- ParticleEmitter5.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter5.Size = NumberSequence.new(3,3)
- ParticleEmitter5.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter5.Rate = 100
- ParticleEmitter5.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter5.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter5.VelocitySpread = 360
- firework.CFrame = mouse.Hit
- firework.Color = color1
- firework.Size = Vector3.new(1.1, 2.613, 0.964)
- firework.Orientation = Vector3.new(varx,0,vary)
- local ParticleEmitter0 = onlyparticle:Clone()
- ParticleEmitter0.Parent = firework
- ParticleEmitter0.Speed = NumberRange.new(-10, -10)
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.LightInfluence = 0
- ParticleEmitter0.Texture = "rbxassetid://1028077058"
- ParticleEmitter0.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter0.Size = NumberSequence.new(2,2)
- ParticleEmitter0.Lifetime = NumberRange.new(0.25, 1)
- ParticleEmitter0.Rate = 25
- ParticleEmitter0.SpreadAngle = Vector2.new(10, 10)
- ParticleEmitter0.VelocitySpread = 10
- local g=Instance.new("BodyThrust",firework)
- g.Force = Vector3.new(0,600,0)
- wait(1.5)
- firework.Anchored = true
- firework.CanCollide = false
- firework.Transparency = 1
- ParticleEmitter0.Enabled = false
- wait()
- sound3:Play()
- ParticleEmittera.Enabled = true
- ParticleEmitter1.Enabled = true
- ParticleEmitter2.Enabled = true
- ParticleEmitter3.Enabled = true
- ParticleEmitter4.Enabled = true
- ParticleEmitter5.Enabled = true
- wait(.25)
- ParticleEmittera.Enabled = false
- ParticleEmitter1.Enabled = false
- ParticleEmitter2.Enabled = false
- ParticleEmitter3.Enabled = false
- ParticleEmitter4.Enabled = false
- ParticleEmitter5.Enabled = false
- wait(3)
- firework.Parent = nil
- end
- function firedoeswork()
- local varx = math.random(-15,15)
- wait()
- local vary = math.random(-15,15)
- wait()
- local ran = math.random(0,6)
- wait()
- local x = math.random(-50,50)
- wait()
- local z = math.random(-50,50)
- if ran == 0 then
- color1 = Color3.fromRGB(255,0,255) -- memo colors
- color2 = Color3.fromRGB(47,0,143)
- elseif ran == 1 then
- color1 = Color3.fromRGB(255,0,255)
- color2 = Color3.fromRGB(255,255,255)
- elseif ran == 2 then
- color1 = Color3.fromRGB(255,0,255)
- color2 = Color3.fromRGB(255,175,255)
- elseif ran == 3 then
- color1 = Color3.fromRGB(255,255,255)
- color2 = Color3.fromRGB(255,0,255)
- elseif ran == 4 then
- color1 = Color3.fromRGB(255,175,255)
- color2 = Color3.fromRGB(255,0,255)
- elseif ran == 5 then
- color1 = Color3.fromRGB(255,255,255)
- color2 = Color3.fromRGB(255,100,255)
- elseif ran == 6 then
- color1 = Color3.fromRGB(55,0,55)
- color2 = Color3.fromRGB(175,0,255)
- end
- local ParticleEmittera = onlyparticle:Clone()
- local ParticleEmitter1 = onlyparticle:Clone()
- local ParticleEmitter2 = onlyparticle:Clone()
- local ParticleEmitter3 = onlyparticle:Clone()
- local ParticleEmitter4 = onlyparticle:Clone()
- local ParticleEmitter5 = onlyparticle:Clone()
- wait()
- local SoundPitch =0.9+math.random()*.5
- wait()
- local firework = Instance.new("Part",workspace)
- local sound1 = Instance.new("Sound",firework)
- sound1.SoundId = "rbxassetid://858818415"
- sound1.Volume = 5
- sound1.Pitch = SoundPitch
- local sound2 = Instance.new("Sound",firework)
- sound2.SoundId = "rbxassetid://884087543"
- sound2.Volume = 5
- sound2.Pitch = SoundPitch
- local sound3 = Instance.new("Sound",firework)
- sound3.SoundId = "rbxassetid://858818261"
- sound3.Volume = 10
- sound3.Pitch = 0.9+math.random()*.5
- sound1:Play()
- sound2:Play()
- ParticleEmittera.Parent = firework
- ParticleEmittera.Speed = NumberRange.new(65, 65)
- ParticleEmittera.Color = ColorSequence.new(color1,color1)
- ParticleEmittera.Enabled = false
- ParticleEmittera.LightEmission = 1
- ParticleEmittera.LightInfluence = 0
- ParticleEmittera.Texture = "rbxassetid://1280736246"
- ParticleEmittera.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmittera.Size = NumberSequence.new(3,3)
- ParticleEmittera.Lifetime = NumberRange.new(3, 5)
- ParticleEmittera.Rate = 100
- ParticleEmittera.RotSpeed = NumberRange.new(10, 10)
- ParticleEmittera.SpreadAngle = Vector2.new(360, 360)
- ParticleEmittera.VelocitySpread = 360
- ParticleEmitter1.Parent = firework
- ParticleEmitter1.Speed = NumberRange.new(65, 65)
- ParticleEmitter1.Color = ColorSequence.new(color2,color2)
- ParticleEmitter1.Enabled = false
- ParticleEmitter1.LightEmission = 1
- ParticleEmitter1.LightInfluence = 0
- ParticleEmitter1.Texture = "rbxassetid://1280736246"
- ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter1.Size = NumberSequence.new(3,3)
- ParticleEmitter1.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter1.Rate = 100
- ParticleEmitter1.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Parent = firework
- ParticleEmitter2.Speed = NumberRange.new(65, 65)
- ParticleEmitter2.Color = ColorSequence.new(color1,color1)
- ParticleEmitter2.Enabled = false
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.LightInfluence = 0
- ParticleEmitter2.Texture = "rbxassetid://1280736246"
- ParticleEmitter2.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter2.Size = NumberSequence.new(3,3)
- ParticleEmitter2.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter2.Rate = 100
- ParticleEmitter2.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- ParticleEmitter3.Parent = firework
- ParticleEmitter3.Speed = NumberRange.new(65, 65)
- ParticleEmitter3.Color = ColorSequence.new(color2,color2)
- ParticleEmitter3.Enabled = false
- ParticleEmitter3.LightEmission = 1
- ParticleEmitter3.LightInfluence = 0
- ParticleEmitter3.Texture = "rbxassetid://1280736246"
- ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter3.Size = NumberSequence.new(3,3)
- ParticleEmitter3.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter3.Rate = 100
- ParticleEmitter3.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter3.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter3.VelocitySpread = 360
- ParticleEmitter4.Parent = firework
- ParticleEmitter4.Speed = NumberRange.new(65, 65)
- ParticleEmitter4.Color = ColorSequence.new(color1,color1)
- ParticleEmitter4.Enabled = false
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.LightInfluence = 0
- ParticleEmitter4.Texture = "rbxassetid://1280736246"
- ParticleEmitter4.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter4.Size = NumberSequence.new(3,3)
- ParticleEmitter4.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter4.Rate = 100
- ParticleEmitter4.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter4.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter4.VelocitySpread = 360
- ParticleEmitter5.Parent = firework
- ParticleEmitter5.Speed = NumberRange.new(65, 65)
- ParticleEmitter5.Color = ColorSequence.new(color2,color2)
- ParticleEmitter5.Enabled = false
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.LightInfluence = 0
- ParticleEmitter5.Texture = "rbxassetid://1280736246"
- ParticleEmitter5.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter5.Size = NumberSequence.new(3,3)
- ParticleEmitter5.Lifetime = NumberRange.new(3, 5)
- ParticleEmitter5.Rate = 100
- ParticleEmitter5.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter5.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter5.VelocitySpread = 360
- --
- firework.CFrame = plr.Character.Head.CFrame + Vector3.new(x,-4,z)
- firework.Color = color1
- firework.Size = Vector3.new(1.1, 2.613, 0.964)
- firework.Orientation = Vector3.new(varx,0,vary)
- --
- local ParticleEmitter0 = onlyparticle:Clone()
- ParticleEmitter0.Parent = firework
- ParticleEmitter0.Speed = NumberRange.new(-10, -10)
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.LightInfluence = 0
- ParticleEmitter0.Texture = "rbxassetid://1028077058"
- ParticleEmitter0.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter0.Size = NumberSequence.new(2,2)
- ParticleEmitter0.Lifetime = NumberRange.new(0.25, 1)
- ParticleEmitter0.Rate = 25
- ParticleEmitter0.SpreadAngle = Vector2.new(10, 10)
- ParticleEmitter0.VelocitySpread = 10
- local g=Instance.new("BodyThrust",firework)
- g.Force = Vector3.new(0,600,0)
- wait(1.5)
- firework.Anchored = true
- firework.CanCollide = false
- firework.Transparency = 1
- ParticleEmitter0.Enabled = false
- wait()
- sound3:Play()
- ParticleEmittera.Enabled = true
- ParticleEmitter1.Enabled = true
- ParticleEmitter2.Enabled = true
- ParticleEmitter3.Enabled = true
- ParticleEmitter4.Enabled = true
- ParticleEmitter5.Enabled = true
- wait(.25)
- ParticleEmittera.Enabled = false
- ParticleEmitter1.Enabled = false
- ParticleEmitter2.Enabled = false
- ParticleEmitter3.Enabled = false
- ParticleEmitter4.Enabled = false
- ParticleEmitter5.Enabled = false
- wait(3)
- firework.Parent = nil
- end
- function keygui()
- -- Farewell infortality
- -- Revamp by ImFrostic, Version 2.81
- -- Objects
- local DraggoGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local PitchBox = Instance.new("TextBox")
- local IDLabel = Instance.new("TextLabel")
- local PitchLabel = Instance.new("TextLabel")
- local IDBox = Instance.new("TextBox")
- local VolumeLabel = Instance.new("TextLabel")
- local VolumeBox = Instance.new("TextBox")
- local VisualiserLabel = Instance.new("TextLabel")
- local VisualiserBox = Instance.new("TextButton")
- local ApplyButton = Instance.new("TextButton")
- local CancelButton = Instance.new("TextButton")
- local ChangeButton = Instance.new("TextButton")
- -- Properties
- DraggoGui.Name = "DraggoGui"
- DraggoGui.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = DraggoGui
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.new(0.988235, 0.631373, 1)
- Frame.BackgroundTransparency = 0.30000001192093
- Frame.BorderColor3 = Color3.new(0.992157, 0.827451, 1)
- Frame.BorderSizePixel = 30
- Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame.Size = UDim2.new(0.899999976, 0, 0.800000012, 0)
- PitchBox.Name = "PitchBox"
- PitchBox.Parent = Frame
- PitchBox.BackgroundColor3 = Color3.new(1, 1, 1)
- PitchBox.BackgroundTransparency = 0.20000000298023
- PitchBox.BorderSizePixel = 0
- PitchBox.Position = UDim2.new(0.300000012, 0, 0.209999993, 0)
- PitchBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
- PitchBox.Font = Enum.Font.SourceSans
- PitchBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
- PitchBox.PlaceholderText = "Enter A Pitch"
- PitchBox.Text = ""
- PitchBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
- PitchBox.TextScaled = true
- PitchBox.TextSize = 14
- PitchBox.TextWrapped = true
- IDLabel.Name = "IDLabel"
- IDLabel.Parent = Frame
- IDLabel.AnchorPoint = Vector2.new(1, 0)
- IDLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- IDLabel.BackgroundTransparency = 1
- IDLabel.BorderSizePixel = 0
- IDLabel.Position = UDim2.new(0.280000001, 0, 0.0399999991, 0)
- IDLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- IDLabel.Font = Enum.Font.SourceSans
- IDLabel.Text = "Song Id:"
- IDLabel.TextColor3 = Color3.new(1, 1, 1)
- IDLabel.TextScaled = true
- IDLabel.TextSize = 14
- IDLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
- IDLabel.TextStrokeTransparency = 0
- IDLabel.TextWrapped = true
- PitchLabel.Name = "PitchLabel"
- PitchLabel.Parent = Frame
- PitchLabel.AnchorPoint = Vector2.new(1, 0)
- PitchLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- PitchLabel.BackgroundTransparency = 1
- PitchLabel.BorderSizePixel = 0
- PitchLabel.Position = UDim2.new(0.280000001, 0, 0.209999993, 0)
- PitchLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- PitchLabel.Font = Enum.Font.SourceSans
- PitchLabel.Text = "Pitch:"
- PitchLabel.TextColor3 = Color3.new(1, 1, 1)
- PitchLabel.TextScaled = true
- PitchLabel.TextSize = 14
- PitchLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
- PitchLabel.TextStrokeTransparency = 0
- PitchLabel.TextWrapped = true
- IDBox.Name = "IDBox"
- IDBox.Parent = Frame
- IDBox.BackgroundColor3 = Color3.new(1, 1, 1)
- IDBox.BackgroundTransparency = 0.20000000298023
- IDBox.BorderSizePixel = 0
- IDBox.Position = UDim2.new(0.300000012, 0, 0.0399999991, 0)
- IDBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
- IDBox.Font = Enum.Font.SourceSans
- IDBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
- IDBox.PlaceholderText = "Enter An ID"
- IDBox.Text = ""
- IDBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
- IDBox.TextScaled = true
- IDBox.TextSize = 14
- IDBox.TextWrapped = true
- VolumeLabel.Name = "VolumeLabel"
- VolumeLabel.Parent = Frame
- VolumeLabel.AnchorPoint = Vector2.new(1, 0)
- VolumeLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- VolumeLabel.BackgroundTransparency = 1
- VolumeLabel.BorderSizePixel = 0
- VolumeLabel.Position = UDim2.new(0.280000001, 0, 0.379999995, 0)
- VolumeLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- VolumeLabel.Font = Enum.Font.SourceSans
- VolumeLabel.Text = "Volume:"
- VolumeLabel.TextColor3 = Color3.new(1, 1, 1)
- VolumeLabel.TextScaled = true
- VolumeLabel.TextSize = 14
- VolumeLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
- VolumeLabel.TextStrokeTransparency = 0
- VolumeLabel.TextWrapped = true
- VolumeBox.Name = "VolumeBox"
- VolumeBox.Parent = Frame
- VolumeBox.BackgroundColor3 = Color3.new(1, 1, 1)
- VolumeBox.BackgroundTransparency = 0.20000000298023
- VolumeBox.BorderSizePixel = 0
- VolumeBox.Position = UDim2.new(0.300000012, 0, 0.379999995, 0)
- VolumeBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
- VolumeBox.Font = Enum.Font.SourceSans
- VolumeBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
- VolumeBox.PlaceholderText = "Enter A Volume"
- VolumeBox.Text = ""
- VolumeBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
- VolumeBox.TextScaled = true
- VolumeBox.TextSize = 14
- VolumeBox.TextWrapped = true
- VisualiserLabel.Name = "VisualiserLabel"
- VisualiserLabel.Parent = Frame
- VisualiserLabel.AnchorPoint = Vector2.new(1, 0)
- VisualiserLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- VisualiserLabel.BackgroundTransparency = 1
- VisualiserLabel.BorderSizePixel = 0
- VisualiserLabel.Position = UDim2.new(0.280000001, 0, 0.550000012, 0)
- VisualiserLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- VisualiserLabel.Font = Enum.Font.SourceSans
- VisualiserLabel.Text = "Visualiser:"
- VisualiserLabel.TextColor3 = Color3.new(1, 1, 1)
- VisualiserLabel.TextScaled = true
- VisualiserLabel.TextSize = 14
- VisualiserLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
- VisualiserLabel.TextStrokeTransparency = 0
- VisualiserLabel.TextWrapped = true
- VisualiserBox.Name = "VisualiserBox"
- VisualiserBox.Parent = Frame
- VisualiserBox.BackgroundColor3 = Color3.new(1, 1, 1)
- VisualiserBox.BackgroundTransparency = 0.20000000298023
- VisualiserBox.BorderSizePixel = 0
- VisualiserBox.Position = UDim2.new(0.300000012, 0, 0.550000012, 0)
- VisualiserBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
- VisualiserBox.Font = Enum.Font.SourceSans
- VisualiserBox.Text = "Off"
- VisualiserBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
- VisualiserBox.TextScaled = true
- VisualiserBox.TextSize = 14
- VisualiserBox.TextWrapped = true
- ApplyButton.Name = "ApplyButton"
- ApplyButton.Parent = Frame
- ApplyButton.AnchorPoint = Vector2.new(0, 1)
- ApplyButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
- ApplyButton.BackgroundTransparency = 0.20000000298023
- ApplyButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
- ApplyButton.BorderSizePixel = 10
- ApplyButton.Position = UDim2.new(0.699999988, 0, 0.949999988, 0)
- ApplyButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- ApplyButton.Font = Enum.Font.SourceSans
- ApplyButton.Text = "Apply"
- ApplyButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
- ApplyButton.TextScaled = true
- ApplyButton.TextSize = 14
- ApplyButton.TextWrapped = true
- CancelButton.Name = "CancelButton"
- CancelButton.Parent = Frame
- CancelButton.AnchorPoint = Vector2.new(1, 1)
- CancelButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
- CancelButton.BackgroundTransparency = 0.20000000298023
- CancelButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
- CancelButton.BorderSizePixel = 10
- CancelButton.Position = UDim2.new(0.300000012, 0, 0.949999988, 0)
- CancelButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- CancelButton.Font = Enum.Font.SourceSans
- CancelButton.Text = "Cancel"
- CancelButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
- CancelButton.TextScaled = true
- CancelButton.TextSize = 14
- CancelButton.TextWrapped = true
- ChangeButton.Name = "ChangeButton"
- ChangeButton.Parent = Frame
- ChangeButton.AnchorPoint = Vector2.new(0.5, 1)
- ChangeButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
- ChangeButton.BackgroundTransparency = 0.20000000298023
- ChangeButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
- ChangeButton.BorderSizePixel = 10
- ChangeButton.Position = UDim2.new(0.5, 0, 0.949999988, 0)
- ChangeButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
- ChangeButton.Font = Enum.Font.SourceSans
- ChangeButton.Text = "Change"
- ChangeButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
- ChangeButton.TextScaled = true
- ChangeButton.TextSize = 14
- ChangeButton.TextWrapped = true
- -- Scripts
- wait()
- if plr.Character.Head:FindFirstChild("songs") then
- if id ~= nil then
- IDBox.Text = id
- PitchBox.Text = pitch
- VolumeBox.Text = volume
- else
- IDBox.Text = 0
- PitchBox.Text = 1
- VolumeBox.Text = 10
- end
- if vis == false then
- VisualiserBox.Text = "Off"
- else
- VisualiserBox.Text = "On"
- end
- end
- IDBox.Changed:connect(function()
- if tonumber(IDBox.Text) ~= nil then
- a = tonumber(IDBox.Text)
- end
- end)
- PitchBox.Changed:connect(function()
- if tonumber(PitchBox.Text) ~= nil then
- b = tonumber(PitchBox.Text)
- end
- end)
- VolumeBox.Changed:connect(function()
- if tonumber(VolumeBox.Text) ~= nil then
- c = tonumber(VolumeBox.Text)
- end
- end)
- VisualiserBox.MouseButton1Click:connect(function()
- if VisualiserBox.Text == "On" then
- VisualiserBox.Text = "Off"
- else
- VisualiserBox.Text = "On"
- end
- end)
- CancelButton.MouseButton1Click:connect(function()
- DraggoGui.Parent = nil
- end)
- ApplyButton.MouseButton1Click:connect(function()
- if a ~= id then
- if plr.Character.Head:FindFirstChild("songs") then
- plr.Character.Head:FindFirstChild("songs"):Destroy()
- end
- sounde = Instance.new("Sound",plr.Character.Head)
- sounde.SoundId = "rbxassetid://"..a
- sounde.Looped = true
- sounde.Name = "songs"
- sounde:Play()
- id=a
- end
- pitch = b
- sounde.Pitch = b
- sounde.Looped = true
- sounde:Play()
- sounde.Volume = c
- volume = c
- sounde.Looped = true
- sounde:Play()
- if VisualiserBox.Text == "On" then
- vis = true
- oldRange = 10
- oldBright = 1
- cube.Transparency = 0
- plr.Character.Torso:FindFirstChild("PointLight").Range = 10
- else
- vis = false
- oldBright = 0
- oldRange = 0
- plr.Character.Torso:FindFirstChild("PointLight").Range = 0
- cube.Transparency = 1
- end
- wait()
- DraggoGui.Parent = nil
- end)
- ChangeButton.MouseButton1Click:connect(function()
- if a ~= id then
- sounde = plr.Character.Head:FindFirstChild("songs")
- sounde.SoundId = "rbxassetid://"..a
- id=a
- end
- pitch = b
- sounde.Pitch = b
- sounde.Volume = c
- volume = c
- if VisualiserBox.Text == "On" then
- vis = true
- oldRange = 10
- oldBright = 1
- cube.Transparency = 0
- plr.Character.Torso:FindFirstChild("PointLight").Range = 10
- else
- vis = false
- oldBright = 0
- oldRange = 0
- plr.Character.Torso:FindFirstChild("PointLight").Range = 0
- cube.Transparency = 1
- end
- wait()
- DraggoGui.Parent = nil
- end)
- end
- function lightning()
- local mas = workspace
- local Part0 = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- local Part2 = Instance.new("Part")
- local PointLight3 = Instance.new("PointLight")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- local Part11 = Instance.new("Part")
- local Part12 = Instance.new("Part")
- local Part13 = Instance.new("Part")
- local Part14 = Instance.new("Part")
- local Part15 = Instance.new("Part")
- local hitbox = Instance.new("Part")
- local lightnings = Instance.new("Sound")
- lightnings.SoundId = "rbxassetid://2013090599"
- lightnings.Volume = 10
- lightnings.Parent = Part2
- lightnings.EmitterSize = 20
- lightnings.TimePosition = 0.67
- Part2.Name = "HitPart"
- Part2.Parent = mas
- Part2.CFrame = mouse.Hit + Vector3.new(0,2,0)
- Part2.Size = Vector3.new(1,1,1)
- Part2.Transparency = 1
- Part2.Anchored = false
- Part2.CanCollide = true
- wait()
- Part2.Size = Vector3.new(1, 1, 1)
- Part2.Anchored = false
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.CanCollide = true
- Part2.TopSurface = Enum.SurfaceType.Smooth
- toucher = false
- Part2.Touched:connect(function(part)
- if toucher == false then
- wait()
- toucher = true
- Mat = part.Material
- Color = part.Color
- return
- else return
- end
- end)
- repeat wait() until toucher == true
- local Color = Color
- local Mat = Mat
- Part2.Color = Color
- Part2.Material = Mat
- Part2.Anchored = true
- Part2.CanCollide = false
- PointLight3.Parent = Part2
- PointLight3.Color = Color3.new(177/255, 167/255, 1)
- PointLight3.Range = 0
- PointLight3.Brightness = 10
- PointLight3.Shadows = true
- hitbox.Anchored = true
- hitbox.CanCollide = false
- hitbox.Transparency = 1
- hitbox.CFrame = Part2.CFrame
- hitbox.Size = Vector3.new(20,20,20)
- Part0.Name = "Cloud"
- Part0.Parent = mas
- Part0.Orientation = Vector3.new(0, -180, 0)
- Part0.Position = Part2.Position + Vector3.new(-0.410007, 22.5200005, 0.819999993)
- Part0.Rotation = Vector3.new(180, 0, -180)
- Part0.Color = Color3.new(0.443137, 0, 0.443137)
- Part0.Size = Vector3.new(12, 1, 4)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Pastel violet")
- Part0.CanCollide = false
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Pastel violet")
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=1095708"
- SpecialMesh1.Scale = Vector3.new(12, 12, 12)
- SpecialMesh1.VertexColor = Vector3.new(177/255, 167/255, 1)
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- Part4.Name = "GroundPart1"
- Part4.Parent = mas
- Part4.Orientation = Vector3.new(-35.8499985, -88.7999954, -2.90999985)
- Part4.Position = Part2.Position + Vector3.new(3.124686, 0.121252999, 0.368005991)
- Part4.Rotation = Vector3.new(-88.3399963, -54.1299973, -90.8600006)
- Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part4.Size = Vector3.new(4.4000001, 2.70000005, 3)
- Part4.CanCollide = false
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Dark stone grey")
- Part4.brickColor = BrickColor.new("Dark stone grey")
- Part5.Name = "GroundPart2"
- Part5.CanCollide = false
- Part5.Parent = mas
- Part5.Orientation = Vector3.new(-22, 22.5, 0)
- Part5.Position = Part2.Position + Vector3.new(-1.03094804, 0.235992998, -2.6170969)
- Part5.Rotation = Vector3.new(-23.6199989, 20.7799988, 8.81999969)
- Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part5.Size = Vector3.new(4.4000001, 2.0999999, 3.4000001)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Dark stone grey")
- Part5.brickColor = BrickColor.new("Dark stone grey")
- Part6.Name = "GroundPart3"
- Part6.CanCollide = false
- Part6.Parent = mas
- Part6.Orientation = Vector3.new(-29.9399986, 141.110001, -2.90999985)
- Part6.Position = Part2.Position + Vector3.new(-1.60657203, 0.198379993, 2.1961031)
- Part6.Rotation = Vector3.new(-143.5, 32.9599991, 155.169998)
- Part6.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part6.Size = Vector3.new(4.4000001, 2.70000005, 3)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Dark stone grey")
- Part6.brickColor = BrickColor.new("Dark stone grey")
- Part7.Name = "LightningPart1"
- Part7.Parent = mas
- Part7.Orientation = Vector3.new(0, 0, -33)
- Part7.Position = Part2.Position + Vector3.new(0.904374003, 2.56489706, 0.0350000001)
- Part7.Rotation = Vector3.new(0, 0, -33)
- Part7.Color = Color3.new(1, 0, 0.74902)
- Part7.Size = Vector3.new(0.479999065, 6.63999987, 0.449999988)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Alder")
- Part7.CanCollide = false
- Part7.Material = Enum.Material.Neon
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Alder")
- Part8.Name = "LightningPart2"
- Part8.Parent = mas
- Part8.Orientation = Vector3.new(0, 0, 34.5)
- Part8.Position = Part2.Position + Vector3.new(1.29481602, 7.56627512, -0.00499999989)
- Part8.Rotation = Vector3.new(0, 0, 34.5)
- Part8.Color = Color3.new(1, 0, 0.74902)
- Part8.Size = Vector3.new(0.479998261, 5.56999969, 0.449999988)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Alder")
- Part8.CanCollide = false
- Part8.Material = Enum.Material.Neon
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Alder")
- Part9.Name = "LightningPart3"
- Part9.Parent = mas
- Part9.Orientation = Vector3.new(0, 0, -33)
- Part9.Position = Part2.Position + Vector3.new(0.643929005, 11.5952616, 0.00499999989)
- Part9.Rotation = Vector3.new(0, 0, -33)
- Part9.Color = Color3.new(1, 0, 0.74902)
- Part9.Size = Vector3.new(0.479957253, 4.25, 0.449999988)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Alder")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.Neon
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Alder")
- Part10.Name = "LightningPart4"
- Part10.Parent = mas
- Part10.Orientation = Vector3.new(0, 0, 42.5)
- Part10.Position = Part2.Position + Vector3.new(0.115622997, 15.0268459, 0.165000007)
- Part10.Rotation = Vector3.new(0, 0, 42.5)
- Part10.Color = Color3.new(1, 0, 0.74902)
- Part10.Size = Vector3.new(0.479929507, 4.94000006, 0.449999988)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Alder")
- Part10.CanCollide = false
- Part10.Material = Enum.Material.Neon
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Alder")
- Part11.Name = "LightningPart5"
- Part11.Parent = mas
- Part11.Orientation = Vector3.new(0, 0, -23.5)
- Part11.Position = Part2.Position + Vector3.new(-0.442793995, 19.1235275, 0.165000007)
- Part11.Rotation = Vector3.new(0, 0, -23.5)
- Part11.Color = Color3.new(1, 0, 0.74902)
- Part11.Size = Vector3.new(0.479986727, 5.27999973, 0.450000018)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Alder")
- Part11.CanCollide = false
- Part11.Material = Enum.Material.Neon
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Alder")
- Part12.Name = "ThrowPart1"
- Part12.Parent = mas
- Part12.Orientation = Vector3.new(-27.9599991, 1.58999991, -15.3999996)
- Part12.Position = Part2.Position + Vector3.new(2.38952994, 0.777405024, -2.7030859)
- Part12.Rotation = Vector3.new(-27.9699993, 1.40999997, -14.6499996)
- Part12.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part12.Size = Vector3.new(1, 1, 1)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Dark stone grey")
- Part12.brickColor = BrickColor.new("Dark stone grey")
- Part13.Name = "ThrowPart2"
- Part13.Parent = mas
- Part13.Orientation = Vector3.new(-37.0699997, 27.5199986, 4.3499999)
- Part13.Position = Part2.Position + Vector3.new(-1.12156403, 2.24051309, -2.2654531)
- Part13.Rotation = Vector3.new(-40.4300003, 21.6299992, 21.789999)
- Part13.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part13.Size = Vector3.new(1, 1, 1)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Dark stone grey")
- Part13.brickColor = BrickColor.new("Dark stone grey")
- Part14.Name = "ThrowPart3"
- Part14.Parent = mas
- Part14.Orientation = Vector3.new(-38.9300003, 138, -3)
- Part14.Position = Part2.Position + Vector3.new(-1.48101795, 2.71294904, 2.48892593)
- Part14.Rotation = Vector3.new(-132.619995, 31.3699989, 147.509995)
- Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part14.Size = Vector3.new(1, 1, 1)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Dark stone grey")
- Part14.brickColor = BrickColor.new("Dark stone grey")
- Part15.Name = "ThrowPart4"
- Part15.Parent = mas
- Part15.Orientation = Vector3.new(-31.6399994, -131.300003, -1.03999996)
- Part15.Position = Part2.Position + Vector3.new(1.56515002, 0.695551991, 3.52154303)
- Part15.Rotation = Vector3.new(-136.959991, -39.7599983, -150.190002)
- Part15.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part15.Size = Vector3.new(1, 1, 1)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Dark stone grey")
- Part15.brickColor = BrickColor.new("Dark stone grey")
- Part12.Velocity = Vector3.new(20, 50, -20)
- Part13.Velocity = Vector3.new(-10, 50, -30)
- Part14.Velocity = Vector3.new(-15, 50, 25)
- Part15.Velocity = Vector3.new(15, 50, 35)
- Part12.Anchored = true
- Part13.Anchored = true
- Part14.Anchored = true
- Part15.Anchored = true
- Part0.Transparency = 1
- Part2.Transparency = 1
- Part4.Transparency = 1
- Part5.Transparency = 1
- Part6.Transparency = 1
- Part7.Transparency = 1
- Part8.Transparency = 1
- Part9.Transparency = 1
- Part10.Transparency = 1
- Part11.Transparency = 1
- Part12.Transparency = 1
- Part13.Transparency = 1
- Part14.Transparency = 1
- Part15.Transparency = 1
- Part4.Color = Color
- Part5.Color = Color
- Part6.Color = Color
- Part12.Color = Color
- Part13.Color = Color
- Part14.Color = Color
- Part15.Color = Color
- Part4.Material = Mat
- Part5.Material = Mat
- Part6.Material = Mat
- Part12.Material = Mat
- Part13.Material = Mat
- Part14.Material = Mat
- Part15.Material = Mat
- PointLight3.Range = 0
- for i=1,50 do
- Part0.Transparency = Part0.Transparency - 0.02
- wait(.025)
- end
- Part11.Transparency = 0
- wait()
- Part10.Transparency = 0
- wait()
- Part9.Transparency = 0
- wait()
- Part8.Transparency = 0
- wait()
- Part7.Transparency = 0
- PointLight3.Range = 18
- Part4.Transparency = 0
- -- sound play
- Part5.Transparency = 0
- Part6.Transparency = 0
- lightnings:Resume()
- e = Instance.new("Explosion",workspace)
- e.Visible = false
- e.Position = Part2.Position
- e.BlastRadius = 20
- e.BlastPressure = math.huge
- local nummie = 0
- local antispam = false
- hitbox.Touched:connect(function(Part)
- if Part.Name == "Right Leg" or Part.Name == "Left Leg" or Part.Name == "Right Arm" or Part.Name == "Left Arm" or Part.Name == "Head" or Part.Name == "Torso" then
- if antispam == false and nummie <= 50 then
- antispam = true
- nummie = nummie+1
- part.Parent:BreakJoints()
- wait()
- antispam = false
- end
- end
- end)
- wait()
- Part12.Transparency = 0
- Part13.Transparency = 0
- Part14.Transparency = 0
- Part15.Transparency = 0
- Part12.Anchored = false
- Part13.Anchored = false
- Part14.Anchored = false
- Part15.Anchored = false
- wait(.2)
- Part11.Transparency = 1
- wait()
- Part10.Transparency = 1
- wait()
- Part9.Transparency = 1
- wait()
- Part8.Transparency = 1
- wait()
- Part7.Transparency = 1
- PointLight3.Range = 0
- wait(2.5)
- for i=1,50 do
- Part0.Transparency = Part0.Transparency + 0.02
- wait(.025)
- end
- wait(1)
- Part0.Parent = nil
- wait()
- Part4.Parent = nil
- wait()
- Part5.Parent = nil
- wait()
- Part6.Parent = nil
- wait()
- Part7.Parent = nil
- wait()
- Part8.Parent = nil
- wait()
- Part9.Parent = nil
- wait()
- Part10.Parent = nil
- wait()
- Part11.Parent = nil
- wait()
- Part12.Parent = nil
- wait()
- Part13.Parent = nil
- wait()
- Part14.Parent = nil
- wait()
- Part15.Parent = nil
- wait(3)
- Part2.Parent = nil
- end
- local p = game.Players.LocalPlayer
- local lol5 = Instance.new("Sound",p.Character.Head)
- lol5.Name = "Fire"
- lol5.SoundId = "http://www.roblox.com/asset?id=257001241"
- lol5.Pitch = 1.3
- lol5.Volume = 5
- lol5.TimePosition = 6.6662961134570650756
- lol6 = Instance.new("Sound",p.Character.Head)
- lol6.Name = "Reload"
- lol6.SoundId = "http://www.roblox.com/asset?id=166032807"
- lol6.Pitch = 1.8
- lol6.Volume = 0
- local lol7 = Instance.new("Sound",p.Character.Head)
- lol7.Name = "HitFade"
- lol7.Pitch = .6
- lol7.Volume = 10
- lol7.SoundId = "http://www.roblox.com/asset?id=163570653"
- -----------------
- --| Constants |--
- -----------------
- local SHOT_SPEED = 150
- local SHOT_TIME = 5
- local NOZZLE_OFFSET = Vector3.new(0, -1.6, -2)
- -----------------
- --| Variables |--
- -----------------
- plr = game.Players.LocalPlayer
- local PlayersService = game:GetService('Players')
- local DebrisService = game:GetService('Debris')
- Handle = plr.Character.Head
- local FireSound = Handle:WaitForChild('Fire')
- local ReloadSound = Handle:WaitForChild('Reload')
- local HitFadeSound = Handle:WaitForChild('HitFade')
- local Character = plr.Character
- local Humanoid = plr.Character.Humanoid
- local Player = plr
- local BaseShot = nil
- PointLight = Instance.new("PointLight")
- PointLight.Color = Color3.fromRGB(125,0,255)
- PointLight.Range = 15
- PointLight.Brightness = 10
- -----------------
- --| Functions |--
- -----------------
- -- Returns a character ancestor and its Humanoid, or nil
- local function FindCharacterAncestor(subject)
- if subject and subject ~= workspace then
- local humanoid = subject:FindFirstChild('Humanoid')
- if humanoid then
- return subject, humanoid
- else
- return FindCharacterAncestor(subject.Parent)
- end
- end
- return nil
- end
- -- Removes any old creator tags and applies new ones to the specified target
- local function ApplyTags(target)
- while target:FindFirstChild('creator') do
- target.creator:Destroy()
- end
- local creatorTag = Instance.new('ObjectValue')
- creatorTag.Value = Player
- creatorTag.Name = 'creator' --NOTE: Must be called 'creator' for website stats
- local iconTag = Instance.new('StringValue')
- iconTag.Name = 'icon'
- iconTag.Parent = creatorTag
- creatorTag.Parent = target
- DebrisService:AddItem(creatorTag, 4)
- end
- -- Returns all objects under instance with Transparency
- local function GetTransparentsRecursive(instance, partsTable)
- local partsTable = partsTable or {}
- for _, child in pairs(instance:GetChildren()) do
- if child:IsA('BasePart') or child:IsA('Decal') then
- table.insert(partsTable, child)
- end
- GetTransparentsRecursive(child, partsTable)
- end
- return partsTable
- end
- local function SelectionBoxify(instance)
- local selectionBox = Instance.new('SelectionBox')
- selectionBox.Adornee = instance
- selectionBox.Color = BrickColor.new('Hot pink')
- selectionBox.Parent = instance
- return selectionBox
- end
- local function Light(instance)
- local light = PointLight:Clone()
- light.Range = light.Range + 2
- light.Parent = instance
- end
- local function FadeOutObjects(objectsWithTransparency, fadeIncrement)
- repeat
- local lastObject = nil
- for _, object in pairs(objectsWithTransparency) do
- object.Transparency = object.Transparency + fadeIncrement
- lastObject = object
- end
- wait()
- until lastObject.Transparency >= 1 or not lastObject
- end
- local function Dematerialize(character, humanoid, firstPart)
- humanoid.WalkSpeed = 0
- local parts = {}
- for _, child in pairs(character:GetChildren()) do
- if child:IsA('BasePart') then
- child.Anchored = true
- table.insert(parts, child)
- elseif child:IsA('LocalScript') or child:IsA('Script') then
- child:Destroy()
- end
- end
- local selectionBoxes = {}
- local firstSelectionBox = SelectionBoxify(firstPart)
- Light(firstPart)
- wait(0.05)
- for _, part in pairs(parts) do
- if part ~= firstPart then
- table.insert(selectionBoxes, SelectionBoxify(part))
- Light(part)
- end
- end
- local objectsWithTransparency = GetTransparentsRecursive(character)
- FadeOutObjects(objectsWithTransparency, 0.1)
- wait(0.5)
- humanoid.Health = 0
- DebrisService:AddItem(character, 2)
- local fadeIncrement = 0.05
- delay(0.2, function()
- FadeOutObjects({firstSelectionBox}, fadeIncrement)
- if character then
- character:Destroy()
- end
- end)
- ParticleEmmiter1.Enabled = false
- FadeOutObjects(selectionBoxes, fadeIncrement)
- wait(.8)
- ParticleEmmiter1:Destroy()
- end
- local function OnTouched(shot, otherPart)
- local character, humanoid = FindCharacterAncestor(otherPart)
- if character and humanoid and character ~= Character then
- ApplyTags(humanoid)
- if shot then
- local hitFadeSound = shot:FindFirstChild(HitFadeSound.Name)
- if hitFadeSound then
- hitFadeSound.Parent = humanoid.Torso
- hitFadeSound.TimePosition = 0.1
- ParticleEmmiter1 = onlyparticle:Clone()
- ParticleEmmiter1.Parent = humanoid.Torso
- ParticleEmmiter1.Speed = NumberRange.new(10, 10)
- ParticleEmmiter1.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmmiter1.LightEmission = 1
- ParticleEmmiter1.LightInfluence = 0
- ParticleEmmiter1.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmmiter1.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmmiter1.Size = NumberSequence.new(3,3)
- ParticleEmmiter1.Lifetime = NumberRange.new(0.40000000596046, 0.80000001192093)
- ParticleEmmiter1.LockedToPart = true
- ParticleEmmiter1.Rate = 250
- ParticleEmmiter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmmiter1.VelocitySpread = 360
- hitFadeSound:Play()
- end
- shot:Destroy()
- end
- Dematerialize(character, humanoid, otherPart)
- end
- end
- function keydown()
- FireSound:Play()
- FireSound.TimePosition = 6.6662961134570650756
- local gay = Instance.new("Part",workspace)
- gay.Transparency = 1
- gay.Anchored = true
- gay.CanCollide = false
- gay.CFrame = mouse.Hit
- Humanoid.TargetPoint = gay.Position
- local handleCFrame = Handle.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, Humanoid.TargetPoint)
- local laserShotClone = BaseShot:Clone()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (BaseShot.Size.Z / 2))
- laserShotClone.Transparency = 1
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- bodyVelocity.Parent = laserShotClone
- laserShotClone.Touched:connect(function(otherPart)
- OnTouched(laserShotClone, otherPart)
- end)
- DebrisService:AddItem(laserShotClone, SHOT_TIME)
- laserShotClone.Parent = plr.Character
- local ParticleEmitter0 = onlyparticle:Clone()
- ParticleEmitter0.Speed = NumberRange.new(0, 0)
- ParticleEmitter0.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.LightInfluence = 0
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter0.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter0.Size = NumberSequence.new(3,3)
- ParticleEmitter0.Lifetime = NumberRange.new(0.20000000298023, 0.40000000596046)
- ParticleEmitter0.Rate = 250
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter0.Parent = laserShotClone
- wait(0.001) -- FireSound length
- ReloadSound:Play()
- wait(0.001) -- ReloadSound length
- gay:Destroy()
- end
- --------------------
- --| Script Logic |--
- --------------------
- BaseShot = Instance.new('Part')
- BaseShot.Name = 'Effect'
- BaseShot.FormFactor = Enum.FormFactor.Custom
- BaseShot.Size = Vector3.new(0.2, 0.2, 3)
- BaseShot.CanCollide = false
- BaseShot.Color = Color3.fromRGB(255,125,255)
- BaseShot.Transparency = 1
- BaseShot.Material = "Neon"
- Light(BaseShot)
- HitFadeSound:Clone().Parent = BaseShot
- mouse = plr:GetMouse()
- function dropexplosion()
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local Part0 = Instance.new("Part")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local ParticleEmitter4 = onlyparticle:Clone()
- local ParticleEmitter5 = onlyparticle:Clone()
- local ParticleEmitter4a = onlyparticle:Clone()
- local ParticleEmitter5a = onlyparticle:Clone()
- local ParticleEmitter4b = onlyparticle:Clone()
- local ParticleEmitter5b = onlyparticle:Clone()
- local Part6 = Instance.new("Part")
- local ParticleEmitter7 = onlyparticle:Clone()
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- local antispam = false
- local touch = false
- local sound1 = Instance.new("Sound")
- local sound2 = Instance.new("Sound")
- local toucher = false
- Part3.Name = "HitPart"
- Part3.Transparency = 1
- Part3.Parent = workspace
- Part3.CFrame = mouse.Hit
- Part3.Orientation = Vector3.new(90, 0, 0)
- Part3.Rotation = Vector3.new(90, 0, 0)
- Part3.Size = Vector3.new(1, 1, 1)
- Part3.Anchored = false
- Part3.CanCollide = true
- Part3.Touched:connect(function(part)
- if toucher == false then
- wait()
- toucher = true
- Mat = part.Material
- Color = part.Color
- return
- else return
- end
- end)
- repeat wait() until toucher == true
- Part3.Anchored = true
- Part3.CanCollide = false
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part0.Name = "GroundPart1"
- Part0.CanCollide = false
- Part0.Parent = workspace
- Part0.Orientation = Vector3.new(43.7000008, 69.7999954, 0)
- Part0.Position = Part3.Position + Vector3.new(-4.79191017, -0.534395099, -1.54843795)
- Part0.Rotation = Vector3.new(70.1299973, 42.7299995, -61.9599991)
- Part0.Color = Color
- Part0.Size = Vector3.new(6.01000214, 5.5, 4.91000032)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.Material = Mat
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part1.Name = "GroundPart2"
- Part1.CanCollide = false
- Part1.Parent = workspace
- Part1.Orientation = Vector3.new(43.7000008, -44.4899979, 0)
- Part1.Position = Part3.Position + Vector3.new(3.2295146, -0.810723543, -3.21858191)
- Part1.Rotation = Vector3.new(53.25, -30.4399986, 34.1599998)
- Part1.Color = Color
- Part1.Size = Vector3.new(6.01000214, 5.5, 4.1099987)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.Material = Mat
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part2.Name = "GroundPart3"
- Part2.CanCollide = false
- Part2.Parent = workspace
- Part2.Orientation = Vector3.new(-35.2900009, 0, 0)
- Part2.Position = Part3.Position + Vector3.new(-0.0850079656, -0.452380568, 5.17579603)
- Part2.Rotation = Vector3.new(-35.2900009, 0, 0)
- Part2.Color = Color
- Part2.Size = Vector3.new(6.01000214, 4.99000216, 5.75000048)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Material = Mat
- Part2.TopSurface = Enum.SurfaceType.Smooth
- ParticleEmitter4.Parent = Part3
- ParticleEmitter4.Speed = NumberRange.new(90, 90)
- ParticleEmitter4.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter4.Enabled = false
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter4.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter4.Size = NumberSequence.new(20,20)
- ParticleEmitter4.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter4.Rate = 250
- ParticleEmitter4.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5.Parent = Part3
- ParticleEmitter5.Speed = NumberRange.new(90, 90)
- ParticleEmitter5.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5.Enabled = false
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.LightInfluence = 0
- ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5.Size = NumberSequence.new(20,20)
- ParticleEmitter5.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter5.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5.Rate = 250
- ParticleEmitter5.SpreadAngle = Vector2.new(50, 50)
- ParticleEmitter5.VelocitySpread = 50
- ParticleEmitter4a.Parent = Part3
- ParticleEmitter4a.Speed = NumberRange.new(90, 90)
- ParticleEmitter4a.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter4a.Enabled = false
- ParticleEmitter4a.LightEmission = 1
- ParticleEmitter4a.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter4a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter4a.Size = NumberSequence.new(20,20)
- ParticleEmitter4a.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter4a.Rate = 250
- ParticleEmitter4a.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5a.Parent = Part3
- ParticleEmitter5a.Speed = NumberRange.new(90, 90)
- ParticleEmitter5a.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5a.Enabled = false
- ParticleEmitter5a.LightEmission = 1
- ParticleEmitter5a.LightInfluence = 0
- ParticleEmitter5a.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5a.Size = NumberSequence.new(20,20)
- ParticleEmitter5a.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter5a.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5a.Rate = 250
- ParticleEmitter5a.SpreadAngle = Vector2.new(50, 50)
- ParticleEmitter5a.VelocitySpread = 50
- ParticleEmitter4b.Parent = Part3
- ParticleEmitter4b.Speed = NumberRange.new(90, 90)
- ParticleEmitter4b.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter4b.Enabled = false
- ParticleEmitter4b.LightEmission = 1
- ParticleEmitter4b.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter4b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter4b.Size = NumberSequence.new(20,20)
- ParticleEmitter4b.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter4b.Rate = 250
- ParticleEmitter4b.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5b.Parent = Part3
- ParticleEmitter5b.Speed = NumberRange.new(90, 90)
- ParticleEmitter5b.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5b.Enabled = false
- ParticleEmitter5b.LightEmission = 1
- ParticleEmitter5b.LightInfluence = 0
- ParticleEmitter5b.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5b.Size = NumberSequence.new(20,20)
- ParticleEmitter5b.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter5b.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5b.Rate = 250
- ParticleEmitter5b.SpreadAngle = Vector2.new(50, 50)
- ParticleEmitter5b.VelocitySpread = 50
- sound1.Volume = 10
- sound1.Parent = Part3
- sound1.SoundId = "rbxassetid://483458132"
- sound1.TimePosition = 0.35
- sound2.Volume = 10
- sound2.Parent = Part3
- sound2.SoundId = "rbxassetid://1925661723"
- Part6.Name = "FallPart"
- Part6.Parent = workspace
- Part6.Position = Part3.Position + Vector3.new(0, 73.1500092, 0)
- Part6.Color = Color3.fromRGB(180, 128, 255)
- Part6.Size = Vector3.new(1, 1, 1)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Alder")
- Part6.Material = Enum.Material.Neon
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Alder")
- ParticleEmitter7.Parent = Part6
- ParticleEmitter7.Speed = NumberRange.new(20, 20)
- ParticleEmitter7.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter7.LightEmission = 1
- ParticleEmitter7.Enabled = false
- ParticleEmitter7.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter7.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter7.Size = NumberSequence.new(3,3)
- ParticleEmitter7.Lifetime = NumberRange.new(0.80000001192093, 1.3999999761581)
- ParticleEmitter7.Rate = 250
- ParticleEmitter7.SpreadAngle = Vector2.new(50, 50)
- ParticleEmitter7.VelocitySpread = 50
- Part8.Name = "ThrowPart1"
- Part8.Parent = workspace
- Part8.Orientation = Vector3.new(43.7000008, 69.7999954, 0)
- Part8.Position = Part3.Position + Vector3.new(-9.69961834, 9.33336163, -2.60139155)
- Part8.Rotation = Vector3.new(70.1299973, 42.7299995, -61.9599991)
- Part8.Color = Color
- Part8.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.Material = Mat
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part9.Name = "ThrowPart2"
- Part9.Parent = workspace
- Part9.Orientation = Vector3.new(43.7000008, -45.1800003, 0)
- Part9.Position = Part3.Position + Vector3.new(4.32038021, 9.33336163, -5.15139008)
- Part9.Rotation = Vector3.new(53.579998, -30.8499985, 34.7999992)
- Part9.Color = Color
- Part9.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.Material = Mat
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part10.Name = "ThrowPart3"
- Part10.Parent = workspace
- Part10.Orientation = Vector3.new(43.7000008, -179, 0)
- Part10.Position = Part3.Position + Vector3.new(-0.229619771, 9.33336163, 7.62861347)
- Part10.Rotation = Vector3.new(136.300003, -0.729999959, 179.309998)
- Part10.Color = Color
- Part10.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.Material = Mat
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part0.Anchored = true
- Part1.Anchored = true
- Part2.Anchored = true
- Part3.Anchored = true
- Part6.Anchored = false
- Part8.Anchored = true
- Part9.Anchored = true
- Part10.Anchored = true
- Part0.Transparency = 1
- Part1.Transparency = 1
- Part2.Transparency = 1
- Part3.Transparency = 1
- Part6.Transparency = 0
- Part8.Transparency = 1
- Part9.Transparency = 1
- Part10.Transparency = 1
- Part8.Velocity = Vector3.new(-90, 100, -20)
- Part9.Velocity = Vector3.new(40, 100, -50)
- Part10.Velocity = Vector3.new(-10, 100, 80)
- Part8.CanCollide = false
- Part9.CanCollide = false
- Part10.CanCollide = false
- ParticleEmitter7.Enabled = true
- Part6.Touched:connect(function(touche)
- touch = true
- end)
- repeat wait() until touch == true
- ParticleEmitter5.Enabled = true
- ParticleEmitter4.Enabled = true
- ParticleEmitter5a.Enabled = true
- ParticleEmitter4a.Enabled = true
- ParticleEmitter5b.Enabled = true
- ParticleEmitter4b.Enabled = true
- Part0.Transparency = 0
- Part1.Transparency = 0
- Part2.Transparency = 0
- --sound--
- Part6.Parent = nil
- local e = Instance.new("Explosion",plr.Character)
- e.Visible = false
- e.Position = Part3.Position
- e.BlastRadius = 45
- e.BlastPressure = math.huge
- sound2:Play()
- sound1:Play()
- wait()
- Part8.Transparency = 0
- Part9.Transparency = 0
- Part10.Transparency = 0
- Part8.Anchored = false
- Part9.Anchored = false
- Part10.Anchored = false
- wait(.5)
- ParticleEmitter5.Enabled = false
- ParticleEmitter4.Enabled = false
- ParticleEmitter5a.Enabled = false
- ParticleEmitter4a.Enabled = false
- ParticleEmitter5b.Enabled = false
- ParticleEmitter4b.Enabled = false
- wait(2.5)
- Part0.Parent = nil
- wait()
- Part1.Parent = nil
- wait()
- Part2.Parent = nil
- wait()
- Part6.Parent = nil
- wait()
- Part8.Parent = nil
- wait()
- Part9.Parent = nil
- wait()
- Part10.Parent = nil
- wait(5)
- Part3.Parent = nil
- end
- local p = game.Players.LocalPlayer
- local lol5a = Instance.new("Sound",p.Character.Head)
- lol5a.Name = "Fire"
- lol5a.SoundId = "http://www.roblox.com/asset?id=257001241"
- lol5a.Pitch = 1.3
- lol5a.Volume = 5
- lol5a.TimePosition = 6.6662961134570650756
- lol6a = Instance.new("Sound",p.Character.Head)
- lol6a.Name = "Reload"
- lol6a.SoundId = "http://www.roblox.com/asset?id=166032807"
- lol6a.Pitch = 1.8
- lol6a.Volume = 0
- local lol7a = Instance.new("Sound",p.Character.Head)
- lol7a.Name = "HitFade"
- lol7a.Pitch = .6
- lol7a.Volume = 10
- lol7a.SoundId = "http://www.roblox.com/asset?id=163570653"
- -----------------
- --| Constants |--
- -----------------
- local SHOT_SPEEDa = 250
- local SHOT_TIMEa = 5
- local NOZZLE_OFFSETa = Vector3.new(0, 50, -2)
- -----------------
- --| Variables |--
- -----------------
- plr = game.Players.LocalPlayer
- local PlayersService = game:GetService('Players')
- local DebrisService = game:GetService('Debris')
- Handle = plr.Character.Head
- local FireSounda = Handle:WaitForChild('Fire')
- local ReloadSounda = Handle:WaitForChild('Reload')
- local HitFadeSounda = Handle:WaitForChild('HitFade')
- local Charactera = plr.Character
- local Humanoida = plr.Character.Humanoid
- local Playera = plr
- local BaseShota = nil
- PointLight = Instance.new("PointLight")
- PointLight.Color = Color3.fromRGB(125,0,255)
- PointLight.Range = 15
- PointLight.Brightness = 10
- -----------------
- --| Functions |--
- -----------------
- -- Returns a character ancestor and its Humanoid, or nil
- local function Light(instance)
- local light = PointLight:Clone()
- light.Range = light.Range + 2
- light.Parent = instance
- end
- local function OnTouched2(shot)
- local mas = workspace
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local ParticleEmitter5 = onlyparticle:Clone()
- local ParticleEmitter6 = onlyparticle:Clone()
- local ParticleEmitter5a = onlyparticle:Clone()
- local ParticleEmitter6a = onlyparticle:Clone()
- local ParticleEmitter5b = onlyparticle:Clone()
- local ParticleEmitter6b = onlyparticle:Clone()
- local ParticleEmitter5c = onlyparticle:Clone()
- local ParticleEmitter6c = onlyparticle:Clone()
- local Sound1 = Instance.new("Sound")
- Part4.Name = "HitPart1"
- Part4.Parent = mas
- Part4.CFrame = shot.CFrame
- Part4.Transparency = 1
- Part4.Anchored = true
- Part4.Orientation = Vector3.new(0,0,0)
- Part4.Size = Vector3.new(1, 1, 1)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part1.Name = "ThrowPart1"
- Part1.Parent = mas
- Part1.Orientation = Vector3.new(-16.5900002, -114.529999, 3.52999997)
- Part1.Position = Part4.Position + Vector3.new(-2.75500131, 1.63510203, -1.09517145)
- Part1.Rotation = Vector3.new(-144.330002, -60.6800003, -144.429993)
- Part1.Size = Vector3.new(2.05000138, 1.30000043, 2)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Anchored = true
- Part2.Name = "ThrowPart2"
- Part2.Parent = mas
- Part2.Orientation = Vector3.new(-16.4499989, 145.669998, -12.8499994)
- Part2.Position = Part4.Position + Vector3.new(1.80499947, 1.63510203, -2.28517127)
- Part2.Rotation = Vector3.new(-160.319992, 32.7399979, 156.199997)
- Part2.Size = Vector3.new(2.05000138, 1.30000043, 2)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Anchored = true
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Name = "ThrowPart3"
- Part3.Parent = mas
- Part3.Orientation = Vector3.new(-25.75, 0, 0)
- Part3.Position = Part4.Position + Vector3.new(0.075000301, 1.63510215, 3.11482763)
- Part3.Rotation = Vector3.new(-25.75, 0, 0)
- Part3.Size = Vector3.new(2.05000138, 1.30000043, 2)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Anchored = true
- Sound1.SoundId = "rbxassetid://1925661723"
- Sound1.Volume = 10
- Sound1.Pitch = 1.2
- Sound1.Parent = Part4
- ParticleEmitter5.Parent = Part4
- ParticleEmitter5.Speed = NumberRange.new(70, 70)
- ParticleEmitter5.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5.Enabled = false
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.LightInfluence = 0
- ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5.Size = NumberSequence.new(7,7)
- ParticleEmitter5.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5.Rate = 250
- ParticleEmitter5.SpreadAngle = Vector2.new(30, 30)
- ParticleEmitter5.VelocitySpread = 30
- ParticleEmitter6.Parent = Part4
- ParticleEmitter6.Speed = NumberRange.new(90, 90)
- ParticleEmitter6.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter6.Enabled = false
- ParticleEmitter6.LightEmission = 1
- ParticleEmitter6.LightInfluence = 0
- ParticleEmitter6.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter6.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter6.Size = NumberSequence.new(10,10)
- ParticleEmitter6.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter6.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter6.Rate = 250
- ParticleEmitter6.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5a.Parent = Part4
- ParticleEmitter5a.Speed = NumberRange.new(70, 70)
- ParticleEmitter5a.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5a.Enabled = false
- ParticleEmitter5a.LightEmission = 1
- ParticleEmitter5a.LightInfluence = 0
- ParticleEmitter5a.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5a.Size = NumberSequence.new(7,7)
- ParticleEmitter5a.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5a.Rate = 250
- ParticleEmitter5a.SpreadAngle = Vector2.new(30, 30)
- ParticleEmitter5a.VelocitySpread = 30
- ParticleEmitter6a.Parent = Part4
- ParticleEmitter6a.Speed = NumberRange.new(90, 90)
- ParticleEmitter6a.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter6a.Enabled = false
- ParticleEmitter6a.LightEmission = 1
- ParticleEmitter6a.LightInfluence = 0
- ParticleEmitter6a.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter6a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter6a.Size = NumberSequence.new(10,10)
- ParticleEmitter6a.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter6a.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter6a.Rate = 250
- ParticleEmitter6a.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5b.Parent = Part4
- ParticleEmitter5b.Speed = NumberRange.new(70, 70)
- ParticleEmitter5b.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5b.Enabled = false
- ParticleEmitter5b.LightEmission = 1
- ParticleEmitter5b.LightInfluence = 0
- ParticleEmitter5b.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5b.Size = NumberSequence.new(7,7)
- ParticleEmitter5b.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5b.Rate = 250
- ParticleEmitter5b.SpreadAngle = Vector2.new(30, 30)
- ParticleEmitter5b.VelocitySpread = 30
- ParticleEmitter6b.Parent = Part4
- ParticleEmitter6b.Speed = NumberRange.new(90, 90)
- ParticleEmitter6b.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter6b.Enabled = false
- ParticleEmitter6b.LightEmission = 1
- ParticleEmitter6b.LightInfluence = 0
- ParticleEmitter6b.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter6b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter6b.Size = NumberSequence.new(10,10)
- ParticleEmitter6b.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter6b.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter6b.Rate = 250
- ParticleEmitter6b.SpreadAngle = Vector2.new(0, 180)
- ParticleEmitter5c.Parent = Part4
- ParticleEmitter5c.Speed = NumberRange.new(70, 70)
- ParticleEmitter5c.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter5c.Enabled = false
- ParticleEmitter5c.LightEmission = 1
- ParticleEmitter5c.LightInfluence = 0
- ParticleEmitter5c.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter5c.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter5c.Size = NumberSequence.new(7,7)
- ParticleEmitter5c.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5c.Rate = 250
- ParticleEmitter5c.SpreadAngle = Vector2.new(30, 30)
- ParticleEmitter5c.VelocitySpread = 30
- ParticleEmitter6c.Parent = Part4
- ParticleEmitter6c.Speed = NumberRange.new(90, 90)
- ParticleEmitter6c.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter6c.Enabled = false
- ParticleEmitter6c.LightEmission = 1
- ParticleEmitter6c.LightInfluence = 0
- ParticleEmitter6c.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter6c.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter6c.Size = NumberSequence.new(10,10)
- ParticleEmitter6c.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter6c.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter6c.Rate = 250
- ParticleEmitter6c.SpreadAngle = Vector2.new(0, 180)
- Part1.Transparency = 0
- Part2.Transparency = 0
- Part3.Transparency = 0
- local e = Instance.new("Explosion",workspace)
- e.BlastPressure = math.huge
- e.BlastRadius = 15
- e.Position = shot.Position
- e.DestroyJointRadiusPercent = 1
- e.Visible = false
- Sound1:Play()
- wait()
- shot:Destroy()
- Part1.Anchored = false
- Part2.Anchored = false
- Part3.Anchored = false
- Part1.CanCollide = false
- Part2.CanCollide = false
- Part3.CanCollide = false
- Part1.Velocity = Vector3.new(-100, 35, -50)
- Part2.Velocity = Vector3.new(80, 35, 115)
- Part3.Velocity = Vector3.new(45, 35, 150)
- ParticleEmitter5.Enabled = true
- ParticleEmitter6.Enabled = true
- ParticleEmitter5a.Enabled = true
- ParticleEmitter6a.Enabled = true
- ParticleEmitter5b.Enabled = true
- ParticleEmitter6b.Enabled = true
- ParticleEmitter5c.Enabled = true
- ParticleEmitter6c.Enabled = true
- wait(.25)
- ParticleEmitter5.Enabled = false
- ParticleEmitter6.Enabled = false
- ParticleEmitter5a.Enabled = false
- ParticleEmitter6a.Enabled = false
- ParticleEmitter5b.Enabled = false
- ParticleEmitter6b.Enabled = false
- ParticleEmitter5c.Enabled = false
- ParticleEmitter6c.Enabled = false
- wait(4)
- Part4.Parent = nil
- end
- function keydowner()
- local gay = Instance.new("Part",workspace)
- gay.Transparency = 1
- gay.Anchored = true
- gay.CanCollide = false
- gay.CFrame = mouse.Hit
- FireSounda.TimePosition = 6.6662961134570650756
- Humanoida.TargetPoint = gay.Position
- local x = math.random(-100,100)
- local z = math.random(-100,100)
- local NOZZLE_OFFSET = Vector3.new(x, 50, z)
- local handleCFrame = gay.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, Humanoida.TargetPoint)
- local laserShotClone = BaseShot2:Clone()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (BaseShot.Size.Z / 2))
- laserShotClone.Transparency = 1
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEEDa
- bodyVelocity.Parent = laserShotClone
- laserShotClone.Touched:connect(function(otherPart)
- OnTouched2(laserShotClone)
- end)
- DebrisService:AddItem(laserShotClone, SHOT_TIMEa)
- laserShotClone.Parent = plr.Character
- local ParticleEmitter0 = onlyparticle:Clone()
- ParticleEmitter0.Speed = NumberRange.new(0, 0)
- ParticleEmitter0.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255),Color3.fromRGB(180, 128, 255))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.LightInfluence = 0
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter0.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter0.Size = NumberSequence.new(10,10)
- ParticleEmitter0.Lifetime = NumberRange.new(0.1, 0.2)
- ParticleEmitter0.Rate = 250
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter0.Parent = laserShotClone
- local kiresound = FireSounda:Clone()
- kiresound.Parent = laserShotClone
- kiresound.Pitch = 1.1
- kiresound:Play()
- wait(0.001) -- FireSound length
- ReloadSounda:Play()
- wait(0.001) -- ReloadSound length
- gay:Destroy()
- end
- --------------------
- --| Script Logic |--
- --------------------
- BaseShot2 = Instance.new('Part')
- BaseShot2.Name = 'Effect'
- BaseShot2.FormFactor = Enum.FormFactor.Custom
- BaseShot2.Size = Vector3.new(0.2, 0.2, 3)
- BaseShot2.CanCollide = false
- BaseShot2.Color = Color3.fromRGB(255,125,255)
- BaseShot2.Transparency = 0
- BaseShot2.Material = "Neon"
- Light(BaseShot2)
- HitFadeSounda:Clone().Parent = BaseShot2
- mouse = plr:GetMouse()
- function tp()
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local mas = workspace
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local de = false
- local fe = false
- Model0.Name = "BeamTele"
- Model0.Parent = mas
- Part1.Name = "HitPart"
- Part1.Parent = Model0
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.CFrame = mouse.Hit
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Orientation = Vector3.new(0,0,0)
- Part2.Name = "Ball"
- Part2.Parent = Model0
- Part2.Color = Color3.fromRGB(1, 0.258824, 0.866667)
- Part2.Position = Part1.Position
- Part2.Transparency = 0.5
- Part2.Size = Vector3.new(14, 14, 14)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Neon
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Anchored = true
- Part2.CanCollide = false
- Part2.Shape = Enum.PartType.Ball
- Part3.Name = "InnerBeam"
- Part3.Parent = Model0
- Part3.Orientation = Vector3.new(0, 0, 90)
- Part3.Position = Part1.Position + Vector3.new(-4.49965137e-06, 104.940018, 0)
- Part3.Rotation = Vector3.new(0, 0, 90)
- Part3.Color = Color3.fromRGB(145, 98, 255)
- Part3.Size = Vector3.new(209, 5, 5)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.Material = Enum.Material.Neon
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Shape = Enum.PartType.Cylinder
- Part3.Anchored = true
- Part3.CanCollide = false
- Part4.Name = "OuterBeam"
- Part4.Parent = Model0
- Part4.Orientation = Vector3.new(0, 0, 90)
- Part4.Position = Part1.Position + Vector3.new(-4.51626056e-06, 105.32, 0)
- Part4.Rotation = Vector3.new(0, 0, 90)
- Part4.Color = Color3.fromRGB(200, 175, 255)
- Part4.Transparency = 0.40000000596046
- Part4.Size = Vector3.new(210, 8, 8)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Material = Enum.Material.Neon
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Shape = Enum.PartType.Cylinder
- Part4.Anchored = true
- Part4.CanCollide = false
- Part1.Transparency = 1
- Part2.Transparency = 1
- Part3.Transparency = 1
- Part4.Transparency = 1
- local Model0a = Instance.new("Model")
- local Part1a = Instance.new("Part")
- local ParticleEmitter2 = onlyparticle:Clone()
- local Part3a = Instance.new("Part")
- local Part4a = Instance.new("Part")
- Model0a.Name = "Beam From"
- Model0a.Parent = mas
- Part1a.Name = "HeadCFPart"
- Part1a.Parent = Model0
- Part1a.CFrame = CFrame.new(0, 0.500005007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1a.Position = Vector3.new(0, 0.500005007, 0)
- Part1a.Size = Vector3.new(1, 1, 1)
- Part1a.Anchored = true
- Part1a.BottomSurface = Enum.SurfaceType.Smooth
- Part1a.CanCollide = false
- Part1a.TopSurface = Enum.SurfaceType.Smooth
- ParticleEmitter2.Parent = Part1a
- ParticleEmitter2.Speed = NumberRange.new(40, 40)
- ParticleEmitter2.Color = ColorSequence.new(Color3.fromRGB(180, 100, 255),Color3.fromRGB(180, 100, 255))
- ParticleEmitter2.Enabled = false
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.LightInfluence = 0
- ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter2.Size = NumberSequence.new(7,7)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter2.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter2.Rate = 250
- ParticleEmitter2.SpreadAngle = Vector2.new(30, 180)
- ParticleEmitter2.VelocitySpread = 30
- Part3a.Name = "InnerBeam"
- Part3a.Parent = Model0
- Part3a.Orientation = Vector3.new(0, 0, 90)
- Part3a.Position = Part1a.Position + Vector3.new(-4.49965137e-06, 104.940018, 0)
- Part3a.Rotation = Vector3.new(0, 0, 90)
- Part3a.Color = Color3.fromRGB(145, 98, 255)
- Part3a.Size = Vector3.new(209, 5, 5)
- Part3a.Anchored = true
- Part3a.BottomSurface = Enum.SurfaceType.Smooth
- Part3a.CanCollide = false
- Part3a.Material = Enum.Material.Neon
- Part3a.TopSurface = Enum.SurfaceType.Smooth
- Part3a.Shape = Enum.PartType.Cylinder
- Part4a.Name = "OuterBeam"
- Part4a.Parent = Model0
- Part4a.Orientation = Vector3.new(0, 0, 90)
- Part4a.Position = Part1a.Position + Vector3.new(-4.51626056e-06, 105.32, 0)
- Part4a.Rotation = Vector3.new(0, 0, 90)
- Part4a.Color = Color3.fromRGB(200, 175, 255)
- Part4a.Transparency = 0.40000000596046
- Part4a.Size = Vector3.new(210, 8, 8)
- Part4a.Anchored = true
- Part4a.BottomSurface = Enum.SurfaceType.Smooth
- Part4a.CanCollide = false
- Part4a.Material = Enum.Material.Neon
- Part4a.TopSurface = Enum.SurfaceType.Smooth
- Part4a.Shape = Enum.PartType.Cylinder
- Part1a.Transparency = 1
- Part3a.Transparency = 1
- Part4a.Transparency = 1
- local de = true
- local x=0
- local s = Instance.new("Sound")
- s.Volume = 10
- s.SoundId = "rbxassetid://1371567007"
- s.Pitch = 1.5
- s.Parent = Part1a
- s:Play()
- while x~=35 do
- wait(0.01)
- x=x+1
- Part1a.CFrame = plr.Character.Head.CFrame + Vector3.new(0,-4,0)
- ParticleEmitter2.Enabled = true
- end
- s:Stop()
- local d = Instance.new("Sound")
- d.Volume = 10
- d.SoundId = "rbxassetid://130972023"
- d.Pitch = 1.15
- d.Parent = Part1
- Part3a.Position = Part1a.Position + Vector3.new(-4.49965137e-06, 104.940018, 0)
- Part4a.Position = Part1a.Position + Vector3.new(-4.51626056e-06, 105.32, 0)
- Part2.Transparency = 0.5
- Part3.Transparency = 0
- Part4.Transparency = 0.4
- Part3a.Transparency = 0
- Part4a.Transparency = 0.4
- local hed = plr.Character.Head
- d:Play()
- hed.CFrame = Part1.CFrame + Vector3.new(0,5,0)
- ParticleEmitter2.Enabled = false
- local fe = true
- coroutine.resume(coroutine.create(function()
- while fe do
- wait(.01)
- Part2.Transparency = Part2.Transparency + 0.09/10
- Part3.Transparency = Part3.Transparency + 0.13/10
- Part4.Transparency = Part4.Transparency + 0.13/10
- Part3a.Transparency = Part3a.Transparency + 0.13/10
- Part4a.Transparency = Part4a.Transparency + 0.13/10
- Part2.Size = Part2.Size + Vector3.new(.95/10,.95/10,.95/10)
- Part3.Size = Part3.Size + Vector3.new(.7/10,.7/10,.7/10)
- Part4.Size = Part4.Size + Vector3.new(.7/10,.7/10,.7/10)
- Part3a.Size = Part3a.Size + Vector3.new(.7/10,.7/10,.7/10)
- Part4a.Size = Part4a.Size + Vector3.new(.7/10,.7/10,.7/10)
- end
- end))
- wait(4)
- fe = false
- Model0:Destroy()
- Model0a:Destroy()
- s:Destroy()
- d:Destroy()
- end
- function cake()
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local mas = workspace
- local Part0 = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- local ParticleEmitter2 = onlyparticle:Clone()
- local tool = Instance.new("Tool")
- local sound = Instance.new("Sound")
- tool.Parent = workspace
- tool.Name = "Cake"
- Part0.Name = "Handle"
- Part0.Parent = tool
- Part0.Size = Vector3.new(3.95300007, 2.99000001, 3.98600006)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- sound.Parent = Part0
- sound.Volume = 1.5
- sound.SoundId = "rbxassetid://317553816"
- sound.Pitch = 1+math.random()*.5
- SpecialMesh1.Parent = Part0
- SpecialMesh1.VertexColor = Vector3.new(1, 0.850000024, 1)
- SpecialMesh1.TextureId = "rbxassetid://958836523"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- ParticleEmitter2.Parent = Part0
- ParticleEmitter2.Speed = NumberRange.new(45, 45)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 0.262745, 0.929412),Color3.new(1, 0.262745, 0.929412))
- ParticleEmitter2.Enabled = true
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.LightInfluence = 0
- ParticleEmitter2.Enabled = false
- ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=1280736246"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
- ParticleEmitter2.Size = NumberSequence.new(8,8)
- ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Back
- ParticleEmitter2.Lifetime = NumberRange.new(5, 5)
- ParticleEmitter2.Rate = 250
- ParticleEmitter2.SpreadAngle = Vector2.new(0, 360)
- local ParticleEmitter3 = ParticleEmitter2:Clone()
- ParticleEmitter3.Parent = Part0
- local character = plr.Character
- local head = character:WaitForChild("Head")
- local objectSpace = CFrame.new(0, -4, -5)
- local worldSpace = head.CFrame:toWorldSpace(objectSpace)
- local part = Part0
- part.CFrame = worldSpace
- ParticleEmitter2.Enabled = true
- ParticleEmitter3.Enabled = true
- SpecialMesh1.MeshId = "rbxassetid://958836479"
- sound:Play()
- wait(.25)
- ParticleEmitter2.Enabled = false
- ParticleEmitter3.Enabled = false
- end
- function deletecakes()
- g=0
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Tool" and v.Name == "Cake" then
- wait()
- v:Destroy()
- g=g+1
- end
- end
- print("Destroyed "..g.." cakes!")
- g=0
- end
- local plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.Button1Down:connect(function()
- if plr.Character.Parent ~= workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = onlyparticle:Clone()
- particles.Parent = part
- particles.Color = ColorSequence.new(Color3.fromRGB(180, 128, 255))
- particles.Size = NumberSequence.new(3)
- particles.LightInfluence = 0
- particles.LightEmission = 1
- particles.Texture = "http://www.roblox.com/asset/?id=1280736246"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(.2,.4)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.Hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- -- if u read this u hab big fat
- toggle = false
- CV="Lapis"
- p = game.Players.LocalPlayer
- char = p.Character
- local txt = Instance.new("BillboardGui", char.WeaponModel.Head)
- txt.Adornee = char.WeaponModel.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(0, 2.5, 0)
- local text = Instance.new("TextLabel", txt)
- text.AnchorPoint = Vector2.new(0.5,0.5)
- text.TextYAlignment = "Bottom"
- text.Size = UDim2.new(5, 0, 3, 0)
- text.Position = UDim2.new(0.5,0,0.5,0)
- text.FontSize = "Size18"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Cartoon"
- text.TextStrokeColor3 = Color3.fromRGB(255,255,255)
- text.TextColor3 = Color3.fromRGB(180, 128, 255)
- text.Text = " "
- plr.Chatted:connect(function(msg)
- text.Visible = true
- text.Text = msg
- wait(9)
- if text.Text == msg then
- text.Visible = false
- text.Text = "."
- end
- end)
- function bbg()
- coroutine.resume(coroutine.create(function()
- text.Text = "The Alter Draggo Edit By Memo1332"
- wait(6)
- text.Visible = false
- text.Text = "."
- end))
- end
- bbg()
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- text.Text = " "
- elseif key == "g" then
- firework()
- elseif key == "h" then
- for i=1,20 do
- wait()
- coroutine.resume(coroutine.create(function()
- firedoeswork()
- end))
- end
- elseif key == "m" then
- if plr.PlayerGui:FindFirstChild("DraggoGui") == nil then
- keygui()
- end
- elseif key == "x" then
- coroutine.resume(coroutine.create(function()
- lightning()
- end))
- elseif key == "e" then
- coroutine.resume(coroutine.create(function()
- keydown()
- end))
- elseif key == "z" then
- coroutine.resume(coroutine.create(function()
- dropexplosion()
- end))
- elseif key == "v" then
- coroutine.resume(coroutine.create(function()
- keydowner()
- end))
- elseif key == "t" then
- coroutine.resume(coroutine.create(function()
- tp()
- end))
- elseif key == "r" then
- coroutine.resume(coroutine.create(function()
- cake()
- end))
- elseif key == "p" then
- coroutine.resume(coroutine.create(function()
- deletecakes()
- end))
- elseif key == "n" then
- coroutine.resume(coroutine.create(function()
- print(Flying)
- end))
- elseif key == "f" and toggle == false then
- Humanoid.WalkSpeed = 63
- Flying = true
- toggle = true
- elseif key == "f" and toggle == true then
- Humanoid.WalkSpeed = 16
- Flying = false
- toggle = false
- elseif key == "c" and dwn then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- end
- end)
- plr = game.Players.LocalPlayer
- pitch = 1
- volume = 10
- plr.Chatted:connect(function(msg)
- local msgg = msg:lower()
- if msgg:sub(1,6) == ";play " then
- if plr.Character.Head:FindFirstChild("songs") then
- plr.Character.Head.songs:Destroy()
- end
- local sound = Instance.new("Sound",plr.Character.Head)
- sound.Name = "songs"
- sound.SoundId = "rbxassetid://"..msgg:sub(7)
- sound.Volume = volume or 10
- sound.Pitch = pitch or 1
- sound.Looped = true
- sound:Play()
- id = msgg:sub(7)
- elseif msgg:sub(1,7) == ";pitch " then
- plr.Character.Head.songs.Pitch = msgg:sub(8)
- pitch = msgg:sub(8)
- elseif msgg:sub(1,5) == ";vol " then
- plr.Character.Head.songs.Volume = msgg:sub(6)
- volume = msgg:sub(6)
- elseif msgg == ";orb off" then
- vis = false
- oldBright = 0
- oldRange = 0
- if plr.Character.Torso:FindFirstChild("PointLight") ~= nil then
- plr.Character.Torso:FindFirstChild("PointLight").Range = 0
- cube.Transparency = 1
- end
- elseif msgg == ";orb on" then
- vis = true
- oldBright = 1
- oldRange = 10
- if plr.Character.Torso:FindFirstChild("PointLight") ~= nil then
- plr.Character.Torso:FindFirstChild("PointLight").Range = 10
- cube.Transparency = 0
- end
- elseif msgg == ";fly on" then
- Flying = true
- Humanoid.WalkSpeed = 63
- elseif msgg == ";fly off" then
- Humanoid.WalkSpeed = 16
- Flying = false
- end
- end)
- vis = false
- oldBright = 0
- light = Instance.new("PointLight",plr.Character.Torso)
- light.Brightness = 1
- light.Range = 0
- light.Color = Color3.fromRGB(255,100,255)
- oldRange = 0
- local plr = game.Players.LocalPlayer
- local Player = plr.Character
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- local rot = 0
- local blurs = {}
- cube = Instance.new("Part", Player)
- cube.Size = Vector3.new(.5, .5, .5)
- cube.Shape = "Block"
- cube.Name = "Cube"
- cube.Material = "Neon"
- cube.Anchored = true
- cube.Transparency = 1
- cube.CanCollide = false
- cube.BrickColor = BrickColor.new("Institutional Institutional white")
- oldSize = cube.Size
- game:GetService("RunService").RenderStepped:connect(function()
- rot = rot+1
- if rot == 360 then
- rot = 0
- end
- if plr.Character.Head:FindFirstChild("songs") ~= nil and vis == true then
- local song = plr.Character.Head:FindFirstChild("songs")
- light.Brightness = (oldBright + song.PlaybackLoudness/175)
- light.Range = (oldRange + song.PlaybackLoudness/125)
- cube.Size = cube.Size:lerp(oldSize + Vector3.new(song.PlaybackLoudness/250,song.PlaybackLoudness/250,song.PlaybackLoudness/250), 0.3)
- cube.Color = cube.Color:lerp(Color3.new(1,1-(song.PlaybackLoudness/750),1), 0.3)
- end
- if Flying == false then
- cube.CFrame = cube.CFrame:lerp(CFrame.new(Player.HumanoidRootPart.CFrame.p) * CFrame.new(0,2,0) * CFrame.Angles(math.rad(rot), math.rad(rot), math.rad(rot)), 0.3)
- elseif Flying == true then
- cube.CFrame = cube.CFrame:lerp(CFrame.new(Player.HumanoidRootPart.CFrame.p) * CFrame.new(0,8,0) * CFrame.Angles(math.rad(rot), math.rad(rot), math.rad(rot)), 0.3)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement