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
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- hats = Instance.new("Model",nil)
- for i,v in pairs (char:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- v.Parent = hats
- end
- end
- local main = Instance.new("Part",char)
- main.CanCollide = false
- main.BrickColor = BrickColor.new("Dark stone grey")
- main.Size = Vector3.new(3, 4, 3)
- local Music = Instance.new("Sound",main)Music.SoundId = "rbxassetid://382403699" Music.Volume = 6 Music.Looped = true Music:Play()
- local mesh = Instance.new("CylinderMesh",main)
- local mweld = ezweld(char, tors, main, CFrame.new(0, 0, 0))
- local lid = Instance.new("Part",char)
- lid.CanCollide = false
- lid.BrickColor = BrickColor.new("Dark stone grey")
- lid.Size = Vector3.new(3, 0.4, 3)
- local lmesh = Instance.new("SpecialMesh",lid)
- lmesh.MeshId = "rbxassetid://16100825"
- lmesh.TextureId = "rbxassetid://16278914"
- lmesh.Scale = Vector3.new(1.5, 1, 1.6)
- local lweld = ezweld(char, main, lid, CFrame.new(0, 2, 0))
- lidnor = CFrame.new(0, 2, 0)
- local sped = 10
- local a = Instance.new("Decal",main)
- a.Face = "Front"
- a.Texture = "rbxassetid://13264025"
- local a = Instance.new("Decal",main)
- a.Face = "Back"
- a.Texture = "rbxassetid://13264025"
- local a = Instance.new("Decal",main)
- a.Face = "Left"
- a.Texture = "rbxassetid://13264025"
- local a = Instance.new("Decal",main)
- a.Face = "Right"
- a.Texture = "rbxassetid://13264025"
- local a = Instance.new("Decal",main)
- a.Face = "Top"
- a.Texture = "rbxassetid://13615350"
- local a = Instance.new("Decal",main)
- a.Face = "Bottom"
- a.Texture = "rbxassetid://13264025"
- function disposal()
- attack = true
- for i = 1,8 do
- Swait()
- clerp(lweld, lidnor * CFrame.new(0, 1.15, 0.5) * CFrame.Angles(Rad(50), 0, 0), 0.3)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
- clerp(neck, necknor, 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- end
- local ee = true
- local block = Instance.new("Part",workspace)
- block.Size = Vector3.new(1, 1, 1)
- block.CFrame = lid.CFrame * CFrame.new(0, -1.5, 0)
- block.Velocity = lid.CFrame.lookVector * 50
- block.Touched:connect(function(hit)
- if block.Velocity ~= Vector3.new(0, 0, 0) then
- local nub = hit.Parent
- if nub:FindFirstChildOfClass("Humanoid") and nub ~= char and ee == true then
- for i,v in pairs (nub:children()) do
- if v:IsA("Part") and nub ~= workspace or v:IsA("MeshPart") and nub ~= workspace then
- local clone = v:Clone()
- clone.Parent = workspace
- clone.Transparency = 0.75
- clone.BrickColor = BrickColor.new("Really red")
- clone.CanCollide = false
- clone.Material = "Neon"
- clone:BreakJoints()
- clone:ClearAllChildren()
- clone.Anchored = true
- clone.Size = clone.Size + Vector3.new(0.01, 0.01, 0.01)
- Debris:AddItem(clone, 0.5)
- end
- if v:IsA("Humanoid") and nub ~= workspace then
- v.Health = v.Health - 10
- local s = Instance.new("Sound",hit) s.SoundId = "rbxassetid://4018616850" s.Volume = 10 s:Play()
- end
- end
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- wait(0.75)
- ee = false
- end))
- local ack = math.random(1, 3)
- if ack == 1 then
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Top"
- top.Texture = "rbxassetid://50485570"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Bottom"
- top.Texture = "rbxassetid://3757821229"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Left"
- top.Texture = "rbxassetid://3633730371"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Right"
- top.Texture = "rbxassetid://3633730371"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Front"
- top.Texture = "rbxassetid://3633730371"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Back"
- top.Texture = "rbxassetid://3633730371"
- top.Transparency = 0
- elseif ack == 2 then --explodes
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Top"
- top.Texture = "rbxassetid://2748239465"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Bottom"
- top.Texture = "rbxassetid://2748239465"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Left"
- top.Texture = "rbxassetid://3828435283"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Right"
- top.Texture = "rbxassetid://3828435283"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Front"
- top.Texture = "rbxassetid://3828435283"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Back"
- top.Texture = "rbxassetid://3828435283"
- top.Transparency = 0
- coroutine.resume(coroutine.create(function()
- wait(1.25)
- local ex = Instance.new("Explosion",script)
- ex.Position = block.Position
- local s = Instance.new("Sound",lid) s.SoundId = "rbxassetid://180120107" s.Volume = 10 s:Play() Debris:AddItem(s, 2)
- block:remove()
- end))
- elseif ack == 3 then
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Top"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Bottom"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Left"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Right"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Front"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- local top = Instance.new("Decal",block)
- top.Name = "a"
- top.Face = "Back"
- top.Texture = "rbxassetid://3131912507"
- top.Transparency = 0
- end
- Debris:AddItem(block, 15)
- for i = 1,8 do
- Swait()
- clerp(lweld, lidnor * CFrame.new(0, 1.15, 0.5) * CFrame.Angles(Rad(50), 0, 0), 0.3)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
- clerp(neck, necknor, 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- end
- attack = false
- end
- hidden = false
- function hide()
- if hidden then
- hidden = false
- attack = false
- Music.Playing = true
- else
- attack = true
- hidden = true
- Music.Playing = false
- for i = 1,8 do
- Swait()
- clerp(lweld, lidnor, 0.3)
- clerp(rootj, rootjnor * CFrame.new(0, 0, -1.1), 0.3)
- clerp(neck, necknor, 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, 1.1, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, 1.1, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- end
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and hidden == false then
- disposal()
- end
- if key == "q" then
- hide()
- end
- end)
- if plr.Name == "Tennozene" or plr.Name == "DIVCORE" then
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://131490087"
- s.Volume = 10
- s.Looped = true
- s:Play()
- for i,v in pairs (plr.Backpack:children()) do
- if v:IsA("Tool") then
- v:remove()
- end
- end
- wait(2)
- local sphere = Instance.new("Part",workspace)
- sphere.Size = Vector3.new(1, 1, 1)
- sphere.Shape = "Ball"
- sphere.Transparency = 0.5
- sphere.Position = tors.Position
- sphere.BrickColor = BrickColor.new("Really red")
- sphere.CanCollide = false
- sphere.Anchored = true
- Instance.new("ForceField",char).Visible = false
- sphere.Touched:connect(function()
- local ex = Instance.new("Explosion",workspace)
- ex.Position = sphere.Position
- ex.BlastRadius = 10000
- end)
- while true do
- Swait()
- sphere.Size = sphere.Size + Vector3.new(5, 5, 5)
- end
- end
- while true do
- Swait()
- if attack == false then
- ra.Transparency = 1
- la.Transparency = 1
- hed.Transparency = 1
- end
- for i,v in pairs (char:children()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Locked = true
- end
- end
- sine = sine + 1
- hum.JumpPower = 56
- hum.WalkSpeed = sped
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- torsverticalvel = root.Velocity.y
- hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
- if TORSOVELOCITY < 1 and hitfloor ~= nil then
- anim = "Idle"
- if attack == false then
- clerp(lweld, lidnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 20), 0) * CFrame.Angles(Rad(2 + 2 * Cos(sine / 20)), 0, 0), 0.3)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
- clerp(neck, necknor, 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- end
- elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
- anim = "Walk"
- if attack == false then
- clerp(lweld, lidnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(2 + 2 * Cos(sine / 12)), 0, 0), 0.3)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.5 + 0.1 * Cos(sine / 12)), 0.3)
- clerp(neck, necknor, 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(18 * Sin(sine / 8))) * CFrame.new(0 + 0.075 * Cos(sine / 4), -0.5 - 0.1 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(18 * Sin(sine / 8))) * CFrame.new(0 + 0.075 * Cos(sine / 4), -0.5 - 0.1 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- end
- elseif torsverticalvel > 1 and hitfloor == nil then
- anim = "Jump"
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(5), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(-5), 0, 0), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(-20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(160)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(-160)), 0.3)
- end
- elseif torsverticalvel < 1 and hitfloor == nil then
- anim = "Fall"
- if attack == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(25), 0, 0), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(35)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-35)), 0.3)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement