Advertisement
HenloMyDude

ink person script by me

Nov 8th, 2019
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.13 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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
  6.  
  7. function Smooth(part)
  8. part.TopSurface = "Smooth"
  9. part.BottomSurface = "Smooth"
  10. part.RightSurface = "Smooth"
  11. part.LeftSurface = "Smooth"
  12. end
  13.  
  14. plr = owner
  15. char = plr.Character
  16. ra = char["Right Arm"]
  17. la = char["Left Arm"]
  18. root = char.HumanoidRootPart
  19. hum = char.Humanoid
  20. dancin = false
  21.  
  22. clerp = function(toclerp, cf, number)
  23. local joint = toclerp
  24. joint.C0 = joint.C0:Lerp(cf, number)
  25. end
  26.  
  27. clerp2 = function(toclerp, cf)
  28. local joint = toclerp
  29. joint.C0 = cf
  30. end
  31.  
  32. clerp3 = function(toclerp, cf, number)
  33. local joint = toclerp
  34. joint.C1 = joint.C1:Lerp(cf, number)
  35. end
  36.  
  37. Swait,swait = function(number)
  38. if number == 0 or number == nil then
  39. game:GetService("RunService").Heartbeat:Wait()
  40. else
  41. for i = 1,number do
  42. game:GetService("RunService").Heartbeat:Wait()
  43. end
  44. end
  45. end
  46.  
  47. ezweld = function(p, a, b, cf)
  48. local weld = Instance.new("Weld",p)
  49. weld.Part0 = a
  50. weld.Part1 = b
  51. weld.C0 = cf
  52. return weld
  53. end
  54.  
  55. IT = Instance.new
  56. Rad = math.rad
  57. Cos = math.cos
  58. Sin = math.sin
  59. BrickC = BrickColor.new
  60. C3 = Color3.new
  61. VT = Vector3.new
  62.  
  63. anim = "Idle"
  64. attack = false
  65. local RS = char.Torso["Right Shoulder"]
  66. local LS = char.Torso["Left Shoulder"]
  67. local RH = char.Torso["Right Hip"]
  68. local LH = char.Torso["Left Hip"]
  69. local neck = char.Torso["Neck"]
  70. local anim = "Idle"
  71. local root = char.HumanoidRootPart
  72. local rootj = root.RootJoint
  73. local timepos = 0
  74. local sine = 0
  75. local RSnor = RS.C0
  76. local LSnor = LS.C0
  77. local RHnor = RH.C0
  78. local LHnor = LH.C0
  79. local RSnor2 = RS.C1
  80. local LSnor2 = LS.C1
  81. local RHnor2 = RH.C1
  82. local LHnor2 = LH.C1
  83. local rootjnor = rootj.C0
  84. local necknor = neck.C0
  85. local tors = char.Torso
  86. local playstealanim = false
  87. hum.Animator:Destroy()
  88. hold = false
  89. mouse = plr:GetMouse()
  90. hold = false
  91. Debris = game:GetService("Debris")
  92.  
  93. --------------
  94.  
  95. local cane = Instance.new("Model",nil)
  96. cane.Name = "tehepikcane"
  97. local wood = Instance.new("Part",cane)
  98. wood.Material = "Wood"
  99. wood.BrickColor = BrickColor.new("Brown")
  100. wood.Size = Vector3.new(3.467, 0.15, 0.15)
  101. wood.CanCollide = false
  102. local weld1 = ezweld(char, wood, ra, CFrame.new(1.873 / 2, 0.75, 0))
  103.  
  104. --------------
  105.  
  106. function Oof(Ch)
  107. if Ch.ClassName == "Model" and Ch ~= char then
  108. local D = Ch:GetDescendants()
  109. for i = 1,#D do
  110. local ee = D[i]
  111. if ee:IsA("Humanoid") then
  112. ee.BreakJointsOnDeath = false
  113. elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
  114. local Old = ee.Parent
  115. ee.Parent = nil
  116. local R = Instance.new("Glue",Old)
  117. R.Name = ee.Name
  118. R.Part0 = ee.Part0
  119. R.Part1 = ee.Part1
  120. R.C0 = ee.C0
  121. R.C1 = ee.C1
  122. end
  123. end
  124. end
  125. end
  126.  
  127. function Dismember(MAN,DOWHAT)
  128. local HUM = MAN:FindFirstChildOfClass("Humanoid")
  129. if HUM then
  130. HUM.Health = 0
  131. HUM.PlatformStand = true
  132. end
  133. Oof(MAN)
  134. end
  135.  
  136. local particle1 = Instance.new("ParticleEmitter",nil)
  137. particle1.Texture = "http://www.roblox.com/asset/?id=24419398"
  138. particle1.LockedToPart = false
  139. particle1.Name = "Fire"
  140. particle1.Enabled = true
  141. particle1.Size = NumberSequence.new(0.23, 0.15)
  142. particle1.Lifetime = NumberRange.new(5)
  143. particle1.LightEmission = NumberSequence.new(1)
  144. particle1.EmissionDirection = "Bottom"
  145. particle1.VelocityInheritance = NumberSequence.new(1)
  146. particle1.Rotation = NumberRange.new(155)
  147. particle1.RotSpeed = NumberRange.new(50)
  148. particle1.Speed = NumberRange.new(7)
  149. particle1.SpreadAngle = Vector2.new(8.5, 5)
  150. particle1.Rate = 35
  151. particle1.LightEmission = 0.2
  152. 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)})
  153.  
  154. conparticle = particle1:Clone()
  155. conparticle.Parent = nil
  156. conparticle.Rate = 55
  157. conparticle.Size = NumberSequence.new(0.9 / 2, 0.8 / 2)
  158. conparticle.RotSpeed = NumberRange.new(0)
  159. conparticle.Speed = NumberRange.new(10)
  160. conparticle.SpreadAngle = Vector2.new(0, 0)
  161. conparticle.Acceleration = Vector3.new(0, -10, 0)
  162. 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))})
  163.  
  164. function blocky(poot)
  165. Instance.new("SpecialMesh",poot).MeshType = "Brick"
  166. end
  167.  
  168. function ink(ch)
  169. for _,v in pairs (ch:children()) do
  170. if v:IsA("Part") then
  171. v.Color = Color3.new(0, 0, 0)
  172. v.Material = "SmoothPlastic"
  173. conparticle:Clone().Parent = v
  174. if v.Name ~= "Head" then
  175. blocky(v)
  176. end
  177. end
  178. if v:IsA("Accessory") or v:IsA("Hat") then
  179. local poot = v:FindFirstChildOfClass("Part")
  180. poot.Color = Color3.new(0, 0, 0)
  181. if poot then
  182. local mesh = poot:FindFirstChildOfClass("SpecialMesh")
  183. if mesh then
  184. mesh.TextureId = ""
  185. end
  186. end
  187. end
  188. if v:IsA("Shirt") or v:IsA("Pants") then
  189. v:Destroy()
  190. end
  191. end
  192. end
  193.  
  194. ink(char)
  195.  
  196. machine = Instance.new("Sound",tors)
  197. machine.Volume = 7
  198. machine.SoundId = "rbxassetid://681418426"
  199. machine.Looped = true
  200. machine:Play()
  201. ecksdee = 1
  202.  
  203. function E()
  204. for i = 1,11 do
  205. Swait()
  206. clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
  207. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ecksdee)
  208. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
  209. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
  210. clerp(RS, RSnor * CFrame.new(0.5, -0.35, -0.35) * CFrame.Angles(Rad(0), Rad(0), Rad(50)), ecksdee)
  211. clerp(LS, LSnor * CFrame.new(-0.5, -0.35, -0.35) * CFrame.Angles(Rad(0), Rad(0), Rad(-50)), ecksdee)
  212. end
  213. end
  214.  
  215. function danciboi()
  216. attack = true
  217. dancin = true
  218. if hold then
  219. hold = false
  220. cane.Parent = nil
  221. else
  222. hold = true
  223. cane.Parent = char
  224. end
  225. repeat
  226. for i = 1,15 do
  227. Swait()
  228. clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
  229. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.1, 0), ecksdee)
  230. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
  231. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, Rad(0), 0), ecksdee)
  232. clerp(RS, RSnor * CFrame.new(0.5, -0.45, -0.75) * CFrame.Angles(Rad(45), Rad(0), Rad(50)), ecksdee)
  233. clerp(LS, LSnor * CFrame.new(-0.25, -0.25, -0.35) * CFrame.Angles(Rad(-45), Rad(0), Rad(-56)), ecksdee)
  234. end
  235. E()
  236. for i = 1,15 do
  237. Swait()
  238. clerp(neck, necknor * CFrame.Angles(0, 0, 0), ecksdee)
  239. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, -0.1, 0), ecksdee)
  240. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, Rad(0), 0), ecksdee)
  241. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0), ecksdee)
  242. clerp(RS, RSnor * CFrame.new(0.25, -0.25, -0.35) * CFrame.Angles(Rad(-45), Rad(0), Rad(56)), ecksdee)
  243. clerp(LS, LSnor * CFrame.new(-0.5, -0.45, -0.75) * CFrame.Angles(Rad(45), Rad(0), Rad(-50)), ecksdee)
  244. end
  245. E()
  246. until hold == false
  247. attack = false
  248. dancin = false
  249. end
  250.  
  251. mouse.KeyDown:connect(function(key)
  252. if key == "e" then
  253. danciboi()
  254. end
  255. end)
  256.  
  257. while true do
  258. Swait()
  259. sine = sine + 1
  260. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  261. if TORSOVELOCITY < 1 then
  262. anim = "Idle"
  263. if attack == false then
  264. clerp(neck, necknor * CFrame.Angles(0.5, 0, 0), 0.15)
  265. 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)
  266. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  267. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  268. 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)
  269. 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)
  270. end
  271. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  272. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  273. else
  274. anim = "Walk"
  275. if attack == false then
  276. clerp(neck, necknor, 0.15)
  277. 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)
  278. clerp(RH, RHnor * CFrame.new(0.25, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  279. clerp(LH, LHnor * CFrame.new(-0.25, 0 - 0.1 * Cos(sine / 6), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  280. --clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  281. --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  282. clerp(RS, RSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, Rad(90)), 0.15)
  283. clerp(LS, LSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, 0.675 * Cos(sine / 12)), 0.15)
  284. end
  285. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.4 + 0.875 * Cos(sine / 12)), 0.15)
  286. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.4 + 0.875 * Cos(sine / 12)), 0.15)
  287. --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  288. end
  289. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement