cat568

Untitled

Dec 26th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --just put this on the top of a script and boom 89% works
  2. --note this does not work on big scripts
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127. self._btrs[name] = self.Heartbeat:Connect(fun)
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146.  
  147.  
  148.  
  149. warn('Script by stommmDev haha now u cant copy my scripts :D')
  150.  
  151. local plr = game.Players.LocalPlayer
  152. repeat wait(.2) until plr.Character
  153. local char = plr.Character
  154. if char:FindFirstChild("Animate") then
  155. char.Animate:Destroy()
  156. end
  157. local runsrv = game:GetService("RunService")
  158. local progs = 0
  159. char:WaitForChild("Torso")
  160. local armR = char.Torso["Right Shoulder"]
  161. local armL = char.Torso["Left Shoulder"]
  162. local legR = char.Torso["Right Hip"]
  163. local legL = char.Torso["Left Hip"]
  164. local human = char.Humanoid
  165. human.Name = "ScriptbyStommmDev"
  166. local walking = false
  167. for i,v in pairs(human:GetPlayingAnimationTracks()) do
  168. v:Stop()
  169. end
  170. local root = char:WaitForChild("HumanoidRootPart").RootJoint
  171. local jumpposeaL = armL.C0 * CFrame.Angles(-1.8,0,0) * CFrame.new(0,-.5,-.4)
  172. local jumpposeaR = armR.C0 * CFrame.Angles(-1.8,0,0) * CFrame.new(0,-.5,-.4)
  173. local oldarmR = armR.C0
  174. local oldarmL = armL.C0
  175. local jumpposeroot = root.C0 * CFrame.Angles(.2,0,0)
  176. local oldroot = root.C0
  177. local oldlegR = legR.C0
  178. local oldlegL = legL.C0
  179. local legpos1R = legR.C0 * CFrame.Angles(0,0,.5)
  180. local legpos1L = legL.C0 * CFrame.Angles(0,0,.5)
  181. local legpos2R = legR.C0 * CFrame.Angles(0,0,-.5)
  182. local legpos2L = legL.C0 * CFrame.Angles(0,0,-.5)
  183. local animeatR = armR.C0 * CFrame.Angles(.2,.8,2)
  184. local armpos1R = armR.C0 * CFrame.Angles(0,0,-.7)
  185. local armpos1L = armL.C0 * CFrame.Angles(0,0,-.7)
  186. local armpos2R = armR.C0 * CFrame.Angles(0,0,.7)
  187. local armpos2L = armL.C0 * CFrame.Angles(0,0,.7)
  188. if char:FindFirstChild("Bighead") then else
  189. print("oh no bighead rip ur ass xdxdxdxdxdx")
  190. animeatR = armR.C0 * CFrame.Angles(.2,.8,2) * CFrame.new(-.4,0,0)
  191. end
  192. local eating = false
  193. local jumping = false
  194. human.Running:Connect(function(speed)
  195. if speed > 2 then
  196. walking = true
  197. else
  198.  
  199. walking = false
  200. end
  201. end)
  202. human.Jumping:Connect(function()
  203. jumping = true
  204. for i=1,15 do
  205.  
  206. armL.C0 = armL.C0:Lerp(jumpposeaL,.025)
  207. armR.C0 = armR.C0:Lerp(jumpposeaR,.025)
  208. root.C0 = root.C0:Lerp(jumpposeroot,.025)
  209. runsrv.RenderStepped:wait()
  210. end
  211. wait(.05)
  212. for i=1,15 do
  213.  
  214.  
  215. armL.C0 = armL.C0:Lerp(jumpposeaL * CFrame.Angles(0,0,1),.045)
  216. armR.C0 = armR.C0:Lerp(jumpposeaR * CFrame.Angles(0,0,-1),.045)
  217. root.C0 = root.C0:Lerp(jumpposeroot,.045)
  218.  
  219. runsrv.RenderStepped:wait()
  220.  
  221. end
  222.  
  223. for i=1,25 do
  224. armL.C0 = armL.C0:Lerp(oldarmL,.075)
  225. armR.C0 = armR.C0:Lerp(oldarmR,.075)
  226. root.C0 = root.C0:Lerp(oldroot,.075)
  227. runsrv.RenderStepped:wait()
  228. end
  229. jumping = false
  230. end)
  231.  
  232. local finpr = false
  233.  
  234. function onchatted2(message)
  235. if char.Head:FindFirstChild("Message") then
  236. char.Head:FindFirstChild("Message"):Destroy()
  237. end
  238. local messagebill = Instance.new("BillboardGui")
  239. messagebill.Size = UDim2.new(0,200,0,100)
  240. messagebill.Parent = plr.Character.Head
  241. messagebill.StudsOffset = Vector3.new(0,4,0)
  242. messagebill.Name = "Message"
  243. local chattext = Instance.new("TextLabel")
  244. chattext.Parent = messagebill
  245. chattext.Size = UDim2.new(1,0,1,0)
  246. chattext.BackgroundTransparency = 1
  247. chattext.TextColor3 = Color3.new(255,255,255)
  248. chattext.TextScaled = false
  249. local length = string.len(message)
  250. chattext.Text = ""
  251. chattext.TextSize = 18
  252. for i = 1, length do
  253. wait(.034)
  254. local subText = string.sub(message, 1, i)
  255.  
  256. chattext.Text = subText
  257. end
  258.  
  259. wait(3)
  260. if messagebill then
  261. for i = length,1,-1 do
  262. wait(.034)
  263. local subText = string.sub(message, 1, i)
  264.  
  265. chattext.Text = subText
  266. end
  267. wait(.034)
  268. messagebill:Destroy()
  269. end
  270.  
  271. end
  272.  
  273. runsrv.RenderStepped:connect(function()
  274.  
  275.  
  276.  
  277. human.MaxHealth = 1e5555555
  278. human.Health = 1e5555555
  279. if char:FindFirstChild("Ass") then else
  280. local force = Instance.new("ForceField",char)
  281. force.Name = "Ass"
  282. force.Visible = false
  283. end
  284. if char:FindFirstChild("ScriptbyStommmDev") then else
  285. local hum = Instance.new("Humanoid",char)
  286. hum.MaxHealth = 1e5555555
  287. hum.Health = 1e5555555
  288. hum.Name = "ScriptbyStommmDev"
  289. human = hum
  290. end
  291.  
  292.  
  293.  
  294.  
  295.  
  296. if finpr == false then
  297. if walking == true then
  298. finpr = true
  299. progs = progs + 1
  300. --print(progs)
  301. wait(.15)
  302. finpr = false
  303. else
  304. progs = 0
  305. for i = 1,25 do
  306. legR.C0 = legR.C0:Lerp(oldlegR,.075)
  307. legL.C0 = legL.C0:Lerp(oldlegL,.075)
  308. if jumping == false then
  309. if eating == false then
  310. armR.C0 = armR.C0:Lerp(oldarmR,.080)
  311. end
  312. armL.C0 = armL.C0:Lerp(oldarmL,.080)
  313. end
  314. runsrv.RenderStepped:wait()
  315.  
  316. end
  317. end
  318. end
  319. end)
  320.  
  321.  
  322.  
  323. runsrv.RenderStepped:Connect(function()
  324. if progs > 2 then
  325. progs = 0
  326. end
  327. if progs == 1 then
  328. for i = 1,15 * 1.1 do
  329. legR.C0 = legR.C0:Lerp(legpos1R,.075)
  330. legL.C0 = legL.C0:Lerp(legpos1L,.075)
  331. if jumping == false then
  332. if eating == false then
  333. armR.C0 = armR.C0:Lerp(armpos1R,.075)
  334. end
  335. armL.C0 = armL.C0:Lerp(armpos1L,.075)
  336. end
  337. runsrv.RenderStepped:wait()
  338.  
  339. end
  340. end
  341. if progs == 2 then
  342. for i = 1,15 do
  343. legL.C0 = legL.C0:Lerp(legpos2L,.065 )
  344. legR.C0 = legR.C0:Lerp(legpos2R,.065 )
  345. if jumping == false then
  346. if eating == false then
  347. armR.C0 = armR.C0:Lerp(armpos2R,.075)
  348. end
  349. armL.C0 = armL.C0:Lerp(armpos2L,.075)
  350. end
  351. runsrv.RenderStepped:wait()
  352. end
  353. end
  354.  
  355.  
  356. end)
  357.  
  358. local part = Instance.new("Part")
  359. local mesh = Instance.new("SpecialMesh")
  360.  
  361. part.Anchored = false
  362. part.Size = Vector3.new(2.15, 0.19, 2.13)
  363. part.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  364. part.BrickColor = BrickColor.new("Really black")
  365. part.TopSurface = Enum.SurfaceType.Smooth
  366. part.BottomSurface = Enum.SurfaceType.Smooth
  367. part.Parent = char
  368. part.CFrame = CFrame.new(72.465, 0.095, 98.575)
  369. mesh.TextureId = "rbxassetid://1202473285"
  370. mesh.MeshType = Enum.MeshType.FileMesh
  371. mesh.MeshId = "rbxassetid://1202473244"
  372. mesh.Parent = part
  373. mesh.Scale = Vector3.new(.8,.8,.8)
  374. local cookieweld = Instance.new("Weld",char["Right Arm"])
  375. cookieweld.Part0 = char["Right Arm"]
  376. cookieweld.Part1 = part
  377. cookieweld.C0 = CFrame.new(0,-1,0) * CFrame.Angles(0,0,1.5)
  378. local oldcookie = cookieweld.C0
  379. local cookieat = cookieweld.C0 * CFrame.Angles(-1.5,0,.5) * CFrame.new(0,.2,.6)
  380. local pga = false
  381. local neck = char.Torso.Neck
  382. local particleemitter
  383. function createparticles()
  384. particleemitter = Instance.new("ParticleEmitter")
  385. particleemitter.EmissionDirection = Enum.NormalId.Bottom
  386. particleemitter.Lifetime = NumberRange.new(2)
  387. particleemitter.Rotation = NumberRange.new(-20)
  388. particleemitter.Speed = NumberRange.new(3)
  389. particleemitter.LightInfluence = 1
  390. particleemitter.VelocitySpread = 40
  391. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.211, 0), NumberSequenceKeypoint.new(0.495, 0.075), NumberSequenceKeypoint.new(0.773, 0), NumberSequenceKeypoint.new(1, 1)})
  392. particleemitter.Texture = "rbxassetid://603193846"
  393. particleemitter.Color = ColorSequence.new(Color3.new(0.776471, 0.517647, 0), Color3.new(1, 0.909804, 0.580392))
  394. particleemitter.SpreadAngle = Vector2.new(40, 40)
  395. particleemitter.Rate = 9
  396. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3), NumberSequenceKeypoint.new(1, 0.3)})
  397. particleemitter.Parent = part
  398. particleemitter.Enabled = false
  399. particleemitter.LockedToPart = true
  400. end
  401.  
  402. warn('\083\099\114\105\112\116\032\098\121\032\115\116\111\109\109\109\068\101\118\032\104\097\104\097\032\110\111\119\032\117\032\099\097\110\039\116\032\099\111\112\121\032\109\121\032\115\099\114\105\112\116\115\032\058\068')
  403.  
  404.  
  405. runsrv.RenderStepped:Connect(function()
  406. if walking == true then
  407. if pga == false then
  408. pga = true
  409. for i = 1,10 do
  410. root.C0 = root.C0 * CFrame.new(0,0,-.004)
  411. runsrv.RenderStepped:wait()
  412. end
  413. for i = 1,10 do
  414. root.C0 = root.C0 * CFrame.new(0,0,.008)
  415. runsrv.RenderStepped:wait()
  416. end
  417. for i = 1,10 do
  418. root.C0 = root.C0 * CFrame.new(0,0,-.004)
  419. runsrv.RenderStepped:wait()
  420. end
  421. pga = false
  422. end
  423. end
  424. end)
  425.  
  426. local mouse = plr:getMouse()
  427. mouse.Button1Down:Connect(function()
  428. --createparticles()
  429. if eating == false then
  430.  
  431. eating = true
  432. for i = 1,50 do
  433. armR.C0 = armR.C0:Lerp(animeatR,.1)
  434. cookieweld.C0 = cookieweld.C0:Lerp(cookieat,.1)
  435. runsrv.RenderStepped:wait()
  436. end
  437. --particleemitter.Enabled = true
  438. for i = 1,20 do
  439. neck.C0 = neck.C0 * CFrame.Angles(.01,0,0)
  440. runsrv.RenderStepped:wait()
  441. end
  442. for i = 1,20 do
  443.  
  444. neck.C0 = neck.C0 * CFrame.Angles(-.01,0,0)
  445. runsrv.RenderStepped:wait()
  446. end
  447. for i = 1,20 do
  448. neck.C0 = neck.C0 * CFrame.Angles(.01,0,0)
  449. runsrv.RenderStepped:wait()
  450. end
  451. for i = 1,20 do
  452.  
  453. neck.C0 = neck.C0 * CFrame.Angles(-.01,0,0)
  454. runsrv.RenderStepped:wait()
  455. end
  456. --particleemitter.Enabled = false
  457. --particleemitter:Destroy()
  458. for i = 1,50 do
  459. armR.C0 = armR.C0:Lerp(oldarmR,.1)
  460. cookieweld.C0 = cookieweld.C0:Lerp(oldcookie,.1)
  461. runsrv.RenderStepped:wait()
  462. end
  463. eating = false
  464.  
  465.  
  466. end
  467. end)
  468.  
  469. function deletepos()
  470. for i,v in pairs(char:GetChildren()) do
  471. if v:IsA("BasePart") then
  472. for y,l in pairs(v:GetChildren()) do
  473. if l:IsA("BodyPosition") or l:IsA("BodyForce") or l:IsA("BodyVelocity") then
  474. l:Destroy()
  475. end
  476. end
  477. end
  478. end
  479. end
  480.  
  481. mouse.KeyDown:Connect(function(k)
  482. if k == "x" then
  483. local sound = Instance.new("Sound",char.Head)
  484. sound.Volume = 10
  485. sound.SoundId = "rbxassetid://1604398888"
  486. sound:Play()
  487. onchatted2("Would you like a cookie xdddd")
  488. end
  489. end)
  490.  
  491.  
  492. while wait(2) do
  493. deletepos()
  494. end
  495. -----------------
Advertisement
Add Comment
Please, Sign In to add comment