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("hi")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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local anim = "Idle"
- local animate = char.Animate
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- hum.Animator:remove()
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- sped = 16
- hee = 15
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- for i,v in pairs (char:GetDescendants()) do
- if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Decal") or v:IsA("Texture") then
- v:remove()
- end
- if v:IsA("Part") then
- v.Transparency = 1
- end
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Weld2 = Instance.new("Weld")
- Weld3 = Instance.new("Weld")
- Weld4 = Instance.new("Weld")
- Part5 = Instance.new("Part")
- CylinderMesh6 = Instance.new("CylinderMesh")
- ParticleEmitter7 = Instance.new("ParticleEmitter")
- Model8 = Instance.new("Model")
- Part9 = Instance.new("Part")
- CylinderMesh10 = Instance.new("CylinderMesh")
- Part11 = Instance.new("Part")
- CylinderMesh12 = Instance.new("CylinderMesh")
- Model0.Name = "Wand"
- Model0.Parent = mas
- Model0.PrimaryPart = Part1
- Part1.Name = "Base"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(99.6891098, 0.100066148, 124.775757, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(99.6891098, 0.100066148, 124.775757)
- Part1.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Weld2.Name = "Joint"
- Weld2.Parent = Part1
- Weld2.C0 = CFrame.new(-4.76837158e-06, -4.57763672e-05, -1.69998741, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld2.Part0 = Part1
- Weld2.Part1 = Part5
- Weld2.part1 = Part5
- Weld3.Name = "BTWeld"
- Weld3.Parent = Part1
- Weld3.C1 = CFrame.new(7.62939453e-06, -0.499984741, 4.57763672e-05, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part11
- Weld3.part1 = Part11
- Weld4.Name = "BTWeld"
- Weld4.Parent = Part1
- Weld4.C1 = CFrame.new(7.62939453e-06, 0.700012207, 4.57763672e-05, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Weld4.Part0 = Part1
- Weld4.Part1 = Part9
- Weld4.part1 = Part9
- Part5.Name = "Head"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(99.6891022, 0.100020371, 123.075768, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- Part5.Orientation = Vector3.new(-90, 0, 0)
- Part5.Position = Vector3.new(99.6891022, 0.100020371, 123.075768)
- Part5.Rotation = Vector3.new(-90, 0, 0)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Size = Vector3.new(0.200000003, 0.199999928, 0.200000003)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.CanCollide = false
- Part5.Material = Enum.Material.SmoothPlastic
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Institutional white")
- CylinderMesh6.Parent = Part5
- ParticleEmitter7.Name = "Sparkles"
- ParticleEmitter7.Parent = Part5
- ParticleEmitter7.Speed = NumberRange.new(5, 15)
- ParticleEmitter7.Rotation = NumberRange.new(0, 360)
- ParticleEmitter7.Enabled = false
- ParticleEmitter7.LightEmission = 1
- ParticleEmitter7.Texture = "rbxassetid://1053546634"
- ParticleEmitter7.Transparency = NumberSequence.new(1,0,1)
- ParticleEmitter7.ZOffset = -0.10000000149012
- ParticleEmitter7.Size = NumberSequence.new(0.40000000596046,0.40000000596046)
- ParticleEmitter7.Drag = 15
- ParticleEmitter7.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter7.Rate = 45
- ParticleEmitter7.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter7.VelocitySpread = 360
- Model8.Name = "Union"
- Model8.Parent = Model0
- Part9.Parent = Model8
- Part9.CFrame = CFrame.new(99.6891022, 0.100020371, 125.475769, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- Part9.Orientation = Vector3.new(-90, 0, 0)
- Part9.Position = Vector3.new(99.6891022, 0.100020371, 125.475769)
- Part9.Rotation = Vector3.new(-90, 0, 0)
- Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part9.Size = Vector3.new(0.200000003, 0.199999928, 0.200000003)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Institutional white")
- Part9.Material = Enum.Material.SmoothPlastic
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Institutional white")
- CylinderMesh10.Parent = Part9
- Part11.Parent = Model8
- Part11.CFrame = CFrame.new(99.6891022, 0.100020371, 124.275772, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- Part11.Orientation = Vector3.new(-90, 0, 0)
- Part11.Position = Vector3.new(99.6891022, 0.100020371, 124.275772)
- Part11.Rotation = Vector3.new(-90, 0, 0)
- Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part11.Size = Vector3.new(0.200000003, 2.19999981, 0.200000003)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Really black")
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Really black")
- CylinderMesh12.Parent = Part11
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = nil
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = false
- end
- end
- for i,v in pairs(Model8:GetChildren()) do
- v.Anchored = false
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- WAND = Model0
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = Instance.new(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- local wand = Instance.new("Model",char)
- function SpawnWand(ARM)
- local STAFF = WAND:Clone()
- STAFF.Parent = wand
- local WELD = CreateWeldOrSnapOrMotor("Weld", ARM, ARM, STAFF.Base, CFrame.new(0,-1.2,0), CFrame.new(0,0,0))
- return STAFF,WELD,STAFF.Head.Sparkles
- end
- SpawnWand(la)
- local sang = NewSound(root, 1583302174, 1, 10, true)
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(0.1, 0.1, 0.1)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Maroon")
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://63717022"
- mesh.Scale = Vector3.new(1.6, 2.5, 1.6)
- local weld = ezweld(char, part, tors, CFrame.new(0, -1, -0.5) * CFrame.Angles(Rad(180), Rad(180), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(0.1, 0.1, 0.1)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Magenta")
- part.Material = "Neon"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://63717022"
- mesh.Scale = Vector3.new(1.58, 2.5, 1.58)
- mesh.VertexColor = Vector3.new(0.8, 0.8, 0.8)
- local weld = ezweld(char, part, tors, CFrame.new(0, -1.05, -0.48) * CFrame.Angles(Rad(180), Rad(180), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(0.1, 0.1, 0.1)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Really black")
- part.Material = "Concrete"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://28463033"
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.VertexColor = Vector3.new(0.8, 0.8, 0.8)
- local weld = ezweld(char, part, tors, CFrame.new(0, -0.18, 0.55) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(0.1, 0.1, 0.1)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Really black")
- part.Material = "Concrete"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://1147595316"
- mesh.TextureId = "rbxassetid://1147597253"
- mesh.Offset = Vector3.new(0, 0.25, 0)
- mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- local weld = ezweld(char, part, hed, CFrame.new(0, -0.075, -0.5) * CFrame.Angles(Rad(0), Rad(180), 0))
- local HAT = Instance.new("Model",char)
- local parth = Instance.new("Part",HAT)
- parth.Size = Vector3.new(0.1, 0.1, 0.1)
- parth.CanCollide = false
- parth.BrickColor = BrickColor.new("Maroon")
- parth.Material = "Plastic"
- local mesh = Instance.new("SpecialMesh",parth)
- mesh.MeshId = "rbxassetid://57475891"
- mesh.Offset = Vector3.new(0, 0.25, 0)
- mesh.Scale = Vector3.new(0.9, 0.9, 0.9)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- local HATWELD = ezweld(char, parth, hed, CFrame.new(0, -1, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",HAT)
- part.Name = "Base"
- part.Size = Vector3.new(0.1, 0.1, 0.1)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Magenta")
- part.Material = "Concrete"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://57475891"
- mesh.Offset = Vector3.new(0, 0.25, 0)
- mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- local weld = ezweld(char, part, parth, CFrame.new(0, 0.075, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- local sp = Instance.new("Part",char)
- sp.Size = Vector3.new(1.8, 2.3, 0.5)
- sp.CanCollide = false
- sp.Transparency = 1
- local sparkle = Instance.new("ParticleEmitter",sp)
- sparkle.Texture = "rbxassetid://1053546634"
- sparkle.LockedToPart = true
- sparkle.Name = "Sparkles"
- sparkle.Enabled = true
- sparkle.Transparency = NumberSequence.new(1, 0, 1)
- sparkle.Size = NumberSequence.new(0.4)
- sparkle.Lifetime = NumberRange.new(1, 4)
- sparkle.LightEmission = NumberSequence.new(1)
- sparkle.EmissionDirection = "Top"
- sparkle.VelocityInheritance = NumberSequence.new(0)
- sparkle.Rotation = NumberRange.new(0, 360)
- sparkle.RotSpeed = NumberRange.new(0)
- sparkle.Acceleration = Vector3.new(0, 0.15, 0)
- sparkle.Speed = NumberRange.new(0)
- sparkle.SpreadAngle = Vector2.new(45, 45)
- sparkle.Rate = 15
- sparkle.LightEmission = 1
- sparkle.ZOffset = -0.1
- local weld = ezweld(char, sp, tors, CFrame.new(0, 0.7, -0.25) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.156, 0.308, 1.156)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Crimson")
- part.Material = "Concrete"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshType = "Sphere"
- mesh.Offset = Vector3.new(0, -0.7, 0)
- local weld = ezweld(char, part, ra, CFrame.new(0, -0.38, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.156, 0.231, 1.156)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Crimson")
- part.Material = "Concrete"
- local mesh = Instance.new("CylinderMesh",part)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- local weld = ezweld(char, part, ra, CFrame.new(0, -0.31, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.233, 0.154, 1.233)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Cocoa")
- part.Material = "Concrete"
- local mesh = Instance.new("CylinderMesh",part)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- local weld = ezweld(char, part, ra, CFrame.new(0, -0.21, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.233, 0.154, 1.233)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Institutional white")
- part.Material = "Glass"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.Scale = Vector3.new(2.5, 2.35, 2.5)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- mesh.MeshId = "http://www.roblox.com/asset/?id=875229570"
- local weld = ezweld(char, part, ra, CFrame.new(0, 0.37, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- ----
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.156, 0.308, 1.156)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Crimson")
- part.Material = "Concrete"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshType = "Sphere"
- mesh.Offset = Vector3.new(0, -0.7, 0)
- local weld = ezweld(char, part, la, CFrame.new(0, -0.38, 0) * CFrame.Angles(Rad(0), Rad(180), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.156, 0.231, 1.156)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Crimson")
- part.Material = "Concrete"
- local mesh = Instance.new("CylinderMesh",part)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- local weld = ezweld(char, part, la, CFrame.new(0, -0.31, 0) * CFrame.Angles(Rad(0), Rad(180), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.233, 0.154, 1.233)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Cocoa")
- part.Material = "Concrete"
- local mesh = Instance.new("CylinderMesh",part)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- local weld = ezweld(char, part, la, CFrame.new(0, -0.21, 0) * CFrame.Angles(Rad(0), Rad(180), 0))
- local part = Instance.new("Part",char)
- part.Size = Vector3.new(1.233, 0.154, 1.233)
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Institutional white")
- part.Material = "Glass"
- local mesh = Instance.new("SpecialMesh",part)
- mesh.Scale = Vector3.new(2.5, 2.35, 2.5)
- mesh.Offset = Vector3.new(0, -0.75, 0)
- mesh.MeshId = "http://www.roblox.com/asset/?id=875229553"
- local weld = ezweld(char, part, la, CFrame.new(0, 0.37, 0) * CFrame.Angles(Rad(0), Rad(0), 0))
- ducki = false
- duk = Instance.new("Part",nil)
- duk.Size = Vector3.new(1, 1, 1)
- duk.CanCollide = false
- dmesh = Instance.new("SpecialMesh", duk)
- dmesh.MeshId = "rbxassetid://521754610"
- dmesh.TextureId = "rbxassetid://521754612"
- dmesh.Scale = Vector3.new(1, 1, 1)
- dweld = ezweld(char, duk, ra, CFrame.new(-0.25, -0.2, -1.2) * CFrame.Angles(Rad(90), 0, Rad(180)))
- SINE = 0
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- CHANGE = 2 / 3
- Torso = tors
- RootPart = root
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local Speed = 35
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- function Clerp(a, b, t)
- return a:lerp(b, t)
- end
- PLAY = true
- local large = Instance.new("ParticleEmitter",Torso)
- large.Name = "LargeSparks"
- large.Texture = "rbxassetid://1053546634"
- large.LockedToPart = false
- large.Name = "Sparkles"
- large.Enabled = false
- large.Transparency = NumberSequence.new(1, 0, 1)
- large.Size = NumberSequence.new(0.4, 4)
- large.Lifetime = NumberRange.new(1, 4)
- large.LightEmission = NumberSequence.new(1)
- large.EmissionDirection = "Top"
- large.VelocityInheritance = NumberSequence.new(0)
- large.Rotation = NumberRange.new(0, 360)
- large.RotSpeed = NumberRange.new(0)
- large.Acceleration = Vector3.new(0, 0.15, 0)
- large.Speed = NumberRange.new(20, 45)
- large.Drag = NumberRange.new(7)
- large.SpreadAngle = Vector2.new(360, 360)
- large.Rate = 999
- large.LightEmission = 1
- large.ZOffset = -0.1
- local large2 = Instance.new("ParticleEmitter",Torso)
- large2.Name = "LargeSparks"
- large2.Texture = "rbxassetid://1053546634"
- large2.LockedToPart = false
- large2.Name = "Sparkles"
- large2.Enabled = false
- large2.Transparency = NumberSequence.new(1, 0, 1)
- large2.Size = NumberSequence.new(0.4, 4)
- large2.Lifetime = NumberRange.new(5)
- large2.LightEmission = NumberSequence.new(1)
- large2.EmissionDirection = "Top"
- large2.VelocityInheritance = NumberSequence.new(6)
- large2.Rotation = NumberRange.new(155)
- large2.RotSpeed = NumberRange.new(50)
- large2.Acceleration = Vector3.new(0, -10, 0)
- large2.Speed = NumberRange.new(22.5)
- large2.SpreadAngle = Vector2.new(44, -44)
- large2.Rate = 999
- large2.LightEmission = 1
- local LARGESPARKS = large2
- local Rooted = false
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, char, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- elseif TYPE == "Duck" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9419831", "9419827", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function ApplyDamage(Humanoid,Damage)
- if Damage > 0 then
- Damage = Damage * 1
- if Humanoid.Health < 9999 then
- if Humanoid.Health - Damage > 0 then
- Humanoid.Health = Humanoid.Health - Damage
- else
- Humanoid.Parent:BreakJoints()
- end
- else
- Humanoid.Parent:BreakJoints()
- end
- end
- end
- function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,FLINGTO,INSTAKILL)
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= char then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if INSTAKILL == true then
- CHILD:BreakJoints()
- else
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage(HUM,DMG)
- end
- if FLING ~= "Twist" then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity",c)
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- if FLINGTO == nil then
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- else
- bv.velocity = CF(TORSO.Position,TORSO.Position + FLINGTO).lookVector*FLING
- end
- Debris:AddItem(bv,0.01)
- end
- end
- else
- TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(0),RAD(10),RAD(0))
- local bv = Instance.new("BodyVelocity",TORSO)
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = VT(0,0,0)
- Debris:AddItem(bv,0.01)
- end
- end
- end
- end
- end
- end
- end
- Mouse = mouse
- function BonusDuck()
- attack = true
- Rooted = true
- local WAND,WELD,SPARKS = SpawnWand(la)
- CreateSound(769380905, WAND.Base, 2, 1.5, false)
- for i=0, 0.5, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(40), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- CreateSound(199607491, hed, 5, 1, false)
- SPARKS.Enabled = true
- local SPIN = 0
- local DUCKIES = false
- local GYRO = IT("BodyGyro",RootPart)
- GYRO.D = 20
- GYRO.P = 4000
- GYRO.MaxTorque = VT(0,40000,0)
- coroutine.resume(coroutine.create(function()
- repeat
- GYRO.CFrame = CF(RootPart.Position,mouse.Hit.p)
- Swait()
- SPIN = SPIN + 1
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.5, 0) * ANGLES(RAD(150+15*SIN(SPIN/4)), RAD(0), RAD(-15*COS(SPIN/4))) * CF(0,-0.5,0) * LEFTSHOULDERC0, 2 / Animation_Speed)
- until DUCKIES == true
- end))
- local DUCK = CreatePart(3, char, "Neon", 0, 1, BRICKC("Pearl"), "DUCK", VT(5,5,5), true)
- DUCK.CFrame = RootPart.CFrame*CF(0,6,0)
- CreateMesh("SpecialMesh", DUCK, "FileMesh", "9419831", "9419827", VT(4,4,4), VT(0,0,0))
- for i = 1, 100 do
- Swait()
- DUCK.Transparency = DUCK.Transparency - 1/200
- DUCK.CFrame = RootPart.CFrame*CF(0,6,0)
- local ANGLE = CF(DUCK.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) * CF(0,25,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Duck", Size = VT(4,4,4)/3, Size2 = VT(3,3,3)/3, Transparency = 1, Transparency2 = 0, CFrame = ANGLE, MoveToPos = DUCK.Position, RotationX = MRANDOM(-1,1), RotationY = MRANDOM(-1,1), RotationZ = MRANDOM(-1,1), Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 198462271, SoundPitch = MRANDOM(7,14)/10, SoundVolume = 1})
- end
- wait(0.5)
- DUCKIES = true
- for i = 1, 35 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.12 + (i/30)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 0.6 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
- end
- coroutine.resume(coroutine.create(function()
- CreateSound(198462271, DUCK, 5, 0.4, false)
- DUCK.CFrame = CF(DUCK.Position,mouse.Hit.p+VT(0,3,0))
- for i = 1, 75 do
- Swait()
- DUCK.CFrame = DUCK.CFrame * CF(0,0,-1.6)
- local HIT,HITPOS = RayCast(DUCK.Position, DUCK.CFrame.lookVector, 2.5, char)
- ApplyAoE(DUCK.Position,15,0,0,15,DUCK.CFrame.lookVector,false)
- WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(4,1,4), Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = DUCK.CFrame*CF(0,0,-2.5) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- if HIT then
- break
- end
- end
- ApplyAoE(DUCK.Position,45,45,70,150,nil,false)
- DUCK:remove()
- for i = 1, 35 do
- local ANGLE = CF(DUCK.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- --SHAKECAM(DUCK.Position,60,3,7)
- WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(60,60,60), Transparency = 0, Transparency2 = 1, CFrame = DUCK.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 168513088, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- end))
- for i=0, 1, 0.1 / Animation_Speed do
- Swait()
- WELD.C1 = Clerp(WELD.C1,CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 1 / Animation_Speed)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(25)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- WAND:remove()
- GYRO:remove()
- attack = false
- Rooted = false
- end
- function BonusDucks()
- attack = true
- CreateSound(199607491, hed, 5, 1, false)
- for i = 1,3 do
- Swait()
- Rooted = true
- local WAND,WELD,SPARKS = SpawnWand(la)
- CreateSound(769380905, WAND.Base, 2, 1.5, false)
- for i = 0, 0.5, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(40), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- SPARKS.Enabled = true
- local SPIN = 0
- local DUCKIES = false
- local GYRO = IT("BodyGyro",RootPart)
- GYRO.D = 20
- GYRO.P = 4000
- GYRO.MaxTorque = VT(0,40000,0)
- coroutine.resume(coroutine.create(function()
- repeat
- GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
- Swait()
- SPIN = SPIN + 1
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.5, 0) * ANGLES(RAD(150+15*SIN(SPIN/4)), RAD(0), RAD(-15*COS(SPIN/4))) * CF(0,-0.5,0) * LEFTSHOULDERC0, 2 / Animation_Speed)
- until DUCKIES == true
- end))
- local DUCK = CreatePart(3, char, "Neon", 0, 1, BRICKC("Pearl"), "DUCK", VT(5,5,5), true)
- DUCK.CFrame = RootPart.CFrame*CF(0,6,0)
- CreateMesh("SpecialMesh", DUCK, "FileMesh", "9419831", "9419827", VT(4,4,4), VT(0,0,0))
- for i = 1, 15 do
- Swait()
- DUCK.Transparency = DUCK.Transparency - 1/200
- DUCK.CFrame = RootPart.CFrame*CF(0,6,0)
- local ANGLE = CF(DUCK.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) * CF(0,25,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Duck", Size = VT(4,4,4)/3, Size2 = VT(3,3,3)/3, Transparency = 1, Transparency2 = 0, CFrame = ANGLE, MoveToPos = DUCK.Position, RotationX = MRANDOM(-1,1), RotationY = MRANDOM(-1,1), RotationZ = MRANDOM(-1,1), Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 198462271, SoundPitch = MRANDOM(7,14)/10, SoundVolume = 1})
- end
- wait(0.5)
- DUCKIES = true
- for i = 1, 35 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.12 + (i/30)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 0.6 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
- end
- coroutine.resume(coroutine.create(function()
- CreateSound(198462271, DUCK, 5, 0.4, false)
- DUCK.CFrame = CF(DUCK.Position,Mouse.Hit.p+VT(0,3,0))
- for i = 1, 200 do
- Swait()
- DUCK.CFrame = DUCK.CFrame * CF(0,0,-1.6)
- local HIT,HITPOS = RayCast(DUCK.Position, DUCK.CFrame.lookVector, 2.5, char)
- ApplyAoE(DUCK.Position,15,0,0,15,DUCK.CFrame.lookVector,false)
- WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(4,1,4), Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = DUCK.CFrame*CF(0,0,-2.5) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- if HIT then
- break
- end
- end
- ApplyAoE(DUCK.Position,45,45,70,150,nil,false)
- DUCK:remove()
- for i = 1, 35 do
- local ANGLE = CF(DUCK.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- --SHAKECAM(DUCK.Position,60,3,7)
- WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(60,60,60), Transparency = 0, Transparency2 = 1, CFrame = DUCK.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 168513088, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- WACKYEFFECT({Time = 70, EffectType = "Duck", Size = VT(4,4,4), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = DUCK.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- end))
- for i=0, 1, 0.1 / Animation_Speed do
- Swait()
- WELD.C1 = Clerp(WELD.C1,CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 1 / Animation_Speed)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(25)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- WAND:remove()
- GYRO:remove()
- end
- attack = false
- Rooted = false
- end
- function DissapearingAct()
- attack = true
- local WAND,WELD,SPARKS = SpawnWand(la)
- CreateSound(769380905, WAND.Base, 2, 1.5, false)
- for i=0, 0.5, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(40), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- SPARKS.Enabled = true
- local SPIN = 0
- for i = 1, 35 do
- Swait()
- SPIN = SPIN + 1
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90+15*SIN(SPIN/4)), RAD(0), RAD(-15*COS(SPIN/4))) * LEFTSHOULDERC0, 2 / Animation_Speed)
- end
- local POS = mouse.Hit.p+VT(0,4.5,0)
- --SHAKECAM(POS,25,3,7)
- --SHAKECAM(RootPart.Position,25,3,7)
- local ORI = RootPart.Orientation
- for i = 1, 5 do
- local ANGLE = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- LARGESPARKS:Emit(250)
- Swait()
- --WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 6})
- RootPart.CFrame = CF(POS)
- RootPart.Orientation = ORI
- RootJoint.Parent = RootPart
- LARGESPARKS:Emit(250)
- WAND:remove()
- attack = false
- end
- function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
- local frame = IT("Frame")
- frame.BackgroundTransparency = TRANSPARENCY
- frame.BorderSizePixel = BORDERSIZEPIXEL
- frame.Position = POSITION
- frame.Size = SIZE
- frame.BackgroundColor3 = COLOR
- frame.BorderColor3 = BORDERCOLOR
- frame.Name = NAME
- frame.Parent = PARENT
- return frame
- end
- function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = TEXTCOLOR
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = false
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- local SKILLTEXTCOLOR = BRICKC"Maroon".Color
- local SKILLFONT = "Fantasy"
- local SKILLTEXTSIZE = 5
- local WEAPONGUI = IT("ScreenGui", plr.PlayerGui)
- WEAPONGUI.Name = "Weapon GUI"
- local ATTACKS = {"Q-Dissapearing Act","E-Duck Launcher","Z-Draw Cards","Y - Bonus Ducks!","C-Bonus Duck","M-Audience Play","L-Toggle Song"}
- --local ATTACKSFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
- --local TEXT = CreateLabel(ATTACKSFRAME, "[ATTACKS]", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0.5, "Skill text")
- local GUIS = {}
- for i = 1, #ATTACKS do
- local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.05, 0, 0.90-(0.02*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
- local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.8, "Skill text")
- SKILLTEXT.TextStrokeColor3 = BRICKC"Royal purple".Color
- SKILLTEXT.TextXAlignment = "Left"
- table.insert(GUIS,SKILLTEXT)
- end
- function gun()
- ducki = true
- attack = true
- duk.Parent = char
- local GYRO = Instance.new("BodyGyro")
- GYRO.D = 20
- GYRO.P = 5000
- GYRO.MaxTorque = VT(0,40000000000,0)
- GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- GYRO.Parent = root
- repeat
- Swait()
- duk.Parent = char
- GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- if hold == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * ANGLES(0, 0, RAD(90)), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.25, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- elseif hold == true and char:FindFirstChild("cooldown") then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * ANGLES(0, 0, RAD(90)), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.25, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- elseif hold == true and not char:FindFirstChild("cooldown") then
- local cool = Instance.new("NumberValue",char)
- cool.Name = "cooldown"
- Debris:AddItem(cool, 0.25)
- local bullet = Instance.new("Part", workspace)
- bullet.Shape = "Ball"
- bullet.BrickColor = BrickColor.new("New Yeller")
- bullet.Material = "Neon"
- bullet.CanCollide = false
- bullet.Size = Vector3.new(1, 1, 1)
- bullet.CFrame = CFrame.new(Vector3.new(duk.Position.x, duk.Position.y, duk.Position.z), mouse.Hit.p)
- bullet.Touched:connect(function(hit)
- coroutine.resume(coroutine.create(function()
- for i,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") and not bullet:FindFirstChild("cooldown") and hit.Parent ~= char then
- if v.Health > 9999 then
- v.Health = 0
- v.MaxHealth = 0
- end
- NewSound(bullet, 168513088, 1.5, 10, false)
- v.Health = v.Health - 20
- bullet.Anchored = true
- Debris:AddItem(cool, 0.5)
- local effect1 = Instance.new("Part", workspace)
- effect1.Anchored = false
- effect1.BrickColor = BrickColor.new("New Yeller")
- effect1.Material = "Neon"
- effect1.CanCollide = false
- effect1.Size = Vector3.new(1, 2.5, 1)
- effect1.CFrame = bullet.CFrame * CFrame.Angles(Rad(45), Rad(45), Rad(45))
- local mesh = Instance.new("SpecialMesh",effect1)
- mesh.MeshType = "Sphere"
- local bv1 = Instance.new("BodyVelocity",effect1)
- bv1.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv1.Velocity = effect1.CFrame.lookVector * 50
- local effect2 = Instance.new("Part", workspace)
- effect2.Anchored = false
- effect2.BrickColor = BrickColor.new("New Yeller")
- effect2.Material = "Neon"
- effect2.CanCollide = false
- effect2.Size = Vector3.new(1, 2.5, 1)
- effect2.CFrame = bullet.CFrame * CFrame.Angles(Rad(90), Rad(-45), Rad(-45))
- local mesh = Instance.new("SpecialMesh",effect2)
- mesh.MeshType = "Sphere"
- local bv2 = Instance.new("BodyVelocity",effect2)
- bv2.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv2.Velocity = effect2.CFrame.lookVector * 50
- local cool = Instance.new("NumberValue",bullet)
- cool.Name = "cooldown"
- for i = 1,150 do
- Swait()
- bullet.Size = bullet.Size:Lerp(Vector3.new(15, 15, 15), 0.1)
- bullet.Transparency = bullet.Transparency + 0.07
- effect1.Size = effect1.Size:Lerp(Vector3.new(1.5, 4.5, 1.5), 0.065)
- effect1.Transparency = bullet.Transparency + 0.015
- effect2.Size = effect1.Size:Lerp(Vector3.new(1.5, 4.5, 1.5), 0.065)
- effect2.Transparency = bullet.Transparency + 0.015
- end
- effect1:remove()
- effect2:remove()
- bullet:remove()
- end
- end
- end))
- end)
- local bv = Instance.new("BodyVelocity",bullet)
- bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv.Velocity = bullet.CFrame.lookVector * 100
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * ANGLES(0, 0, RAD(150)), 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.25, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- until ducki == false
- GYRO:remove()
- duk.Parent = nil
- attack = false
- ducki = false
- end
- function MakeForm(PART,TYPE)
- if TYPE == "Cyl" then
- local MSH = IT("CylinderMesh",PART)
- elseif TYPE == "Ball" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Sphere"
- elseif TYPE == "Wedge" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Wedge"
- end
- end
- Debris = game:GetService("Debris")
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CF(StartPos,EndPos).lookVector
- return RayCast(StartPos, DIRECTION, Distance, Ignore)
- end
- function Lightning(Table)
- local Color = Table.Color or C3(1,1,1)
- local StartPos = Table.Start or Torso.Position
- local EndPos = Table.End or Mouse.Hit.p
- local SegmentLength = Table.SegmentL or 2
- local Thickness = Table.Thickness or 0.1
- local Dissapear = Table.DoesFade or false
- local Parent = Table.Ignore or char
- local MaxDist = Table.MaxDist or 400
- local Branches = Table.Branches or false
- local Thicken = Table.Thicken or false
- local FadeTime = Table.FadeTime or 15
- local FadeIn = Table.FadeIn or false
- local Material = Table.Material or "Neon"
- local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
- local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
- local LIGHTNINGMODEL = IT("Model",char)
- LIGHTNINGMODEL.Name = "Lightning"
- local LastBolt = nil
- for E = 1, DISTANCE do
- local ExtraSize = 0
- if Thicken == true then
- ExtraSize = (DISTANCE-E)/15
- end
- local TRANSPARENCY = 0
- if FadeIn == true then
- TRANSPARENCY = 1-((DISTANCE-E)/DISTANCE)
- if TRANSPARENCY < 0 then
- TRANSPARENCY = 0
- end
- end
- local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
- PART.Color = Color
- MakeForm(PART,"Cyl")
- if LastBolt == nil or E == DISTANCE then
- PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
- else
- PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,(DISTANCE-E)+(SegmentLength/5)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
- end
- LastBolt = PART
- if Branches == true and E < (DISTANCE-5) then
- local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
- if CHOICE == 1 then
- local LASTBRANCH = nil
- for i = 1, MRANDOM(2,5) do
- local ExtraSize2 = 0
- if Thicken == true then
- ExtraSize = ((DISTANCE-E)/25)/i
- end
- local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
- PART.Color = Color
- MakeForm(PART,"Cyl")
- if LASTBRANCH == nil then
- PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
- else
- PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
- end
- LASTBRANCH = PART
- end
- end
- end
- end
- if Dissapear == true then
- coroutine.resume(coroutine.create(function()
- for i = 1, FadeTime do
- Swait()
- for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
- if c.ClassName == "Part" then
- c.Transparency = c.Transparency + (i/FadeTime)/10
- end
- end
- end
- LIGHTNINGMODEL:remove()
- end))
- elseif Dissapear == false then
- Debris:AddItem(LIGHTNINGMODEL,0.1)
- end
- return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
- end
- PLAY = true
- function AudiencePlay()
- attack = true
- Rooted = true
- PLAY = false
- local PLAYING = true
- local SONG = CreateSound(322621962, RootPart, 10, 1, true)
- for i=0, 2, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- local ANGLE = CF(RootPart.Position-VT(0,10,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(5,25))
- local COLORS = {"New Yeller","Deep blue","Lime green","Really red","Royal purple","Pearl"}
- WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(2,2,2), Size2 = VT(0,60,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC(COLORS[MRANDOM(1,#COLORS)]).Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- until PLAYING == false or PLAY == true
- end))
- local WAND,WELD,SPARKS = SpawnWand(ra)
- KEY = mouse.KeyDown:connect(function(NEWKEY)
- if NEWKEY == "m" then
- KEY:Disconnect()
- PLAYING = false
- end
- end)
- repeat
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- for i=0, 0.13, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- SPARKS:Emit(15)
- for i = 1, 5 do
- local ANGLE = CF(WAND.Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = MRANDOM(10,50), EffectType = "Duck", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- for i=0, 0.13, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- for i=0, 0.13, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- SPARKS:Emit(15)
- for i = 1, 5 do
- local ANGLE = CF(WAND.Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = MRANDOM(10,50), EffectType = "Duck", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- for i=0, 0.13, 0.1 / Animation_Speed do
- Swait()
- if PLAYING == false then
- break
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- until PLAYING == false or SONG.Parent ~= RootPart or PLAY == true
- SONG:remove()
- CreateSound(1869741275, RootPart, 5, 1.3, false)
- WAND:remove()
- for i=0, 6, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- PLAY = true
- attack = false
- Rooted = false
- end
- function DrawCards()
- attack = true
- Rooted = true
- HATWELD.Part1 = ra
- for i=0, 1, 0.1 / Animation_Speed do
- Swait()
- HATWELD.C0 = Clerp(HATWELD.C0, CFrame.new(0.75, 1.5, 0) * CFrame.Angles(Rad(0), Rad(0), 0), 1 / Animation_Speed)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.8, 0.5, -0.2) * ANGLES(RAD(110), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.8, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- local ORI = RootPart.Orientation
- for E = 1, 3 do
- local CARD = CreatePart(3, char, "Neon", 0, 0, BRICKC("Pearl"), "Card", VT(0.3,0,0.7), true)
- local COLORS = {"New Yeller","Really red","Dark indigo","Really black"}
- local COLOR = COLORS[MRANDOM(1,#COLORS)]
- CARD.Color = BRICKC(COLOR).Color
- CARD.CFrame = HAT.Base.CFrame*CF(-0.1,0,0)
- CARD.Orientation = ORI
- CARD.Position = VT(CARD.Position.X,RootPart.Position.Y+0.7,CARD.Position.Z)
- local POS = Mouse.Hit.p
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = CARD.Size, Size2 = VT(1.3,1.3,1.3), Transparency = 0, Transparency2 = 1, CFrame = CARD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = 1177785010, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- for i= 1, 25 do
- Swait()
- HATWELD.C0 = Clerp(HATWELD.C0, CFrame.new(0.75, 1.5, 0) * CFrame.Angles(Rad(0), Rad(0), 0), 1 / Animation_Speed)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.8, 0.5, -0.2) * ANGLES(RAD(110), RAD(0), RAD(35*E)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.8, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-25)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- coroutine.resume(coroutine.create(function()
- wait(0.5)
- for i = 1, 150 do
- Swait()
- if COLOR ~= "Really red" then
- CARD.CFrame = Clerp(CARD.CFrame, CF(CARD.Position,POS), 0.2) * CF(0,0,-1)
- else
- CARD.CFrame = Clerp(CARD.CFrame, CF(CARD.Position,POS), 0.2) * CF(0,0,-0.6)
- end
- if (CARD.Position - POS).Magnitude < 2 then
- break
- end
- end
- local LOC = CARD.Position
- CARD:remove()
- if COLOR == "New Yeller" then
- --SHAKECAM(LOC,35,1,35)
- WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.9, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = 304999618, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- for i = 1, 5 do
- Lightning({Material = "Neon", FadeIn = false, Color = CARD.Color, Start = LOC, End = LOC+VT(MRANDOM(-70,70),MRANDOM(-70,70),MRANDOM(-70,70)), SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = workspace, MaxDist = MRANDOM(18,25), Branches = false, FadeTime = 25, Thicken = false})
- end
- local EN = {true,false}
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= char then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO and HUM.Health > 0 then
- if (TORSO.Position - LOC).Magnitude <= 20 then
- coroutine.resume(coroutine.create(function()
- for i = 1, 250 do
- Swait()
- if HUM.Health > 0 then
- HUM.PlatformStand = EN[MRANDOM(1,2)]
- HUM.Sit = EN[MRANDOM(1,2)]
- TORSO.RotVelocity = VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))*15
- if MRANDOM(1,50) == 1 then
- CreateSound(168586586, TORSO, 4, MRANDOM(12,17)/10, false)
- ApplyDamage(HUM,MRANDOM(3,7))
- for i = 1, MRANDOM(1,3) do
- Lightning({Material = "Neon", FadeIn = false, Color = CARD.Color, Start = TORSO.Position, End = TORSO.Position+VT(MRANDOM(-70,70),MRANDOM(-70,70),MRANDOM(-70,70)), SegmentL = 2, Thickness = 0, DoesFade = false, Ignore = workspace, MaxDist = MRANDOM(5,8), Branches = false, FadeTime = 25, Thicken = false})
- end
- end
- else
- break
- end
- end
- HUM.PlatformStand = false
- end))
- end
- end
- end
- end
- end
- elseif COLOR == "Really red" then
- ApplyAoE(LOC,35,0,0,0,nil,true)
- --SHAKECAM(LOC,55,10,25)
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = 288641686, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- for i = 1, 35 do
- local ANGLE = CF(LOC) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
- WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(4,4,4), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- elseif COLOR == "Dark indigo" then
- --SHAKECAM(LOC,35,2,25)
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = 178452217, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= char then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO and HUM.Health > 0 then
- if (TORSO.Position - LOC).Magnitude <= 20 then
- coroutine.resume(coroutine.create(function()
- for i = 1, 450 do
- Swait()
- if HUM.Health > 0 then
- HUM.Health = HUM.Health - 0.1
- HUM:MoveTo(TORSO.Position+VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))*45)
- if MRANDOM(1,15) == 1 then
- HUM.Jump = true
- TORSO.CFrame = TORSO.CFrame * CF(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
- end
- else
- break
- end
- end
- HUM:MoveTo(TORSO.Position)
- end))
- end
- end
- end
- end
- end
- elseif COLOR == "Really black" then
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = 592877506, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(15,15,15), Size2 = VT(35,35,35), Transparency = 0.8, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CARD.Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= char then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO and HUM.Health > 0 then
- if (TORSO.Position - LOC).Magnitude <= 30 and TORSO:FindFirstChild("LowGrav") == nil then
- local b = IT("BodyForce",TORSO)
- b.Name = "LowGrav"
- b.force = Vector3.new(0,3500,0)
- Debris:AddItem(b,5)
- local bv = Instance.new("BodyVelocity",TORSO)
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(TORSO.Position,TORSO.Position + VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))*45).lookVector*35
- HUM.PlatformStand = true
- TORSO.RotVelocity = VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))*15
- Debris:AddItem(bv,0.01)
- end
- end
- end
- end
- end
- end
- end))
- end
- HATWELD.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(Rad(0), Rad(0), 0)
- HATWELD.Part1 = hed
- attack = false
- Rooted = false
- end
- mouse.Button1Down:connect(function()
- hold = true
- end)
- mouse.Button1Up:connect(function()
- hold = false
- end)
- mouse.KeyDown:connect(function(key)
- if key == "q" and attack == false then
- DissapearingAct()
- end
- if key == "c" and attack == false then
- BonusDuck()
- end
- if key == "z" and attack == false then
- DrawCards()
- end
- if key == "y" and attack == false then
- BonusDucks()
- end
- if key == "m" then
- if PLAY then
- PLAY = false
- AudiencePlay()
- else
- PLAY = true
- end
- end
- if key == "l" then
- if PLAY then
- PLAY = false
- else
- PLAY = true
- end
- end
- if key == "e" then
- if ducki then
- ducki = false
- else
- gun()
- end
- end
- end)
- while true do
- Swait()
- sine = sine + 1
- hum.JumpPower = 56
- hum.WalkSpeed = Speed
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- SINE = SINE + CHANGE
- hum.HipHeight = 0.8
- if Rooted == true then
- Speed = 0
- elseif Rooted == false and attack == false then
- Speed = 35
- end
- if PLAY == true and sang.Parent == root then
- sang.SoundId = "rbxassetid://1583302174"
- sang.Pitch = 1
- sang.Volume = 10
- sang.Looped = true
- sang:ClearAllChildren()
- elseif PLAY == false then
- sang.SoundId = "rbxassetid://0"
- sang.Pitch = 0
- sang.Volume = 0
- sang.Looped = true
- sang:ClearAllChildren()
- end
- if TORSOVELOCITY < 1 then
- anim = "Idle"
- if attack == false then
- sped = 16
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.25, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- elseif TORSOVELOCITY > 1 then
- anim = "Walk"
- if attack == false then
- sped = 16
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 3)) * ANGLES(RAD(14 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.2, 0) * ANGLES(RAD(60 * COS(SINE / 6)), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * CF(0, -0.2, 0) * LEFTSHOULDERC0, 1 / Animation_Speed)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement