SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Use h/ To work.") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | - | print("R.U.N By DenisPitu06_YT") |
6 | + | |
7 | - | print("E To Teleport.") |
7 | + | |
8 | - | print("F To pay respect.") |
8 | + | |
9 | - | print("I dont care do whatever. WARNING") |
9 | + | |
10 | - | print("Includes suicide scripts such as. explosions. rip leg.") |
10 | + | |
11 | this[1].Functions[this[2]] = nil | |
12 | end | |
13 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
14 | local FakeEvent_Metatable = {__index={ | |
15 | Connect = function(this,f) | |
16 | local i = tostring(math.random(0,10000)) | |
17 | while this.Functions[i] do | |
18 | i = tostring(math.random(0,10000)) | |
19 | end | |
20 | this.Functions[i] = f | |
21 | return setmetatable({this,i},Disconnect_Metatable) | |
22 | end | |
23 | }} | |
24 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
25 | local function fakeEvent() | |
26 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
27 | end | |
28 | ||
29 | --Creating fake input objects with fake variables | |
30 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
31 | FakeMouse.keyUp = FakeMouse.KeyUp | |
32 | FakeMouse.keyDown = FakeMouse.KeyDown | |
33 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
34 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
35 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
36 | end} | |
37 | --Merged 2 functions into one by checking amount of arguments | |
38 | CAS.UnbindAction = CAS.BindAction | |
39 | ||
40 | --This function will trigger the events that have been :Connect()'ed | |
41 | local function TriggerEvent(self,ev,...) | |
42 | for _,f in pairs(self[ev].Functions) do | |
43 | f(...) | |
44 | end | |
45 | end | |
46 | FakeMouse.TriggerEvent = TriggerEvent | |
47 | UIS.TriggerEvent = TriggerEvent | |
48 | ||
49 | --Client communication | |
50 | local Event = Instance.new("RemoteEvent") | |
51 | Event.Name = "UserInput_Event" | |
52 | Event.OnServerEvent:Connect(function(plr,io) | |
53 | if plr~=RealPlayer then return end | |
54 | FakeMouse.Target = io.Target | |
55 | FakeMouse.Hit = io.Hit | |
56 | if not io.isMouse then | |
57 | local b = io.UserInputState == Enum.UserInputState.Begin | |
58 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
59 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
60 | end | |
61 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
62 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
63 | end | |
64 | for _,t in pairs(CAS.Actions) do | |
65 | for _,k in pairs(t.Keys) do | |
66 | if k==io.KeyCode then | |
67 | t.Function(t.Name,io.UserInputState,io) | |
68 | end | |
69 | end | |
70 | end | |
71 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
72 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
73 | end | |
74 | end) | |
75 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
76 | local Mouse = owner:GetMouse() | |
77 | local UIS = game:GetService("UserInputService") | |
78 | local input = function(io,RobloxHandled) | |
79 | if RobloxHandled then return end | |
80 | --Since InputObject is a client-side instance, we create and pass table instead | |
81 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
82 | end | |
83 | UIS.InputBegan:Connect(input) | |
84 | UIS.InputEnded:Connect(input) | |
85 | ||
86 | local h,t | |
87 | --Give the server mouse data every second frame, but only if the values changed | |
88 | --If player is not moving their mouse, client won't fire events | |
89 | local HB = game:GetService("RunService").Heartbeat | |
90 | while true do | |
91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
92 | h,t=Mouse.Hit,Mouse.Target | |
93 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
94 | end | |
95 | --Wait 2 frames | |
96 | for i=1,2 do | |
97 | HB:Wait() | |
98 | end | |
99 | end]==],script) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local RealGame = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local FakeService_Metatable = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then | |
110 | return typeof(s[k])=="function" | |
111 | and function(_,...)return s[k](s,...)end or s[k] | |
112 | end | |
113 | end, | |
114 | __newindex = function(self,k,v) | |
115 | local s = rawget(self,"_RealService") | |
116 | if s then s[k]=v end | |
117 | end | |
118 | } | |
119 | local function FakeService(t,RealService) | |
120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
121 | return setmetatable(t,FakeService_Metatable) | |
122 | end | |
123 | ||
124 | --Fake game object | |
125 | local FakeGame = { | |
126 | GetService = function(self,s) | |
127 | return rawget(self,s) or RealGame:GetService(s) | |
128 | end, | |
129 | Players = FakeService({ | |
130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
131 | },"Players"), | |
132 | UserInputService = FakeService(UIS,"UserInputService"), | |
133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
134 | RunService = FakeService({ | |
135 | _btrs = {}, | |
136 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
137 | BindToRenderStep = function(self,name,_,fun) | |
138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
139 | end, | |
140 | UnbindFromRenderStep = function(self,name) | |
141 | self._btrs[name]:Disconnect() | |
142 | end, | |
143 | },"RunService") | |
144 | } | |
145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
146 | FakeGame.service = FakeGame.GetService | |
147 | FakeService(FakeGame,game) | |
148 | --Changing owner to fake player object to support owner:GetMouse() | |
149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
150 | end | |
151 | --SCP-457 Remake script by basstracker1970 | |
152 | plr = game.Players.LocalPlayer | |
153 | wait(1) | |
154 | for i,v in next, game.Players.LocalPlayer.Character:GetChildren() do | |
155 | if v:IsA("Accessory") then | |
156 | v:Remove() | |
157 | end | |
158 | end | |
159 | wait(1) | |
160 | local db = true | |
161 | mouse = plr:GetMouse() | |
162 | local plrc = plr.Character | |
163 | local backpack = plr.Backpack | |
164 | ||
165 | plrc.Head.face.Texture = "https://web.roblox.com/library/146007571/Man-Face" | |
166 | local tool = Instance.new("Tool", backpack) | |
167 | - | plr.Character.Head.BrickColor = BrickColor.new("Really black") |
167 | + | tool.Name = "Potion" |
168 | - | plr.Character.Torso.BrickColor = BrickColor.new("Really black") |
168 | + | tool.ToolTip = "Posion" |
169 | - | plr.Character["Right Arm"].BrickColor = BrickColor.new("Really black") |
169 | + | local handle = Instance.new("Part", tool) |
170 | - | plr.Character["Left Arm"].BrickColor = BrickColor.new("Really black") |
170 | + | handle.Size = Vector3.new(3,3,0) |
171 | - | plr.Character["Right Leg"].BrickColor = BrickColor.new("Really black") |
171 | + | handle.Transparency = 1 |
172 | - | plr.Character["Left Leg"].BrickColor = BrickColor.new("Really black") |
172 | + | local decal1 = Instance.new("Decal", handle) |
173 | - | plr.Character.Head.face:Destroy() |
173 | + | decal1.Texture = "https://web.roblox.com/library/494374625/Potion" |
174 | - | plr.Character.Humanoid.WalkSpeed = 8 |
174 | + | decal1.Face = "Front" |
175 | - | plr.Character.Humanoid.JumpPower = 0 |
175 | + | local decal1 = Instance.new("Decal", handle) |
176 | - | plr.Character.Torso.Touched:connect(function(hit) |
176 | + | decal1.Texture = "https://web.roblox.com/library/494374625/Potion" |
177 | - | hit.Parent.Humanoid.WalkSpeed = 0 |
177 | + | decal1.Face = "Back" |
178 | - | local sound = Instance.new("Sound", hit.Parent) |
178 | + | tool.Activated:Connect(function() |
179 | - | sound.SoundId = "rbxassetid://1135476193" |
179 | + | local sound = Instance.new("Sound", plrc.Torso) |
180 | - | sound:Play() |
180 | + | sound.SoundId = "rbxassetid://3637899507" |
181 | - | wait(3) |
181 | + | sound:Play() |
182 | - | hit.Parent:BreakJoints() |
182 | + | wait(0.5) |
183 | - | end) |
183 | + | sound:Play() |
184 | - | function Teleport() |
184 | + | wait(0.5) |
185 | - | local sound2 = Instance.new("Sound", plr.Character) |
185 | + | sound:Play() |
186 | - | sound2.SoundId = "rbxassetid://1135476193" |
186 | + | wait(0.5) |
187 | - | sound2:Play() |
187 | + | sound:Play() |
188 | - | plr.Character.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0) |
188 | + | wait(0.5) |
189 | sound:Play() | |
190 | - | function PayRespect() |
190 | + | wait(0.5) |
191 | - | local sparkles = Instance.new("Sparkles", plr.Character.Torso) |
191 | + | local sound2 = Instance.new("Sound", plrc.Torso) |
192 | - | local sound3 = Instance.new("Sound", plr.Character) |
192 | + | sound2.SoundId = "rbxassetid://3362346832" |
193 | - | sound3.Looped = true |
193 | + | sound2:Play() |
194 | - | sound3.SoundId = "rbxassetid://314568939" |
194 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
195 | - | sound3:Play() |
195 | + | wait(1) |
196 | - | plr.Character.Humanoid.Health = 70 |
196 | + | sound2:Play() |
197 | - | wait(2) |
197 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
198 | - | plr.Character.Humanoid.Health = 0 |
198 | + | wait(1) |
199 | sound2:Play() | |
200 | - | function NoFair() |
200 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
201 | - | if db == true then |
201 | + | wait(1) |
202 | - | db = false |
202 | + | sound2:Play() |
203 | - | plr.Character.Humanoid.WalkSpeed = 0 |
203 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
204 | - | local sound4 = Instance.new("Sound", plr.Character) |
204 | + | wait(1) |
205 | - | sound4.SoundId = "rbxassetid://3535031732" |
205 | + | sound2:Play() |
206 | - | sound4:Play() |
206 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
207 | - | plr.Character.Humanoid.JumpPower = 50 |
207 | + | wait(1) |
208 | - | plr.Character.Humanoid.Jump = true |
208 | + | sound2:Play() |
209 | - | wait(0.1) -- So yeh coz i like to |
209 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
210 | - | plr.Character.Humanoid.JumpPower = 0 |
210 | + | wait(1) |
211 | - | wait(7) |
211 | + | sound2:Play() |
212 | - | db = true |
212 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
213 | - | plr.Character.Humanoid.WalkSpeed = 8 |
213 | + | wait(1) |
214 | - | end |
214 | + | sound2:Play() |
215 | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 | |
216 | - | function SuperJump() |
216 | + | wait(1) |
217 | - | plr.Character.Humanoid.JumpPower = 1000 |
217 | + | sound2:Play() |
218 | - | plr.Character.Humanoid.Jump = true |
218 | + | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 |
219 | - | wait(1) |
219 | + | wait(1) |
220 | - | plr.Character.Humanoid.JumpPower = 0 |
220 | + | sound2:Play() |
221 | plrc.Humanoid.Health = plrc.Humanoid.Health - 10 | |
222 | - | function Explode() |
222 | + |