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")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
- function Smooth(part)
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.RightSurface = "Smooth"
- part.LeftSurface = "Smooth"
- end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- 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
- 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 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
- local playstealanim = false
- hum.Animator:Destroy()
- hold = false
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- --------------
- local cane = Instance.new("Model",nil)
- cane.Name = "tehepikcane"
- local wood = Instance.new("Part",cane)
- wood.Material = "Wood"
- wood.BrickColor = BrickColor.new("Brown")
- wood.Size = Vector3.new(3.467, 0.15, 0.15)
- wood.CanCollide = false
- local weld1 = ezweld(char, wood, ra, CFrame.new(1.873 / 2, 0.75, 0))
- --------------
- function Oof(Ch)
- if Ch.ClassName == "Model" and Ch ~= char then
- local D = Ch:GetDescendants()
- for i = 1,#D do
- local ee = D[i]
- if ee:IsA("Humanoid") then
- ee.BreakJointsOnDeath = false
- elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
- local Old = ee.Parent
- ee.Parent = nil
- local R = Instance.new("Glue",Old)
- R.Name = ee.Name
- R.Part0 = ee.Part0
- R.Part1 = ee.Part1
- R.C0 = ee.C0
- R.C1 = ee.C1
- end
- end
- end
- end
- function Dismember(MAN,DOWHAT)
- local HUM = MAN:FindFirstChildOfClass("Humanoid")
- if HUM then
- HUM.Health = 0
- HUM.PlatformStand = true
- end
- Oof(MAN)
- end
- local particle1 = Instance.new("ParticleEmitter",nil)
- particle1.Texture = "http://www.roblox.com/asset/?id=24419398"
- particle1.LockedToPart = false
- particle1.Name = "Fire"
- particle1.Enabled = true
- particle1.Size = NumberSequence.new(0.23, 0.15)
- particle1.Lifetime = NumberRange.new(5)
- particle1.LightEmission = NumberSequence.new(1)
- particle1.EmissionDirection = "Bottom"
- particle1.VelocityInheritance = NumberSequence.new(1)
- particle1.Rotation = NumberRange.new(155)
- particle1.RotSpeed = NumberRange.new(50)
- particle1.Speed = NumberRange.new(7)
- particle1.SpreadAngle = Vector2.new(8.5, 5)
- particle1.Rate = 35
- particle1.LightEmission = 0.2
- particle1.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(255,0,0)),ColorSequenceKeypoint.new(0.5,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
- conparticle = particle1:Clone()
- conparticle.Parent = nil
- conparticle.Rate = 55
- conparticle.Size = NumberSequence.new(0.9 / 2, 0.8 / 2)
- conparticle.RotSpeed = NumberRange.new(0)
- conparticle.Speed = NumberRange.new(10)
- conparticle.SpreadAngle = Vector2.new(0, 0)
- conparticle.Acceleration = Vector3.new(0, -10, 0)
- conparticle.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.15,Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.35,Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(1,Color3.new(0, 0, 0))})
- function blocky(poot)
- Instance.new("SpecialMesh",poot).MeshType = "Brick"
- end
- function ink(ch)
- for _,v in pairs (ch:children()) do
- if v:IsA("Part") then
- v.Color = Color3.new(0, 0, 0)
- v.Material = "SmoothPlastic"
- conparticle:Clone().Parent = v
- if v.Name ~= "Head" then
- blocky(v)
- end
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- local poot = v:FindFirstChildOfClass("Part")
- poot.Color = Color3.new(0, 0, 0)
- if poot then
- local mesh = poot:FindFirstChildOfClass("SpecialMesh")
- if mesh then
- mesh.TextureId = ""
- end
- end
- end
- if v:IsA("Shirt") or v:IsA("Pants") then
- v:Destroy()
- end
- end
- end
- ink(char)
- machine = Instance.new("Sound",tors)
- machine.Volume = 7
- machine.SoundId = "rbxassetid://681418426"
- machine.Looped = true
- machine:Play()
- ecksdee = 1
- function E()
- for i = 1,11 do
- Swait()
- clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ecksdee)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
- clerp(RS, RSnor * CFrame.new(0.5, -0.35, -0.35) * CFrame.Angles(Rad(0), Rad(0), Rad(50)), ecksdee)
- clerp(LS, LSnor * CFrame.new(-0.5, -0.35, -0.35) * CFrame.Angles(Rad(0), Rad(0), Rad(-50)), ecksdee)
- end
- end
- function danciboi()
- attack = true
- dancin = true
- if hold then
- hold = false
- cane.Parent = nil
- else
- hold = true
- cane.Parent = char
- end
- repeat
- for i = 1,15 do
- Swait()
- clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.1, 0), ecksdee)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, Rad(0), 0), ecksdee)
- clerp(RS, RSnor * CFrame.new(0.5, -0.45, -0.75) * CFrame.Angles(Rad(45), Rad(0), Rad(50)), ecksdee)
- clerp(LS, LSnor * CFrame.new(-0.25, -0.25, -0.35) * CFrame.Angles(Rad(-45), Rad(0), Rad(-56)), ecksdee)
- end
- E()
- for i = 1,15 do
- Swait()
- clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, -0.1, 0), ecksdee)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, Rad(0), 0), ecksdee)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
- clerp(RS, RSnor * CFrame.new(0.25, -0.25, -0.35) * CFrame.Angles(Rad(-45), Rad(0), Rad(56)), ecksdee)
- clerp(LS, LSnor * CFrame.new(-0.5, -0.45, -0.75) * CFrame.Angles(Rad(45), Rad(0), Rad(-50)), ecksdee)
- end
- E()
- until hold == false
- attack = false
- dancin = false
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- danciboi()
- end
- end)
- while true do
- Swait()
- sine = sine + 1
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- if TORSOVELOCITY < 1 then
- anim = "Idle"
- if attack == false then
- clerp(neck, necknor * CFrame.Angles(0.5, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 6)) * CFrame.Angles(-math.rad(tors.Velocity.y)*2.5, 0, -math.rad(tors.Velocity.z)*2), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
- clerp(RS, RSnor * CFrame.new(0, -0.05 + 0.15 * Cos(sine / 6), 0) * CFrame.Angles(Rad(-10 + 10 * Cos(sine / 6)), Rad(-20), 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, -0.05 + 0.15 * Cos(sine / 6), 0) * CFrame.Angles(Rad(-10 + 10 * Cos(sine / 6)), Rad(20), 0), 0.15)
- end
- clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- else
- anim = "Walk"
- if attack == false then
- clerp(neck, necknor, 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 6)) * CFrame.Angles(-math.rad(tors.Velocity.y)*2.5, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0.25, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
- clerp(LH, LHnor * CFrame.new(-0.25, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
- --clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
- --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
- clerp(RS, RSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, Rad(90)), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, 0.675 * Cos(sine / 12)), 0.15)
- end
- clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.4 + 0.875 * Cos(sine / 12)), 0.15)
- clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.4 + 0.875 * Cos(sine / 12)), 0.15)
- --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement