Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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'
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local char = plr.Character
- local head = char:WaitForChild("Head")
- local Torso = char:WaitForChild("Torso")
- local LArm = char:WaitForChild("Left Arm")
- local RArm = char:WaitForChild("Right Arm")
- local LLeg = char:WaitForChild("Left Leg")
- local RLeg = char:WaitForChild("Right Leg")
- local humanoid = char:WaitForChild("Humanoid")
- local rootpart = char:WaitForChild("HumanoidRootPart")
- humanoid.WalkSpeed = 0
- humanoid.AutoRotate = false
- local Ruler = Instance.new("Part")
- local rulerweld = Instance.new("Weld",Ruler)
- rulerweld.Part0 = RArm
- rulerweld.Part1 = Ruler
- rulerweld.C0 = CFrame.new(0.2,-0.8,-1.8) * CFrame.Angles(0,0,-math.rad(90))
- local RulerDecal = Instance.new("Decal")
- Ruler.Name = "Ruler"
- Ruler.Parent = char
- Ruler.Color = Color3.new(0.560784, 0.298039, 0.164706)
- Ruler.Size = Vector3.new(0.370000511, 0.0500000007, 3.21000028)
- Ruler.Anchored = false
- Ruler.BottomSurface = Enum.SurfaceType.Smooth
- Ruler.BrickColor = BrickColor.new("Rust")
- Ruler.Material = Enum.Material.WoodPlanks
- Ruler.TopSurface = Enum.SurfaceType.Smooth
- Ruler.brickColor = BrickColor.new("Rust")
- RulerDecal.Parent = Ruler
- RulerDecal.Texture = "http://www.roblox.com/asset/?id=1988260822"
- RulerDecal.Face = Enum.NormalId.Top
- local humanoid = char:WaitForChild("Humanoid")
- fakehead = Instance.new("Model",char)
- fakehead.Name = "baldi"
- Instance.new("Humanoid",fakehead)
- Head = Instance.new("Part",fakehead)
- Head.Size = Vector3.new(2,1,1)
- Head.Name = "Head"
- mesh = Instance.new("SpecialMesh",Head)
- mesh.MeshType = "Head"
- mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- Head.BrickColor = char.Head.BrickColor
- face = Instance.new("Decal",Head)
- face.Name = "face"
- face.Texture = "rbxasset://textures/face.png"
- weld = Instance.new("Weld",Head)
- weld.Part0 = head
- weld.Part1 = Head
- char.Head.Transparency = 1
- face = head:FindFirstChildWhichIsA("Decal")
- if face then
- face:Destroy()
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "CharacterMesh" then
- v.Parent = nil
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Shirt" then
- v.Parent = nil
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Pants" then
- v.Parent = nil
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" then
- v.Parent = nil
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" then
- v.Parent = nil
- end
- end
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName ~= "Part" and v.ClassName ~= "Humanoid" and v.ClassName ~= "Script" and v.ClassName ~= "LocalScript" and v.Name ~= "baldi" then
- v.Parent = nil
- end
- end
- end
- end))
- function sound(soundid,volume,parent)
- soundo = Instance.new("Sound",parent)
- soundo.Volume = volume
- soundo.SoundId = soundid
- soundo:Play()
- soundo.Ended:Connect(function()
- soundo:Destroy()
- end)
- end
- Figure = char
- bodycolors = char:WaitForChild("Body Colors")
- if bodycolors then
- bodycolors.HeadColor = BrickColor.new'Pastel brown'
- bodycolors.TorsoColor = BrickColor.new'Bright green'
- bodycolors.LeftArmColor = BrickColor.new'Bright green'
- bodycolors.LeftLegColor = BrickColor.new'Deep blue'
- bodycolors.RightArmColor = BrickColor.new'Bright green'
- bodycolors.RightLegColor = BrickColor.new'Deep blue'
- end
- coroutine.resume(coroutine.create(function()
- while wait() do
- Torso.BrickColor = BrickColor.new'Bright green'
- Head.BrickColor = BrickColor.new'Pastel brown'
- RArm.BrickColor = BrickColor.new'Bright green'
- LArm.BrickColor = BrickColor.new'Bright green'
- RLeg.BrickColor = BrickColor.new'Deep blue'
- LLeg.BrickColor = BrickColor.new'Deep blue'
- end
- end))
- local RightShoulder = Instance.new("Weld")
- local LeftShoulder = Instance.new("Weld")
- RightShoulder.Part0 = Torso
- RightShoulder.Part1 = Figure["Right Arm"]
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RightShoulder.Parent = Torso
- LeftShoulder.Part0 = Torso
- LeftShoulder.Part1 = Figure["Left Arm"]
- LeftShoulder.Name = "Left Shoulder"
- LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- 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)
- LeftShoulder.Parent = Torso
- 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)
- rulercooldown = false
- function swait(t)
- if t then
- for i = 0, t do
- game:GetService('RunService').Stepped:wait(0)
- end
- else
- game:GetService('RunService').Stepped:wait(0)
- end
- return true
- end
- rootpart.Touched:Connect(function(part)
- if part.Parent:FindFirstChildOfClass("Humanoid") and not part.Parent:FindFirstChild("baldi") then
- sound("rbxassetid://2655138140",10,head)
- part.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- part.Parent.Parent = nil
- end
- end)
- mouse.Button1Down:Connect(function()
- if rulercooldown == false then
- rulercooldown = true
- rulerweld.C0 = CFrame.new(-1.2,-0.8,-1.5) * CFrame.Angles(0,math.rad(45),-math.rad(90))
- wait()
- rulerweld.C0 = CFrame.new(-1.2,-0.8,-0.5) * CFrame.Angles(0,math.rad(90),-math.rad(90))
- sound("rbxassetid://1804495872",10,Ruler)
- cf = rootpart.CFrame
- local endcf = cf *CFrame.new(0,0,-10)
- for i = 1, 10 do
- rootpart.CFrame = cf:Lerp(endcf, i/10)
- swait()
- end
- wait(0.5)
- rulerweld.C0 = CFrame.new(-1.2,-0.8,-0.5) * CFrame.Angles(0,math.rad(90),-math.rad(90))
- wait()
- rulerweld.C0 = CFrame.new(-1.2,-0.8,-1.5) * CFrame.Angles(0,math.rad(45),-math.rad(90))
- wait()
- rulerweld.C0 = CFrame.new(0.2,-0.8,-1.8) * CFrame.Angles(0,0,-math.rad(90))
- rulercooldown = false
- end
- end)
- NLS([[
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local rootpart = char:WaitForChild("HumanoidRootPart")
- game:GetService"RunService".RenderStepped:Connect(function()
- rootpart.CFrame = CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.X, rootpart.Position.Y, mouse.Hit.p.Z))
- end)
- ]])
Add Comment
Please, Sign In to add comment