Advertisement
Bendy928443534

Untitled

Jul 15th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  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. plr = game.Players.LocalPlayer
  8. repeat wait() until plr.Character
  9. char = plr.Character
  10.  
  11. for i,v in pairs(char:GetChildren()) do
  12. if v.ClassName == "Part" then
  13. v.Transparency = 1
  14. elseif v.ClassName == "Accessory" then
  15. v.Handle.Transparency = 1
  16. end
  17. end
  18. char.Animate:Destroy()
  19. char.Humanoid.Animator:Destroy()
  20. local bill = Instance.new("BillboardGui",char.Head)
  21. bill.Name = "BaldiDisplay"
  22. bill.Adornee = bill.Parent
  23. bill.Size = UDim2.new(6, 0 , 7, 0)
  24. bill.Archivable = true
  25. bill.AutoLocalize = true
  26. local img = Instance.new("ImageLabel",bill)
  27. img.Size = UDim2.new(0.75, 0 , 1.5, 0)
  28. img.Image = "http://www.roblox.com/asset/?id=1983371401"
  29. img.Visible = true
  30. img.BackgroundTransparency = 1
  31. img.Position = UDim2.new(0.213, 0 , 0, 0)
  32. char.Humanoid.HipHeight = 2.1
  33. char.Humanoid.Name = "Baldi"
  34. Slap = Instance.new("Sound",char.Head)
  35. Slap.SoundId = "rbxassetid://1909185477"
  36. Slap.Volume = 10
  37. HEHEHEH = Instance.new("Sound",char)
  38. HEHEHEH.SoundId = "rbxassetid://2021702927"
  39. HEHEHEH.Volume = 4
  40. Screech = Instance.new("Sound",char.Head)
  41. Screech.SoundId = "rbxassetid://1784592449"
  42. Screech.Volume = 10
  43. GETOUTWHILEYOUSTILLCAN = Instance.new("Sound",char)
  44. GETOUTWHILEYOUSTILLCAN.SoundId = "rbxassetid://1846448410"
  45. GETOUTWHILEYOUSTILLCAN:Play()
  46. GETOUTWHILEYOUSTILLCAN.Volume = 4
  47. JumpCount = 0
  48. char.Head.face.Transparency = 1
  49. char.Baldi.MaxHealth = 0
  50. touched = false
  51. char.Torso.Touched:connect(function(part)
  52. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  53. if human and human.Parent.Name ~= char.Name and touched == false then
  54. human.Health = 0
  55. Screech:Play()
  56. touched = true
  57. wait(0.9)
  58. if JumpCount == 0 and human.Jump then
  59. JumpCount = 1
  60. else
  61. touched = false
  62. JumpCount = 0
  63. end
  64. wait(1)
  65. if JumpCount == 1 and human.Jump then
  66. JumpCount = 2
  67. else
  68. JumpCount = 0
  69. end
  70. wait(1)
  71. if JumpCount == 2 and human.Jump then
  72. JumpCount = 3
  73. else
  74. JumpCount = 0
  75. end
  76. wait(1)
  77. if JumpCount == 3 and human.Jump then
  78. JumpCount = 4
  79. else
  80. JumpCount = 0
  81. end
  82. wait(1)
  83. if JumpCount == 4 and human.Jump then
  84. JumpCount = 0
  85. wait(1)
  86. touched = false
  87. char.Baldi.Walkspeed = 16
  88. human.WalkSpeed = 16
  89. else
  90. JumpCount = 0
  91. end
  92. end
  93. end)
  94. while true do
  95. wait()
  96. img.Image = "http://www.roblox.com/asset/?id=1983155193"
  97. char.Baldi.WalkSpeed = 100
  98. Slap:Play()
  99. wait(0.10)
  100. img.Image = "http://www.roblox.com/asset/?id=1983154100"
  101. wait(0.05)
  102. img.Image = "http://www.roblox.com/asset/?id=1983152544"
  103. wait(0.05)
  104. img.Image = "http://www.roblox.com/asset/?id=1983150889"
  105. wait(0.05)
  106. img.Image = "http://www.roblox.com/asset/?id=1983371401"
  107. char.Baldi.WalkSpeed = 0
  108. wait(0.60)
  109. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement