sIendytubble

animated ruler baldi

Apr 29th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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 warn'baldi by sIendytubble'
  5. local plr = game.Players.LocalPlayer
  6. local mouse = plr:GetMouse()
  7. local char = plr.Character
  8. local head = char:WaitForChild("Head")
  9. local Torso = char:WaitForChild("Torso")
  10. local LArm = char:WaitForChild("Left Arm")
  11. local RArm = char:WaitForChild("Right Arm")
  12. local LLeg = char:WaitForChild("Left Leg")
  13. local RLeg = char:WaitForChild("Right Leg")
  14. local humanoid = char:WaitForChild("Humanoid")
  15. local rootpart = char:WaitForChild("HumanoidRootPart")
  16. humanoid.WalkSpeed = 0
  17. humanoid.AutoRotate = false
  18. local Ruler = Instance.new("Part")
  19. local rulerweld = Instance.new("Weld",Ruler)
  20. rulerweld.Part0 = RArm
  21. rulerweld.Part1 = Ruler
  22. rulerweld.C0 = CFrame.new(0.2,-0.8,-1.8) * CFrame.Angles(0,0,-math.rad(90))
  23. local RulerDecal = Instance.new("Decal")
  24. Ruler.Name = "Ruler"
  25. Ruler.Parent = char
  26. Ruler.Color = Color3.new(0.560784, 0.298039, 0.164706)
  27. Ruler.Size = Vector3.new(0.370000511, 0.0500000007, 3.21000028)
  28. Ruler.Anchored = false
  29. Ruler.BottomSurface = Enum.SurfaceType.Smooth
  30. Ruler.BrickColor = BrickColor.new("Rust")
  31. Ruler.Material = Enum.Material.WoodPlanks
  32. Ruler.TopSurface = Enum.SurfaceType.Smooth
  33. Ruler.brickColor = BrickColor.new("Rust")
  34. RulerDecal.Parent = Ruler
  35. RulerDecal.Texture = "http://www.roblox.com/asset/?id=1988260822"
  36. RulerDecal.Face = Enum.NormalId.Top
  37. local humanoid = char:WaitForChild("Humanoid")
  38. fakehead = Instance.new("Model",char)
  39. fakehead.Name = "baldi"
  40. Instance.new("Humanoid",fakehead)
  41. Head = Instance.new("Part",fakehead)
  42. Head.Size = Vector3.new(2,1,1)
  43. Head.Name = "Head"
  44. mesh = Instance.new("SpecialMesh",Head)
  45. mesh.MeshType = "Head"
  46. mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  47. Head.BrickColor = char.Head.BrickColor
  48. face = Instance.new("Decal",Head)
  49. face.Name = "face"
  50. face.Texture = "rbxasset://textures/face.png"
  51. weld = Instance.new("Weld",Head)
  52. weld.Part0 = head
  53. weld.Part1 = Head
  54. char.Head.Transparency = 1
  55. face = head:FindFirstChildWhichIsA("Decal")
  56. if face then
  57. face:Destroy()
  58. end
  59. for i,v in pairs(char:GetChildren()) do
  60. if v.ClassName == "CharacterMesh" then
  61. v.Parent = nil
  62. end
  63. end
  64. for i,v in pairs(char:GetChildren()) do
  65. if v.ClassName == "Shirt" then
  66. v.Parent = nil
  67. end
  68. end
  69. for i,v in pairs(char:GetChildren()) do
  70. if v.ClassName == "Pants" then
  71. v.Parent = nil
  72. end
  73. end
  74. for i,v in pairs(char:GetChildren()) do
  75. if v.ClassName == "Hat" then
  76. v.Parent = nil
  77. end
  78. end
  79. for i,v in pairs(char:GetChildren()) do
  80. if v.ClassName == "Accessory" then
  81. v.Parent = nil
  82. end
  83. end
  84. coroutine.resume(coroutine.create(function()
  85. while wait() do
  86. for i,v in pairs(char:GetChildren()) do
  87. if v.ClassName ~= "Part" and v.ClassName ~= "Humanoid" and v.ClassName ~= "Script" and v.ClassName ~= "LocalScript" and v.Name ~= "baldi" then
  88. v.Parent = nil
  89. end
  90. end
  91. end
  92. end))
  93. function sound(soundid,volume,parent)
  94. soundo = Instance.new("Sound",parent)
  95. soundo.Volume = volume
  96. soundo.SoundId = soundid
  97. soundo:Play()
  98. soundo.Ended:Connect(function()
  99. soundo:Destroy()
  100. end)
  101. end
  102. Figure = char
  103. bodycolors = char:WaitForChild("Body Colors")
  104. if bodycolors then
  105. bodycolors.HeadColor = BrickColor.new'Pastel brown'
  106. bodycolors.TorsoColor = BrickColor.new'Bright green'
  107. bodycolors.LeftArmColor = BrickColor.new'Bright green'
  108. bodycolors.LeftLegColor = BrickColor.new'Deep blue'
  109. bodycolors.RightArmColor = BrickColor.new'Bright green'
  110. bodycolors.RightLegColor = BrickColor.new'Deep blue'
  111. end
  112. coroutine.resume(coroutine.create(function()
  113. while wait() do
  114. Torso.BrickColor = BrickColor.new'Bright green'
  115. Head.BrickColor = BrickColor.new'Pastel brown'
  116. RArm.BrickColor = BrickColor.new'Bright green'
  117. LArm.BrickColor = BrickColor.new'Bright green'
  118. RLeg.BrickColor = BrickColor.new'Deep blue'
  119. LLeg.BrickColor = BrickColor.new'Deep blue'
  120. end
  121. end))
  122. local RightShoulder = Instance.new("Weld")
  123. local LeftShoulder = Instance.new("Weld")
  124. RightShoulder.Part0 = Torso
  125. RightShoulder.Part1 = Figure["Right Arm"]
  126. RightShoulder.Name = "Right Shoulder"
  127. RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  128. RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  129. RightShoulder.Parent = Torso
  130. LeftShoulder.Part0 = Torso
  131. LeftShoulder.Part1 = Figure["Left Arm"]
  132. LeftShoulder.Name = "Left Shoulder"
  133. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  134. LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  135. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.Angles(0,0,-math.rad(45)),2)
  136. LeftShoulder.Parent = Torso
  137. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.Angles(0,0,math.rad(45)),2)
  138. rulercooldown = false
  139. function swait(t)
  140. if t then
  141. for i = 0, t do
  142. game:GetService('RunService').Stepped:wait(0)
  143. end
  144. else
  145. game:GetService('RunService').Stepped:wait(0)
  146. end
  147. return true
  148. end
  149. rootpart.Touched:Connect(function(part)
  150. if part.Parent:FindFirstChildOfClass("Humanoid") and not part.Parent:FindFirstChild("baldi") then
  151. sound("rbxassetid://2655138140",10,head)
  152. part.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  153. part.Parent.Parent = nil
  154. end
  155. end)
  156. mouse.Button1Down:Connect(function()
  157. if rulercooldown == false then
  158. rulercooldown = true
  159. rulerweld.C0 = CFrame.new(-1.2,-0.8,-1.5) * CFrame.Angles(0,math.rad(45),-math.rad(90))
  160. wait()
  161. rulerweld.C0 = CFrame.new(-1.2,-0.8,-0.5) * CFrame.Angles(0,math.rad(90),-math.rad(90))
  162. sound("rbxassetid://1804495872",10,Ruler)
  163. cf = rootpart.CFrame
  164. local endcf = cf *CFrame.new(0,0,-10)
  165. for i = 1, 10 do
  166. rootpart.CFrame = cf:Lerp(endcf, i/10)
  167. swait()
  168. end
  169. wait(0.5)
  170. rulerweld.C0 = CFrame.new(-1.2,-0.8,-0.5) * CFrame.Angles(0,math.rad(90),-math.rad(90))
  171. wait()
  172. rulerweld.C0 = CFrame.new(-1.2,-0.8,-1.5) * CFrame.Angles(0,math.rad(45),-math.rad(90))
  173. wait()
  174. rulerweld.C0 = CFrame.new(0.2,-0.8,-1.8) * CFrame.Angles(0,0,-math.rad(90))
  175. rulercooldown = false
  176. end
  177. end)
  178. NLS([[
  179. local plr = game.Players.LocalPlayer
  180. local char = plr.Character
  181. local mouse = plr:GetMouse()
  182. local rootpart = char:WaitForChild("HumanoidRootPart")
  183. game:GetService"RunService".RenderStepped:Connect(function()
  184. rootpart.CFrame = CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.X, rootpart.Position.Y, mouse.Hit.p.Z))
  185. end)
  186. ]])
Add Comment
Please, Sign In to add comment