Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- 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
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(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:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(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 Sounds = {};
- 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
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[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 InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- --LoadLibrary("RbxUtility").Create
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- local WrapMaterial="SmoothPlastic"
- local WrapColor=BrickColor.new("Brown")
- local BladeMaterial='Neon'
- local HandleMaterial='Neon'
- local LightColor=BrickColor.new("Cyan")
- local HandleColor=BrickColor.new("Really black")
- local BladeColor=BrickColor.new("Institutional white")
- local BladeRefl=.3
- local AttackOrbColor=BrickColor.new("White")
- local HealOrbColor=BrickColor.new("New Yeller")
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local hed = char.Head
- local rutprt = char.HumanoidRootPart
- local torso = char.Torso
- local otheranims=false
- local armmovement=false
- char.Animate.Disabled=true
- local sitting=false
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local hitdb=false
- local Swing='Swing1'
- local RunSpeed=36
- local WlkSpeed=18
- local DashSpeed=18
- local SneakSpeed=10
- local runnin=false
- local disabled=false
- local tik=0
- local spinvalue=0
- local death=Instance.new('Sound',rutprt)
- death.Pitch=1
- death.Volume=.5
- death.SoundId='http://www.roblox.com/asset?id=170399891'
- char.Humanoid.Died:connect(function()
- death:play''
- end)
- local trailing=false
- local shootdb=false
- local idlesineinc=35
- local sneaking=false
- coroutine.wrap(function()
- for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- function Avg(a, b)
- return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
- end
- local jump=Instance.new('Sound',rutprt)
- jump.Volume=.2
- jump.Pitch=1
- jump.SoundId='http://www.roblox.com/asset?id=170588191'
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- local rutwald=Instance.new('Weld',rutprt)
- rutwald.Part0=rutprt
- rutwald.Part1=torso
- rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- local TrailModel=Instance.new("Model",char)
- TrailModel.Name="Trails"
- local Sword=Instance.new('Model',char)
- Sword.Name='BlackIronBroadSword'
- local obj1=Instance.new('Part',Sword)
- obj1.Name='Handle'
- obj1.formFactor='Custom'
- obj1.Size=Vector3.new(.0,0,0)
- obj1.BrickColor=HandleColor
- obj1.Material=HandleMaterial
- obj1.CanCollide=false
- obj1.TopSurface=10
- obj1.BottomSurface=10
- obj1.LeftSurface=10
- obj1.RightSurface=10
- obj1.FrontSurface=10
- obj1.BackSurface=10
- obj1:breakJoints()
- local objm1=Instance.new('CylinderMesh',obj1)
- local objw1=Instance.new('Weld',obj1)
- objw1.Part0=obj1
- objw1.Part1=torso
- objw1.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- obj1.Transparency = 1
- local asd=Instance.new("PointLight",hed)
- asd.Brightness=123
- asd.Shadows=false
- asd.Range=3
- asd.Color=BrickColor.new("Really black").Color
- local footstep=Instance.new('Sound',rutprt)
- footstep.Pitch=1.235
- footstep.Volume=.02
- footstep.SoundId='http://www.roblox.com/asset?id=154162195'
- local slide=Instance.new('Sound',rutprt)
- slide.Pitch=.675
- slide.Volume=.075
- slide.SoundId='http://www.roblox.com/asset?id=179650551'
- maus.Button1Down:connect(function()
- if equipped and not otheranims and not sitting and not armmovement then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 then
- otheranims=true
- anim="DashSwing"
- local dashvelocity=Instance.new("BodyVelocity",rutprt)
- dashvelocity.maxForce=Vector3.new(1/0,1/0,1/0)
- dashvelocity.Name="DashAttackVelocity"
- dashvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*(RunSpeed*1.5)+Vector3.new(0,2.5,0)
- local dashrotvelo=Instance.new("BodyAngularVelocity",rutprt)
- dashrotvelo.Name="DashAttackRotVelocity"
- dashrotvelo.maxTorque=Vector3.new(0,math.huge,0)
- dashrotvelo.angularvelocity=Vector3.new(0,40,0)
- game:service'Debris':AddItem(dashvelocity,.5)
- game:service'Debris':AddItem(dashrotvelo,.5)
- for asdasd=1,5 do
- dashvelocity.velocity=dashvelocity.velocity-((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*RunSpeed*.3
- dashrotvelo.angularvelocity=dashrotvelo.angularvelocity-Vector3.new(0,8,0)
- wait(.085)
- end
- otheranims=false
- else
- trailing=true
- armmovement=true
- swing.Pitch=math.random(85,100)*.01
- if Swing=='Swing1' then
- armanim='Swing1P1'
- wait(.35)
- swing:play''
- damaging=true
- armanim='Swing1P2'
- wait(.45)
- Swing='Swing2'
- elseif Swing=='Swing2' then
- armanim='Swing2P1'
- wait(.35)
- swing:play''
- damaging=true
- armanim='Swing2P2'
- wait(.45)
- Swing='Swing3'
- elseif Swing=='Swing3' then
- armanim='Swing3P1'
- wait(.35)
- swing:play''
- damaging=true
- armanim='Swing3P2'
- wait(.45)
- Swing='Swing1'
- end
- trailing=false
- armmovement=false
- damaging=false
- end
- end
- end)
- -------------------------------------------------------
- function CreateSound(ID, PARENT, VOLUME, PITCH)
- local NSound = nil
- coroutine.resume(coroutine.create(function()
- NSound = Instance.new("Sound", PARENT)
- NSound.Volume = VOLUME
- NSound.Pitch = PITCH
- NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
- swait()
- NSound:play()
- game:GetService("Debris"):AddItem(NSound, 10)
- end))
- return NSound
- end
- -------------------------------------------------------
- -----------------------sprint--------------------------------
- -------------------------------------------------------
- --Start Music Option--
- -------------------------------------------------------
- local Music = Instance.new("Sound",torso)
- Music.Volume = 2.5
- Music.SoundId = "rbxassetid://493537242"
- Music.Looped = true
- Music.Pitch = 1 --Pitcher
- Music:Play()
- -------------------------------------------------------
- --End Music Option--
- -------------------------------------------------------
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- function getTool()
- for _, kid in ipairs(script.Parent:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- mouse.KeyDown:connect(function (key) -- Run function
- key = string.lower(key)
- if string.byte(key) == 48 then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == 48 then
- running = false
- end
- end)
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
- wait()
- end
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
- repeat wait () until running == false
- keyConnection:disconnect()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
- wait()
- end
- end
- end)
- -------------Head---------------------------------
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- Head = Instance.new("Part", char)
- Head.Size = Vector3.new(1,1,1)
- Headmesh = Instance.new("SpecialMesh", Head)
- Headmesh.MeshId = "rbxassetid://430064078"
- Headmesh.Scale = Vector3.new(.55,.55,.55)
- Headmesh.TextureId = "rbxassetid://430064079"
- Head.Transparency = 0
- Head.CanCollide = false
- Head.Name = "plrHead"
- Head.Anchored = false
- Head.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Head"]
- Weld.Part1 = Head
- Weld.C1 = CFrame.new(0, -.3, -.4)*CFrame.Angles(0,(0),0)
- ------------Shoe---------------------------------
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- lshoe = Instance.new("Part", char)
- lshoe.Size = Vector3.new(1,1,1)
- lshoemesh = Instance.new("SpecialMesh", lshoe)
- lshoemesh.MeshId = "rbxassetid://108884514"
- lshoemesh.Scale = Vector3.new(.94,1,.8)
- lshoemesh.TextureId = "rbxassetid://126203964"
- lshoe.Transparency = 0
- lshoe.CanCollide = false
- lshoe.Name = "plrlshoe"
- lshoe.Anchored = false
- lshoe.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Left Leg"]
- Weld.Part1 = lshoe
- Weld.C1 = CFrame.new(0, .5, .2)*CFrame.Angles(0,(0),0)
- ------------Shoe---------------------------------
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- rshoe = Instance.new("Part", char)
- rshoe.Size = Vector3.new(1,1,1)
- rshoemesh = Instance.new("SpecialMesh", rshoe)
- rshoemesh.MeshId = "rbxassetid://108884514"
- rshoemesh.Scale = Vector3.new(.94,1,.8)
- rshoemesh.TextureId = "rbxassetid://126203964"
- rshoe.Transparency = 0
- rshoe.CanCollide = false
- rshoe.Name = "plrshoe"
- rshoe.Anchored = false
- rshoe.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Right Leg"]
- Weld.Part1 = rshoe
- Weld.C1 = CFrame.new(0, .5, .2)*CFrame.Angles(0,(0),0)
- --------------rFist---------------------------------
- --
- --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- --
- --rRing = Instance.new("Part", char)
- --rRing.Size = Vector3.new(.1,.1,.1)
- --rRingmesh = Instance.new("SpecialMesh", rRing)
- --rRingmesh.MeshId = "rbxassetid://539775492"
- --rRingmesh.Scale = Vector3.new(.03,.03,.03)
- --rRingmesh.TextureId = "rbxassetid://539775494"
- --rRing.Transparency = 0
- --rRing.CanCollide = false
- --rRing.Name = "plrRing"
- --rRing.Anchored = false
- --rRing.BrickColor = BrickColor.new("Really black")
- --Weld = Instance.new("Weld", char)
- --Weld.Part0 = char["Right Arm"]
- --Weld.Part1 = rRing
- --Weld.C1 = CFrame.new(.8, .2, 0)*CFrame.Angles(3.15,0,-8)
- --------------lFist---------------------------------
- --
- --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- --
- --rRing = Instance.new("Part", char)
- --rRing.Size = Vector3.new(.1,.1,.1)
- --rRingmesh = Instance.new("SpecialMesh", rRing)
- --rRingmesh.MeshId = "rbxassetid://539776108"
- --rRingmesh.Scale = Vector3.new(.03,.03,.03)
- --rRingmesh.TextureId = "rbxassetid://539776112"
- --rRing.Transparency = 0
- --rRing.CanCollide = false
- --rRing.Name = "plrRing"
- --rRing.Anchored = false
- --rRing.BrickColor = BrickColor.new("Really black")
- --Weld = Instance.new("Weld", char)
- --Weld.Part0 = char["Left Arm"]
- --Weld.Part1 = rRing
- --Weld.C1 = CFrame.new(-.8, .2, 0)*CFrame.Angles(3.15,0,8)
- -----------------------tail----------------------
- tail = Instance.new("Part", char)
- tail.Size = Vector3.new(.5,.5,.5)
- tailmesh = Instance.new("SpecialMesh", tail)
- tailmesh.MeshId = "rbxassetid://249768539"
- tailmesh.Scale = Vector3.new(.5,.5,.8)
- tailmesh.TextureId = "rbxassetid://448552687"
- tail.Transparency = 0
- tail.CanCollide = false
- tail.Name = "plrtail"
- tail.Anchored = false
- tail.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Torso"]
- Weld.Part1 = tail
- Weld.C1 = CFrame.new(0, -.8, .7)*CFrame.Angles(5,0,3.1)
- for _, a in pairs(char:children()) do
- if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
- a:Destroy()
- end
- end
- local s = Instance.new('Shirt', char)
- s.ShirtTemplate = "rbxassetid://1126067970"
- local p = Instance.new('Pants', char)
- p.PantsTemplate = "rbxassetid://782593541"
- Instance.new("ForceField",char).Visible = false
- local poo = Instance.new("IntValue",char)
- poo.Name = "haha nope"
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- Instance.new("ForceField",char).Visible = false
- --------------------Dash-----------------------
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- START=tick()
- TIME=5
- END=START+TIME
- walk=16
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- local Must = Instance.new("Sound",torso)
- Must.SoundId = "rbxassetid://273734478"
- Must.Pitch = 0.99
- Must.Volume = 3.4
- Must.Looped = false
- wait(0)
- Must:Play()
- local pie222 = Instance.new('ParticleEmitter')
- pie222.Parent = rutprt
- pie222.Color = ColorSequence.new(BrickColor.new("Cyan").Color)
- pie222.LightEmission = 1
- pie222.Size = NumberSequence.new(6,1)
- pie222.Texture = "http://www.roblox.com/asset/?id=74697410"
- pie222.Transparency = NumberSequence.new(0.3,1)
- pie222.EmissionDirection = "Top"
- pie222.Enabled = true
- pie222.Lifetime = NumberRange.new(1)
- pie222.Rotation = NumberRange.new(-320, 320)
- pie222.Rate = 300
- pie222.Speed = NumberRange.new(0)
- pie222.LockedToPart = false
- pie222.VelocitySpread = 2
- player.Character.Humanoid.WalkSpeed=400
- wait(7)
- pie222:Destroy()
- player.Character.Humanoid.WalkSpeed=18
- end
- end)
- ---------------------------------------
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 2, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "SciFi"
- text.TextStrokeColor3 = Color3.new(0,0,128)
- text.Text = "WIP Sonic"
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 1.5, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = false
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "SciFi"
- text.TextStrokeColor3 = Color3.new(128,0,0)
- text.Text = "help me."
- ------------------------------------------------------------
- plr.Chatted:connect(function(m)
- if m:lower():sub(1,3)=='/e ' then m=m:sub(4)
- if m:lower():sub(1,5)=='dance' and not otheranims and surfing then
- dnc=true
- anim='Dance'
- end
- end
- end)
- maus.KeyDown:connect(function(kei)
- if (string.byte(kei)==48 or string.byte(kei)==47) and not otheranims and not sitting and not disabled and not sneaking then
- char.Humanoid.WalkSpeed=RunSpeed
- end
- if kei=="v" and not otheranims and not sneaking and not sitting and not flying and not armmovement and not disabled and not lit then
- if (torso.Velocity*Vector3.new(1,0,1)).magnitude>=RunSpeed-2.5 then
- otheranims=true
- anim="Sliding"
- local tempvelocity=Instance.new('BodyVelocity',rutprt)
- tempvelocity.Name="TemporaryVelocity"
- tempvelocity.maxForce=Vector3.new(math.huge,0,math.huge)
- tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*RunSpeed
- coroutine.resume(coroutine.create(function()
- local totesvelocity=RunSpeed
- repeat
- if (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude<=1 then otheranims=false tempvelocity:destroy''
- elseif (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude>1 then
- totesvelocity=totesvelocity-(.5*(RunSpeed/100))
- tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*totesvelocity
- end
- wait''
- until tempvelocity.Parent==nil
- end))
- coroutine.resume(coroutine.create(function()
- repeat slide:play'' wait'1.35' until tempvelocity.Parent~=rutprt end))
- coroutine.resume(coroutine.create(function()
- repeat
- local rei=Ray.new(rleg.CFrame.p,((rleg.CFrame*CFrame.new(0,1.25,0)).p-rleg.CFrame.p).unit*-2)
- local parthit,point=Workspace:FindPartOnRay(rei)
- if parthit and point and parthit.CanCollide then
- local asdf=Instance.new('Part',Sword)
- asdf.CanCollide=false
- asdf.Anchored=true
- asdf.Name="Smokin' hawt"
- asdf.formFactor='Custom'
- asdf.Size=Vector3.new(.5,.5,.5)
- asdf.BrickColor=parthit.BrickColor
- asdf.CFrame=rleg.CFrame*CFrame.new(0,-.9,0)
- asdf.TopSurface=10
- asdf.Material='Neon'
- asdf.BottomSurface=10
- asdf.LeftSurface=10
- asdf.RightSurface=10
- asdf.FrontSurface=10
- asdf.BackSurface=10
- game:service'Debris':AddItem(asdf,1.5)
- local asdfg=Instance.new("SpecialMesh",asdf)
- asdfg.MeshType="Sphere"
- coroutine.wrap(function()
- for jkl=1,4,.15 do asdfg.Scale=Vector3.new(jkl,jkl,jkl) asdf.Transparency=asdf.Transparency+.05 asdf.CFrame=asdf.CFrame+Vector3.new(0,.05,0) wait'' end
- end)()
- end
- wait''
- until tempvelocity.Parent==nil
- end))
- end
- end
- if kei=='c' and not otheranims and not sitting and not flying and not lit and not disabled then
- if sneaking then
- sneaking=false
- char.Humanoid.WalkSpeed=WlkSpeed
- elseif not sneaking then
- char.Humanoid.WalkSpeed=SneakSpeed
- sneaking=true
- anim='Pre-Sneak'
- wait(.5)
- anim='Sneaking'
- end
- end
- if kei=='g' then
- if not armmovement and not otheranims and equipped and not sitting and not flying and not sneaking then
- trailing=false
- lit=true armmovement=true armanim='Glowing'
- light=Instance.new('Part',Sword)
- light.Name='LightOrbASD'
- light.formFactor='Custom'
- light.Size=Vector3.new(.6,.6,.6)
- light.BrickColor=LightColor
- light.Material="Neon"
- light.Transparency=.6
- light.CanCollide=false
- light.TopSurface=10
- light.BottomSurface=10
- light.LeftSurface=10
- light.RightSurface=10
- light.FrontSurface=10
- light.BackSurface=10
- light.Locked=true
- light:breakJoints()
- local lightm=Instance.new('SpecialMesh',light)
- lightm.MeshType='Sphere'
- lightw=Instance.new('Weld',light)
- lightw.Part0=light
- lightw.Part1=obj1
- lightw.C0=CFrame.new(0,5.5,0)*CFrame.Angles(0,0,0)
- lgt=Instance.new('PointLight',light)
- lgt.Brightness=123123
- lgt.Color=light.BrickColor.Color
- lgt.Shadows=true
- lgt.Range=0
- light2=Instance.new('Part',light)
- light2.Name='LightOrbASD2'
- light2.formFactor='Custom'
- light2.Size=Vector3.new(.25,.25,.25)
- light2.BrickColor=LightColor
- light2.Material="Neon"
- light2.CanCollide=false
- light2.TopSurface=10
- light2.BottomSurface=10
- light2.LeftSurface=10
- light2.RightSurface=10
- light2.FrontSurface=10
- light2.BackSurface=10
- light2.Locked=true
- light2:breakJoints()
- local lightm2=Instance.new('SpecialMesh',light2)
- lightm2.MeshType='Sphere'
- lightw2=Instance.new('Weld',light2)
- lightw2.Part0=light2
- lightw2.Part1=light
- lightw2.C0=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- end end
- if kei=='e' and not otheranims and not armmovement and not disabled and not lit and not sneaking then
- otheranims=true
- anim="PreSuperJump"
- char.Humanoid.WalkSpeed=0
- wait''
- local rang=Instance.new('Part',TrailModel)
- rang.formFactor='Custom'
- rang.Transparency=1
- rang.BrickColor=BrickColor.new("Institutional white")
- rang.Size=Vector3.new(10,10,10)
- rang.Name='rang'
- rang.Material="Neon"
- rang.TopSurface=10
- rang.BottomSurface=10
- rang.Locked=true
- rang.FrontSurface=10
- rang.LeftSurface=10
- rang.RightSurface=10
- rang.BackSurface=10
- rang.CanCollide=false
- rang.Anchored=true
- rang.CFrame=rutprt.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0)
- local rmsh=Instance.new('SpecialMesh',rang)
- rmsh.MeshId="http://www.roblox.com/asset/?id=3270017"
- rmsh.Scale=Vector3.new(2,2,1.5)
- game:service'Debris':AddItem(rang,.8)
- coroutine.wrap(function()
- for asdd=10,0,-.4 do
- rang.CFrame=rutprt.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(math.rad(90),0,0)
- rmsh.Scale=Vector3.new(asdd,asdd,1.5)
- rang.Transparency=rang.Transparency-.05 wait'0'
- end
- end)()
- wait'.8'
- char.Humanoid.WalkSpeed=WlkSpeed
- char.Humanoid.Jump=true
- anim="SuperJump"
- local aasdd=Instance.new("BodyVelocity",rutprt)
- aasdd.maxForce=Vector3.new(0,1/0,0)
- aasdd.velocity=Vector3.new(0,111,0)
- game:service'Debris':AddItem(aasdd,.175)
- wait(.5)
- otheranims=false
- end
- if kei=='w' then fldb.w=true end
- if kei=='a' then fldb.a=true end
- if kei=='s' then fldb.s=true end
- if kei=='d' then fldb.d=true end
- if kei=='x' and not otheranims and not armmovement and equipped and not disabled and not lit and not sneaking then
- if not sitting then
- char.Humanoid.WalkSpeed=0
- sitting=true
- anim='Sitting'
- elseif sitting then
- char.Humanoid.WalkSpeed=WlkSpeed
- sitting=false
- end
- end
- if kei=='m' then
- if not armmovement and not otheranims and not sitting and not tpdb and not flying and not disabled and not sneaking then
- tpdb=true
- local ray=Ray.new(rutprt.CFrame.p,((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*30)
- local p,b=workspace:FindPartOnRay(ray,char)
- if p and p.CanCollide then
- rutprt.CFrame=rutprt.CFrame*CFrame.new(0,0,-((rutprt.CFrame.p-b).magnitude))
- else
- rutprt.CFrame=rutprt.CFrame*CFrame.new(0,0,-30)
- end
- wait(0)
- tpdb=false
- end
- end
- if kei=="f" and not otheranims and not armmovement and not sitting and not lit and equipped and not sneaking and not disabled and not flying then
- otheranims=true
- trailing=true
- anim="SpinAttack"
- local spinvelocity=Instance.new("BodyAngularVelocity",rutprt)
- spinvelocity.Name="SpinAttackVelocity"
- spinvelocity.maxTorque=Vector3.new(0,math.huge,0)
- end
- if kei=='r' and not otheranims and not armmovement and not sitting and not lit and equipped and not sneaking then
- trailing=false
- runnin=false
- armmovement=true
- disabled=true
- armanim='Healing'
- char.Humanoid.WalkSpeed=0
- heal=Instance.new('Part',TrailModel)
- heal.Name='healOrbASD'
- heal.formFactor='Custom'
- heal.Size=Vector3.new(.85,.85,.85)
- heal.BrickColor=HealOrbColor
- heal.Transparency=.6
- heal.Material="Neon"
- heal.Reflectance=.5
- heal.CanCollide=false
- heal.TopSurface=10
- heal.BottomSurface=10
- heal.LeftSurface=10
- heal.RightSurface=10
- heal.FrontSurface=10
- heal.BackSurface=10
- heal.Locked=true
- heal:breakJoints()
- local healm=Instance.new('SpecialMesh',heal)
- healm.MeshType='Sphere'
- healw=Instance.new('Weld',heal)
- healw.Part0=heal
- healw.Part1=torso
- healw.C0=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- local asd=Instance.new('PointLight',heal)
- asd.Brightness=123123
- asd.Color=heal.BrickColor.Color
- asd.Shadows=true
- asd.Range=8
- local heal2=Instance.new('Part',heal)
- heal2.Name='healOrbASD2'
- heal2.formFactor='Custom'
- heal2.Size=Vector3.new(.4,.4,.4)
- heal2.BrickColor=HealOrbColor
- heal2.Material="Neon"
- heal2.CanCollide=false
- heal2.Reflectance=.5
- heal2.TopSurface=10
- heal2.BottomSurface=10
- heal2.LeftSurface=10
- heal2.RightSurface=10
- heal2.FrontSurface=10
- heal2.BackSurface=10
- heal2.Locked=true
- heal2:breakJoints()
- local healm2=Instance.new('SpecialMesh',heal2)
- healm2.MeshType='Sphere'
- healw2=Instance.new('Weld',heal2)
- healw2.Part0=heal2
- healw2.Part1=heal
- healw2.C0=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- other=Instance.new('Part',TrailModel)
- other.Name='otherOrbASD'
- other.formFactor='Custom'
- other.Size=Vector3.new(.85,.85,.85)
- other.BrickColor=HealOrbColor
- other.Material="Neon"
- other.Transparency=.6
- other.Reflectance=.5
- other.CanCollide=false
- other.TopSurface=10
- other.BottomSurface=10
- other.LeftSurface=10
- other.RightSurface=10
- other.FrontSurface=10
- other.BackSurface=10
- other.Locked=true
- other:breakJoints()
- local otherm=Instance.new('SpecialMesh',other)
- otherm.MeshType='Sphere'
- otherw=Instance.new('Weld',other)
- otherw.Part0=other
- otherw.Part1=torso
- otherw.C0=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- local asd2=Instance.new('PointLight',other)
- asd2.Brightness=123123
- asd2.Color=other.BrickColor.Color
- asd2.Shadows=true
- asd2.Range=8
- local other2=Instance.new('Part',other)
- other2.Name='otherOrbASD2'
- other2.formFactor='Custom'
- other2.Size=Vector3.new(.4,.4,.4)
- other2.BrickColor=HealOrbColor
- other2.CanCollide=false
- other2.Material="Neon"
- other2.Reflectance=.5
- other2.TopSurface=10
- other2.BottomSurface=10
- other2.LeftSurface=10
- other2.RightSurface=10
- other2.FrontSurface=10
- other2.BackSurface=10
- other2.Locked=true
- other2:breakJoints()
- local otherm2=Instance.new('SpecialMesh',other2)
- otherm2.MeshType='Sphere'
- otherw2=Instance.new('Weld',other2)
- otherw2.Part0=other2
- otherw2.Part1=other
- otherw2.C0=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- end
- if kei=='z' and not armmovement and not otheranims and not disabled and not sitting and not lit and not shootdb and not sneaking then
- armmovement=true
- shootdb=true
- armanim='Swing2P1'
- wait(.25)
- trailing=true
- armanim='Swing2P2'
- wait()
- local blast=Instance.new('Part',TrailModel)
- blast.Name='BlastOrb'
- blast.formFactor='Custom'
- blast.Size=Vector3.new(2,2,2)
- blast.BrickColor=AttackOrbColor
- blast.Transparency=.6
- blast.CanCollide=false
- blast.Material="Neon"
- blast.TopSurface=10
- blast.BottomSurface=10
- blast.LeftSurface=10
- blast.RightSurface=10
- blast.FrontSurface=10
- blast.BackSurface=10
- blast.Locked=true
- blast:breakJoints()
- blast.CFrame=obj1.CFrame*CFrame.new(0,-6,0)
- local whizz=Instance.new('Sound',blast)
- whizz.Volume=.25
- whizz.Pitch=2
- whizz.Looped=true
- whizz.SoundId='http://www.roblox.com/asset?id=133116870'
- whizz:play''
- local blastm=Instance.new('SpecialMesh',blast)
- blastm.MeshType='Sphere'
- local blastlt2=Instance.new('PointLight',blast)
- blastlt2.Brightness=123123
- blastlt2.Color=blast.BrickColor.Color
- blastlt2.Shadows=true
- blastlt2.Range=10
- local blast2=Instance.new('Part',blast)
- blast2.Name='BlastOrb'
- blast2.formFactor='Custom'
- blast2.Size=Vector3.new(1.25,1.25,1.25)
- blast2.BrickColor=AttackOrbColor
- blast2.Transparency=0
- blast2.CanCollide=false
- blast2.Anchored=true
- blast2.Material="Neon"
- blast2.TopSurface=10
- blast2.BottomSurface=10
- blast2.LeftSurface=10
- blast2.RightSurface=10
- blast2.FrontSurface=10
- blast2.BackSurface=10
- blast2.Locked=true
- blast2:breakJoints()
- local blastm2=Instance.new('SpecialMesh',blast2)
- blastm2.MeshType='Sphere'
- local blvel=Instance.new('BodyVelocity',blast)
- blvel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- blvel.velocity=Vector3.new(math.cos(syne)/5,0,math.sin(syne)/5)+(((obj1.CFrame*CFrame.new(0,-6,0)).p-(maus.Hit.p+Vector3.new(0,.5,0))).unit*-80)
- game:service'Debris':AddItem(blast,30)
- game:service'Debris':AddItem(blast2,30)
- blast.Touched:connect(function(hit)
- coroutine.wrap(function()
- if hit then
- for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA('Humanoid') then hyoom=x end end
- local hawm=hit.Parent and hyoom and hit.Parent:findFirstChild('Torso') and hit.Parent.Parent
- if hawm and hit.Parent.ClassName=='Model' and hit.Parent~=char then
- hyoom.Health=hyoom.Health-(.8*(hyoom.MaxHealth/100))
- end
- end
- end)()
- end)
- coroutine.resume(coroutine.create(function()
- armmovement=false
- trailing=false
- wait(25)
- shootdb=false
- end))
- coroutine.resume(coroutine.create(function()
- repeat
- blast2.CFrame=blast.CFrame
- local pos1=blast.CFrame
- wait(-1)
- local pos2=blast.CFrame
- blast2.CFrame=blast.CFrame
- local dees=(pos1.p-pos2.p).magnitude
- local treel=Instance.new('Part',TrailModel)
- treel.Name='treelOrbASD'
- treel.formFactor='Custom'
- treel.Size=Vector3.new(.5,dees,.5)
- treel.BrickColor=AttackOrbColor
- treel.Anchored=true
- treel.Transparency=0
- treel.Material="Neon"
- treel.CanCollide=false
- treel.TopSurface=10
- treel.BottomSurface=10
- treel.LeftSurface=10
- treel.RightSurface=10
- treel.FrontSurface=10
- treel.BackSurface=10
- treel.Locked=true
- treel:breakJoints()
- treel.CFrame=CFrame.new(Avg(pos1,pos2).p,pos2.p)*CFrame.Angles(math.pi/2,0,0)
- blvel.velocity=(((blast.CFrame).p-(maus.Hit.p)).unit*-80)
- local asdf=Instance.new('PointLight',treel)
- asdf.Color=treel.BrickColor.Color
- asdf.Range=6
- asdf.Shadows=true
- asdf.Brightness=123123
- local treelm=Instance.new('CylinderMesh',treel)
- game:service'Debris':AddItem(treel,.6)
- coroutine.wrap(function()
- wait()
- for asd=1.05,-0,-.075 do treelm.Scale=Vector3.new(asd,1,asd) wait(-1)
- end
- end)()
- until not blast
- end))
- end
- end)
- maus.KeyUp:connect(function(kei)
- if (string.byte(kei)==48 or string.byte(kei)==47) and not otheranims and not sitting and not disabled and not sneaking then
- char.Humanoid.WalkSpeed=WlkSpeed
- end
- if kei=='w' then fldb.w=false end
- if kei=='a' then fldb.a=false end
- if kei=='s' then fldb.s=false end
- if kei=='d' then fldb.d=false end
- if kei=='g' and lit then
- lit=false armmovement=false
- if Sword:findFirstChild('LightOrbASD') then Sword.LightOrbASD:Destroy() end
- end
- if kei=="f" and otheranims and rutprt:findFirstChild("SpinAttackVelocity") then
- otheranims=false
- trailing=false
- if rutprt:findFirstChild("SpinAttackVelocity") then rutprt.SpinAttackVelocity:Destroy'' end end
- if kei=='r' and not lit and not otheranims and disabled and armmovement and not sneaking then
- disabled=false armmovement=false char.Humanoid.WalkSpeed=WlkSpeed
- if TrailModel:findFirstChild('healOrbASD') then TrailModel.healOrbASD:Destroy() end
- if TrailModel:findFirstChild('otherOrbASD') then TrailModel.otherOrbASD:Destroy() end
- end
- if kei=="v" and rutprt:findFirstChild("TemporaryVelocity") and otheranims then
- otheranims=false
- rutprt["TemporaryVelocity"]:destroy''
- end
- end)
- local currenthealth=char.Humanoid.Health
- char.Humanoid.Changed:connect(function(ch)
- if ch=='Jump' then
- if sitting then
- char.Humanoid.Jump=false
- end
- if sneaking then
- sneaking=false
- end
- end
- hp=char.Humanoid.Health
- if hp<currenthealth and currenthealth>2 then
- local damagetaken=currenthealth-hp
- char.Humanoid.Health=currenthealth-damagetaken*.5
- currenthealth=char.Humanoid.Health
- end
- if ch=="PlatformStand" then
- char.Humanoid.PlatformStand=false
- end
- end)
- char.Humanoid.Jumping:connect(function()
- jump:Play()
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if rutprt:findFirstChild("SpinAttackVelocity") then
- rutprt.SpinAttackVelocity.angularvelocity=TwnVector3(rutprt.SpinAttackVelocity.angularvelocity,Vector3.new(0,35,0),.01)
- end
- if sneaking and not runnin then
- footstep.Volume=.05
- footstep.Pitch=1
- elseif not sneaking and not runnin then
- footstep.Volume=.055
- footstep.Pitch=1.235
- elseif not sneaking and runnin then
- footstep.Volume=.06
- footstep.Pitch=1.235
- end
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- char.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if not otheranims and not sitting and not sneaking then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not char.Humanoid.Jump then
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not char.Humanoid.Jump then
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not char.Humanoid.Jump then
- anim="Sprinting"
- elseif torso.Velocity.y>5 and char.Humanoid.Jump then
- anim='Jumping'
- elseif (torso.Velocity.y < -5) and char.Humanoid.Jump then
- anim='Falling'
- end
- end
- if sneaking then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 and anim~='Pre-Sneak' then
- anim="SneakIdle"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 25 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
- anim="SneakWalk"
- end
- end
- if anim=="Idling" then
- if lastanim=='Sprinting' then
- idlesineinc=20
- else
- idlesineinc=35
- end
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(0,math.rad(0),-(math.cos(syne/idlesineinc)/25)+math.rad(37.5)),.1)
- trailing=false
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.4+math.cos(syne/idlesineinc)/25,-.1)*CFrame.Angles(math.rad(50),0,math.rad(-5)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(.3,0,.1)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-65)),.1)
- trailing=false
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Walking" then
- tik=tik+1
- if tik==18 then
- footstep:play''
- elseif tik>=36 then tik=0
- footstep:play''
- end
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(-(math.cos(syne/6)/8),math.rad(0),-(math.cos(syne/6)/8)+math.rad(37.5)),.1)
- trailing=false
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.4+math.cos(syne/3)/10,-.1)*CFrame.Angles(math.cos(syne/6)/10+math.rad(50),0,math.cos(syne/3)/10+math.rad(-5)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(.3,0,.1)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-65)),.1)
- trailing=false
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
- end
- if anim=="Sprinting" then
- tik=tik+1
- if tik==13 then
- footstep:play''
- elseif tik>=26 then tik=0
- footstep:play''
- end
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)-math.cos(syne/4)/5),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)-math.cos(syne/4)/5),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(-(math.cos(syne/4)/3.5),math.rad(0),-(math.cos(syne/4)/3.5)+math.rad(37.5)),.1)
- trailing=false
- elseif not armmovement and equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.1,(math.cos(syne/2.5)/5)+.4,-.1)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(40),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.4,(math.cos(syne/2.5)/5)+.2,-.333)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(40),0,math.rad(45)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(.3,.5,.1)*CFrame.Angles(math.rad(80),math.rad(-20),math.rad(-70)),.1)
- trailing=true
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2))*CFrame.Angles(math.cos(syne/4)*2,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2)*CFrame.Angles(-(math.cos(syne/4)*2),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(10),-math.cos(syne/4)/5,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5)/1.5)*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-15),math.cos(syne/4)/5,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
- end
- if anim=="Jumping" then
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,-.1)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(30),0,math.rad(15)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.45,-.2)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(10),0,math.rad(-5)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(.2,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Falling" then
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(70),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(50),0,math.rad(57)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Sliding" then
- if not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-20),0,math.rad(60)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-20),0,math.rad(60)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.95,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(-60),0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(45),math.rad(85),math.rad(0)),.1)
- end
- if anim=="DashSwing" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.1,.5,-.3)*CFrame.Angles(math.rad(65),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.4,.3,-.4)*CFrame.Angles(math.rad(65),0,math.rad(45)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(.3,.5,.1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-32.5)),.1)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,-1.4,-1)*CFrame.Angles(math.rad(65),0,math.rad(7.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.2,0)*CFrame.Angles(math.rad(-22.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,.1+rutprt.Weld.C0.y+.05,0)*CFrame.Angles(math.rad(5),math.rad(TwnSingleNumber(rutprt.Weld.C0:toEulerAnglesXYZ().y,179,.1)),math.rad(-12)),.1)
- end
- if anim=="SpinAttack" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.35,-.5)*CFrame.Angles(math.cos(syne/30)/15+math.rad(rutprt.SpinAttackVelocity.angularvelocity.y*2),0,math.rad(-30)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.35,-.5)*CFrame.Angles(math.cos(syne/30)/15+math.rad(rutprt.SpinAttackVelocity.angularvelocity.y*2),0,math.rad(30)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,-.15)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(87.5)),.1)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,math.rad(20))*CFrame.Angles(math.rad(-20),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,math.rad(20))*CFrame.Angles(math.rad(-20),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.25)*CFrame.Angles(math.rad(-20),math.rad(0),0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,.5+math.cos(syne/20)/2,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.025)
- end
- if equipped then
- objw1.Part1=rarm
- objw1.C1=CFrame.new(-.4,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
- elseif not equipped then
- objw1.Part1=torso
- objw1.C1=CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
- end
- if anim=='Sitting' and equipped and sitting then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.3,-.35)*CFrame.Angles(math.rad(40),0,math.rad(-37.5)),.25)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.15,.3,-.35)*CFrame.Angles(math.rad(40),0,math.rad(37.5)),.25)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,.4,-.3)*CFrame.Angles(math.rad(130),math.rad(60),math.rad(10)),.125)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.6,-1,-.7)*CFrame.Angles(math.rad(70),0,math.rad(-12)),.25)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.6,-1,-.7)*CFrame.Angles(math.rad(70),0,math.rad(12)),.25)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),.25)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,1,-.25)*CFrame.Angles(math.rad(-7.5),math.rad(0),math.rad(0)),.25)
- end
- if anim=="PreSuperJump" then
- if not equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.05)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.05)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.05)
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(40),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(20),0,math.rad(57)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-.4,.3)*CFrame.Angles(math.rad(-40),0,math.rad(-2.5)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.6,-.65)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(40),0,0),.05)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.6,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.05)
- end
- if anim=="SuperJump" then
- if not armmovement and not equipped then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(-20)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(28)),.1)
- elseif equipped and not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(50),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(30),0,math.rad(57)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(-2.5)),.2)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(2.5)),.2)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(30),0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.1)
- char.Humanoid.Jump=true
- end
- if armmovement then
- if armanim=='Swing1P1' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,0)*CFrame.Angles(math.rad(179),0,math.rad(-22.5)),.125)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.65,.6,-.475)*CFrame.Angles(math.rad(179),0,math.rad(40)),.125)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(40)),.125)
- end
- if armanim=='Swing1P2' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,0)*CFrame.Angles(math.rad(29),0,math.rad(-27.5)),.3)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.65,.6,-.475)*CFrame.Angles(math.rad(29),0,math.rad(30)),.3)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(40)),.3)
- end
- if armanim=='Swing2P1' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,0)*CFrame.Angles(math.rad(99),0,math.rad(55)),.125)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.4,.6,-.475)*CFrame.Angles(math.rad(99),0,math.rad(70)),.125)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(90),math.rad(40)),.125)
- end
- if armanim=='Swing2P2' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.65,.6,-.475)*CFrame.Angles(math.rad(59),0,math.rad(-80)),.3)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.15,.45,0)*CFrame.Angles(math.rad(59),0,math.rad(-55)),.3)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(90),math.rad(40)),.3)
- end
- if armanim=='Swing3P1' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,0)*CFrame.Angles(math.rad(29),0,math.rad(-17.5)),.3)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.65,.6,-.475)*CFrame.Angles(math.rad(29),0,math.rad(30)),.3)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(40)),.3)
- end
- if armanim=='Swing3P2' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,0)*CFrame.Angles(math.rad(179),0,math.rad(-42.5)),.125)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.65,.6,-.475)*CFrame.Angles(math.rad(179),0,math.rad(60)),.125)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(40)),.125)
- end
- if armanim=='Glowing' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.45,-.1)*CFrame.Angles(math.rad(40),0,math.rad(-10)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.7,.25,-.4)*CFrame.Angles(math.rad(35),0,math.rad(50)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)),.1)
- lightw.C0=Lerp(lightw.C0,CFrame.new(math.cos(syne/4)*1.5,math.sin(syne/75)*1.75+3.5,-math.sin(syne/4)*1.5)*CFrame.Angles(0,0,0),.1)
- end
- if armanim=='Healing' then
- char.Humanoid.Health=char.Humanoid.Health+.215
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1,.55,-.5)*CFrame.Angles(math.rad(100),0,math.rad(-30)),.125)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.55,-.5)*CFrame.Angles(math.rad(100),0,math.rad(30)),.125)
- objw1.C0=Lerp(objw1.C0,CFrame.new(-.1,.2,-.3)*CFrame.Angles(math.rad(10),math.rad(60),math.rad(0)),.125)
- healw.C0=Lerp(healw.C0,CFrame.new(math.cos(syne/5)*4.5,math.sin(syne/45)*4-1.2,-math.sin(syne/5)*4.5)*CFrame.Angles(0,0,0),.1)
- otherw.C0=Lerp(otherw.C0,CFrame.new(math.sin(syne/5)*4.5,-math.sin(syne/45)*4-1.2,-math.cos(syne/5)*4.5)*CFrame.Angles(0,0,0),.1)
- end
- if armanim=='ShootP1' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.3,.325,0)*CFrame.Angles(math.rad(29),0,math.rad(-30)),.2)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.85,.325,-.4)*CFrame.Angles(math.rad(9),0,math.rad(47.5)),.2)
- objw1.C0=Lerp(objw1.C0,CFrame.new(-.75,.5,-.25)*CFrame.Angles(math.rad(-55),math.rad(35),math.rad(30)),.2)
- end
- if armanim=='ShootP2' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.95,.375,-.4)*CFrame.Angles(math.rad(129),0,math.rad(-42.5)),.2)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.375,0)*CFrame.Angles(math.rad(129),0,math.rad(25)),.2)
- objw1.C0=Lerp(objw1.C0,CFrame.new(-.75,1,-.25)*CFrame.Angles(math.rad(-55),math.rad(35),math.rad(30)),.2)
- end
- end
- if anim=='Pre-Sneak' then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(12)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(-12)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(70),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(50),0,math.rad(57)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,0)*CFrame.Angles(math.rad(-12.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1,-.5)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(7),0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.1,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.1)
- end
- if anim=='SneakWalk' then
- tik=tik+1
- if tik>=34 then tik=0
- footstep:play''
- end
- char.Humanoid.WalkSpeed=SneakSpeed-math.cos(syne/5)*5
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.cos(syne/10)/2.5+math.rad(5),0,math.rad(12)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/10)/2.5+math.rad(5),0,math.rad(-12)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(60),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(40),0,math.rad(62.5)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,math.cos(syne/10)/3-1,-math.sin(syne/10)/1.5-.4)*CFrame.Angles(math.sin(syne/10)/1.5-math.rad(2.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-math.cos(syne/10)/3-1,math.sin(syne/10)/1.5-.4)*CFrame.Angles(-math.sin(syne/10)/1.5-math.rad(2.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(-math.cos(syne/5)/5+math.rad(9),-math.sin(syne/10)/6.1,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,math.cos(syne/5)/5-1.1,-math.cos(syne/5)/2)*CFrame.Angles(math.cos(syne/5)/5+math.rad(-14),math.sin(syne/10)/6,math.rad(0)),.1)
- end
- if anim=='SneakIdle' then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(12)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(-12)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,-2,-.6)*CFrame.Angles(math.rad(7.5),math.rad(0),math.rad(55)),.1)
- elseif not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.15,.4,-.2)*CFrame.Angles(math.rad(70),0,math.rad(-20)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1,.4,-.6)*CFrame.Angles(math.rad(50),0,math.rad(57)),.1)
- objw1.C0=Lerp(objw1.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(20)),.1)
- end
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(7),0,0),.1)
- rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.1,.2)*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(0)),.1)
- end
- if sitting then char.Humanoid.WalkSpeed=0 end
- if lit then
- if lgt then
- lgt.Range=TwnSingleNumber(lgt.Range,22.5,.1)
- end
- end
- end)
- maus.TargetFilter=TrailModel
- coroutine.wrap(function()
- while true do
- if trailing then
- local pos1=obj1.CFrame*CFrame.new(0,-5,0)
- wait()
- local pos2=obj1.CFrame*CFrame.new(0,-5,0)
- local dees=(pos1.p-pos2.p).magnitude
- local treel=Instance.new('Part',TrailModel)
- treel.Name='treelOrbASD'
- treel.formFactor='Custom'
- treel.Size=Vector3.new(.1,dees,.1)
- treel.BrickColor=BladeColor--BrickColor.new(Color3.new(0,0,0))
- treel.Anchored=true
- treel.Transparency=.5
- treel.CanCollide=false
- treel.Material="Neon"
- treel.TopSurface=10
- treel.BottomSurface=10
- treel.LeftSurface=10
- treel.RightSurface=10
- treel.FrontSurface=10
- treel.BackSurface=10
- treel.Locked=true
- treel:breakJoints()
- treel.CFrame=CFrame.new(Avg(pos1,pos2).p,pos2.p)*CFrame.Angles(math.pi/2,0,0)
- local treelm=Instance.new('CylinderMesh',treel)
- game:service'Debris':AddItem(treel,1)
- coroutine.wrap(function()
- for asd=.7,-0,-.1 do treelm.Scale=Vector3.new(asd,1,asd) wait(0)
- end
- end)()
- elseif not trailing and not lit and armanim~='Healing' then
- wait''
- end
- if lit then
- local pos1=light2.CFrame
- wait()
- local pos2=light2.CFrame
- local dees=(pos1.p-pos2.p).magnitude
- local treel=Instance.new('Part',TrailModel)
- treel.Name='treelOrbASD'
- treel.formFactor='Custom'
- treel.Size=Vector3.new(.1,dees,.1)
- treel.BrickColor=LightColor
- treel.Anchored=true
- treel.Transparency=0
- treel.CanCollide=false
- treel.Material="Neon"
- treel.TopSurface=10
- treel.BottomSurface=10
- treel.LeftSurface=10
- treel.RightSurface=10
- treel.FrontSurface=10
- treel.BackSurface=10
- treel.Locked=true
- treel:breakJoints()
- treel.CFrame=CFrame.new(Avg(pos1,pos2).p,pos2.p)*CFrame.Angles(math.pi/2,0,0)
- local treelm=Instance.new('CylinderMesh',treel)
- game:service'Debris':AddItem(treel,2)
- coroutine.wrap(function()
- for asd=.65,0,-.05 do treelm.Scale=Vector3.new(asd,1,asd) wait(0)
- end
- end)()
- elseif not lit and armanim~='Healing' and not trailing then
- wait''
- end
- if armanim=='Healing' then
- local pos1=other.CFrame
- local pos3=heal.CFrame
- wait()
- local pos4=heal.CFrame
- local pos2=other.CFrame
- local dees=(pos1.p-pos2.p).magnitude
- local dee2=(pos3.p-pos4.p).magnitude
- local treel=Instance.new('Part',TrailModel)
- treel.Name='treel1TrailASD'
- treel.formFactor='Custom'
- treel.Size=Vector3.new(.1,dees,.1)
- treel.BrickColor=HealOrbColor
- treel.Anchored=true
- treel.Transparency=0
- treel.Reflectance=.5
- treel.CanCollide=false
- treel.Material="Neon"
- treel.TopSurface=10
- treel.BottomSurface=10
- treel.LeftSurface=10
- treel.RightSurface=10
- treel.FrontSurface=10
- treel.BackSurface=10
- treel.Locked=true
- treel:breakJoints()
- treel.CFrame=CFrame.new(Avg(pos1,pos2).p,pos2.p)*CFrame.Angles(math.pi/2,0,0)
- local treelm=Instance.new('CylinderMesh',treel)
- game:service'Debris':AddItem(treel,2)
- local treel2=Instance.new('Part',TrailModel)
- treel2.Name='treel2TrailASD'
- treel2.formFactor='Custom'
- treel2.Size=Vector3.new(.1,dee2,.1)
- treel2.BrickColor=HealOrbColor
- treel2.Anchored=true
- treel2.Transparency=0
- treel2.Reflectance=.5
- treel2.CanCollide=false
- treel2.TopSurface=10
- treel2.Material="Neon"
- treel2.BottomSurface=10
- treel2.LeftSurface=10
- treel2.RightSurface=10
- treel2.FrontSurface=10
- treel2.BackSurface=10
- treel2.Locked=true
- treel2:breakJoints()
- treel2.CFrame=CFrame.new(Avg(pos3,pos4).p,pos4.p)*CFrame.Angles(math.pi/2,0,0)
- local treelm2=Instance.new('CylinderMesh',treel2)
- game:service'Debris':AddItem(treel2,2)
- coroutine.wrap(function()
- for asd=.9,-0,-.075 do treelm2.Scale=Vector3.new(asd,1,asd) treelm.Scale=Vector3.new(asd,1,asd) wait(0)
- end
- end)()
- elseif not trailing and not lit and armanim~='Healing' then
- wait''
- end
- end
- end)()
- coroutine.resume(coroutine.create(function()
- for i,x in pairs(char:GetChildren()) do if x:IsA('Part') then x.Material='Neon' elseif x:IsA('Hat') then x.Handle.Material='Neon' end end end))
- for lalal,lal in pairs(char:GetChildren()) do if lal.ClassName=='Part' then
- for lalalalal,lalalal in pairs(lal:GetChildren()) do if lalalal.ClassName=='CharacterMesh' then lalalal:Destroy() end end
- elseif lal.ClassName=='CharacterMesh' then lal:Destroy() end end
- wait'.5'
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=char.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement