sawgamer1

Untitled

Dec 27th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6. -- baldi script by theamazingnater enjoy peeps
  7. plr = game.Players.LocalPlayer
  8. char = plr.Character
  9.  
  10. wait(1)
  11. local slap = Instance.new("Sound",char)
  12. slap.SoundId = "rbxassetid://1841427728"
  13. slap.Volume = 10
  14. for i,v in pairs(char:GetChildren()) do
  15. if v.ClassName == "Part" then
  16. v.Transparency = 1
  17. end
  18. end
  19. for i,v in pairs(char:GetChildren()) do
  20. if v.ClassName == "Accessory" then
  21. v.Handle.Transparency = 1
  22. end
  23. end
  24. char.Head.face.Transparency = 1
  25. local sweep = Instance.new("Part")
  26. local sweepdecal1 = Instance.new("Decal",sweep)
  27. local sweepdecal2 = Instance.new("Decal",sweep)
  28. local weld = Instance.new("Weld",sweep)
  29. sweepdecal1.Face = "Back"
  30. sweepdecal1.Texture = "rbxassetid://1814499405"
  31. sweepdecal2.Face = "Front"
  32. sweepdecal2.Texture = "rbxassetid://1814499405"
  33. sweep.Name = "gotta sweep sweep sweep"
  34. sweep.Size = Vector3.new(4.2, 8.4, 0.114)
  35. sweep.Transparency = 1
  36. sweep.CanCollide = false
  37. weld.Part0 = char.Torso
  38. weld.Part1 = sweep
  39. weld.C0 = CFrame.new(-0.466694832, 1.18746996, -0.594377518, -0.999195099, 0, 0.0401160046, 0, 1, 0, -0.0401160046, 0, -0.999195099)
  40. sweep.Parent = char
  41. char.Humanoid.HipHeight = 0.3
  42. slapspeed = 2
  43. walkSpeed = 20.3
  44. char.Humanoid.WalkSpeed = 20.3
  45. anger = 1 -- 1 is normal.
  46. coroutine.wrap(function()
  47. while true do
  48. wait()
  49. if anger == 1 then
  50. slapspeed = 2 -- Normal speed.
  51. end
  52. if anger == 2 then
  53. slapspeed = 1
  54. end
  55. if anger == 3 then
  56. slapspeed = 0.5
  57. end
  58. if anger == 4 then
  59. slapspeed = 0.1
  60. end
  61. end
  62. end)()
  63. sweep.Touched:connect(function(part)
  64. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  65. if human and human.Parent.Name ~= char.Name then
  66. anger = anger + 1
  67. human.Health = 0
  68. end
  69. end)
  70. while true do
  71. wait(slapspeed)
  72. sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1814500416"
  73. sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1814500416"
  74. slap:Play()
  75. wait(0.4)
  76. sweepdecal1.Face = "Back"
  77. sweepdecal1.Texture = "rbxassetid://1814499405"
  78. sweepdecal2.Face = "Front"
  79. sweepdecal2.Texture = "rbxassetid://1814499405"
  80. end
Advertisement
Add Comment
Please, Sign In to add comment