SHOW:
|
|
- or go back to the newest paste.
1 | -- baldi script by theamazingnater enjoy peeps | |
2 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
3 | do | |
4 | script.Parent = owner.Character | |
5 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
6 | local function NewFakeEvent() | |
7 | local Bind = Instance.new("BindableEvent") | |
8 | local Fake;Fake = {Connections = {}, | |
9 | fakeEvent=true; | |
10 | Connect=function(self,Func) | |
11 | Bind.Event:connect(Func) | |
12 | self.Connections[Bind] = true | |
13 | return setmetatable({Connected = true},{ | |
14 | __index = function (self,Index) | |
15 | if Index:lower() == "disconnect" then | |
16 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
17 | end | |
18 | return Fake[Index] | |
19 | end; | |
20 | __tostring = function() return "Connection" end; | |
21 | }) | |
22 | end} | |
23 | Fake.connect = Fake.Connect;return Fake; | |
24 | end | |
25 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
26 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
27 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
28 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
29 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
30 | local function TriggerEvent(self,Event,...) | |
31 | local Trigger = Mouse[Event] | |
32 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
33 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
34 | end | |
35 | end | |
36 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
37 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
38 | if FiredBy.Name ~= owner.Name then return end | |
39 | if Input.MouseEvent then | |
40 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
41 | else | |
42 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
43 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
44 | for _,Action in pairs(ContextActionService.Actions) do | |
45 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
46 | end | |
47 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
48 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
49 | end | |
50 | end) | |
51 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
52 | Event.Parent = NLS([[ | |
53 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
59 | local Hit,Target | |
60 | while wait(1/30) do | |
61 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
62 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
63 | end | |
64 | end | |
65 | ]],owner.Character) | |
66 | end | |
67 | RealGame = game;game = setmetatable({},{ | |
68 | __index = function (self,Index) | |
69 | local Sandbox = function (Thing) | |
70 | if Thing:IsA("Player") then | |
71 | local RealPlayer = Thing | |
72 | return setmetatable({},{ | |
73 | __index = function (self,Index) | |
74 | local Type = type(RealPlayer[Index]) | |
75 | if Type == "function" then | |
76 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
77 | return function (self)return InternalData["Mouse"] end | |
78 | end | |
79 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
80 | end | |
81 | return RealPlayer[Index] | |
82 | end; | |
83 | __tostring = function(self) return RealPlayer.Name end | |
84 | }) | |
85 | end | |
86 | end | |
87 | if RealGame[Index] then | |
88 | local Type = type(RealGame[Index]) | |
89 | if Type == "function" then | |
90 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
91 | return function (self,Service) | |
92 | local FakeServices = { | |
93 | ["players"] = function() | |
94 | return setmetatable({},{ | |
95 | __index = function (self2,Index2) | |
96 | local RealService = RealGame:GetService(Service) | |
97 | local Type2 = type(Index2) | |
98 | if Type2 == "function" then | |
99 | return function (self,...) return RealService[Index2](RealService,...)end | |
100 | else | |
101 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
102 | return RealService[Index2] | |
103 | end | |
104 | end; | |
105 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
106 | }) | |
107 | end; | |
108 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
109 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
110 | ["runservice"] = function() | |
111 | return setmetatable({},{ | |
112 | __index = function(self2,Index2) | |
113 | local RealService = RealGame:GetService(Service) | |
114 | local Type2 = type(Index2) | |
115 | if Type2 == "function" then | |
116 | return function (self,...) return RealService[Index2](RealService,...) end | |
117 | else | |
118 | local RunServices = { | |
119 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
120 | ["renderstepped"] = function() return RealService["Stepped"] end | |
121 | } | |
122 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
123 | return RealService[Index2] | |
124 | end | |
125 | end | |
126 | }) | |
127 | end | |
128 | } | |
129 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
130 | return RealGame:GetService(Service) | |
131 | end | |
132 | end | |
133 | return function (self,...) return RealGame[Index](RealGame,...) end | |
134 | else | |
135 | if game:GetService(Index) then return game:GetService(Index) end | |
136 | return RealGame[Index] | |
137 | end | |
138 | end | |
139 | return nil | |
140 | end | |
141 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!") | |
142 | plr = game.Players.Killerxxt | |
143 | char = plr.Character | |
144 | ||
145 | wait(1) | |
146 | - | Running...") |
146 | + | |
147 | slap.SoundId = "rbxassetid://1841427728" | |
148 | slap.Volume = 10 | |
149 | for i,v in pairs(char:GetChildren()) do | |
150 | if v.ClassName == "Part" then | |
151 | v.Transparency = 1 | |
152 | end | |
153 | end | |
154 | for i,v in pairs(char:GetChildren()) do | |
155 | if v.ClassName == "Accessory" then | |
156 | v.Handle.Transparency = 1 | |
157 | end | |
158 | end | |
159 | char.Head.face.Transparency = 1 | |
160 | local sweep = Instance.new("Part") | |
161 | local sweepdecal1 = Instance.new("Decal",sweep) | |
162 | local sweepdecal2 = Instance.new("Decal",sweep) | |
163 | local weld = Instance.new("Weld",sweep) | |
164 | sweepdecal1.Face = "Back" | |
165 | sweepdecal1.Texture = "rbxassetid://1814499405" | |
166 | sweepdecal2.Face = "Front" | |
167 | sweepdecal2.Texture = "rbxassetid://1814499405" | |
168 | sweep.Name = "gotta sweep sweep sweep" | |
169 | sweep.Size = Vector3.new(4.2, 8.4, 0.114) | |
170 | sweep.Transparency = 1 | |
171 | sweep.CanCollide = false | |
172 | weld.Part0 = char.Torso | |
173 | weld.Part1 = sweep | |
174 | weld.C0 = CFrame.new(-0.466694832, 1.18746996, -0.594377518, -0.999195099, 0, 0.0401160046, 0, 1, 0, -0.0401160046, 0, -0.999195099) | |
175 | sweep.Parent = char | |
176 | char.Humanoid.HipHeight = 0.3 | |
177 | slapspeed = 2 | |
178 | walkSpeed = 20.3 | |
179 | char.Humanoid.WalkSpeed = 20.3 | |
180 | anger = 1 -- 1 is normal. | |
181 | coroutine.wrap(function() | |
182 | while true do | |
183 | wait() | |
184 | if anger == 1 then | |
185 | slapspeed = 2 -- Normal speed. | |
186 | end | |
187 | if anger == 2 then | |
188 | slapspeed = 1 | |
189 | end | |
190 | if anger == 3 then | |
191 | slapspeed = 0.5 | |
192 | end | |
193 | if anger == 4 then | |
194 | slapspeed = 0.1 | |
195 | end | |
196 | end | |
197 | end)() | |
198 | sweep.Touched:connect(function(part) | |
199 | local human = part.Parent:FindFirstChildOfClass("Humanoid") | |
200 | if human and human.Parent.Name ~= char.Name then | |
201 | anger = anger + 1 | |
202 | human.Health = 0 | |
203 | end | |
204 | end) | |
205 | while true do | |
206 | wait(slapspeed) | |
207 | sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1814500416" | |
208 | sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1814500416" | |
209 | slap:Play() | |
210 | wait(0.4) | |
211 | sweepdecal1.Face = "Back" | |
212 | sweepdecal1.Texture = "rbxassetid://1814499405" | |
213 | sweepdecal2.Face = "Front" | |
214 | sweepdecal2.Texture = "rbxassetid://1814499405" | |
215 | end |