SHOW:
|
|
- or go back to the newest paste.
| 1 | --just put this on the top of a script and boom 89% works | |
| 2 | --note this does not work on big scripts | |
| 3 | - | Victim = "the770zone" -- Person who gonna die xd |
| 3 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 4 | local Player,game,owner = owner,game | |
| 5 | local RealPlayer = Player | |
| 6 | do | |
| 7 | local rp = RealPlayer | |
| 8 | script.Parent = rp.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent then | |
| 34 | for _,f in pairs(t.Functions) do | |
| 35 | f(...) | |
| 36 | end | |
| 37 | end | |
| 38 | end | |
| 39 | m.TrigEvent = te | |
| 40 | UIS.TrigEvent = te | |
| 41 | ||
| 42 | Event.OnServerEvent:Connect(function(plr,io) | |
| 43 | if plr~=rp then return end | |
| 44 | m.Target = io.Target | |
| 45 | m.Hit = io.Hit | |
| 46 | if not io.isMouse then | |
| 47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 50 | end | |
| 51 | for _,t in pairs(CAS.Actions) do | |
| 52 | for _,k in pairs(t.Keys) do | |
| 53 | if k==io.KeyCode then | |
| 54 | t.Function(t.Name,io.UserInputState,io) | |
| 55 | end | |
| 56 | end | |
| 57 | end | |
| 58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 60 | end | |
| 61 | end) | |
| 62 | Event.Parent = NLS([==[ | |
| 63 | local Player = game:GetService("Players").LocalPlayer
| |
| 64 | local Event = script:WaitForChild("UserInput_Event")
| |
| 65 | ||
| 66 | local Mouse = Player:GetMouse() | |
| 67 | local UIS = game:GetService("UserInputService")
| |
| 68 | local input = function(io,a) | |
| 69 | if a then return end | |
| 70 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 72 | end | |
| 73 | UIS.InputBegan:Connect(input) | |
| 74 | UIS.InputEnded:Connect(input) | |
| 75 | ||
| 76 | local h,t | |
| 77 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 78 | --If player is not moving their mouse, client won't fire events | |
| 79 | while wait(1/30) do | |
| 80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 81 | h,t=Mouse.Hit,Mouse.Target | |
| 82 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 83 | end | |
| 84 | end]==],Player.Character) | |
| 85 | ||
| 86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 87 | --Real game object | |
| 88 | local _rg = game | |
| 89 | ||
| 90 | --Metatable for fake service | |
| 91 | local fsmt = {
| |
| 92 | __index = function(self,k) | |
| 93 | local s = rawget(self,"_RealService") | |
| 94 | if s then return s[k] end | |
| 95 | end, | |
| 96 | __newindex = function(self,k,v) | |
| 97 | local s = rawget(self,"_RealService") | |
| 98 | if s then s[k]=v end | |
| 99 | end, | |
| 100 | __call = function(self,...) | |
| 101 | local s = rawget(self,"_RealService") | |
| 102 | if s then return s(...) end | |
| 103 | end | |
| 104 | } | |
| 105 | local function FakeService(t,RealService) | |
| 106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 107 | return setmetatable(t,fsmt) | |
| 108 | end | |
| 109 | ||
| 110 | --Fake game object | |
| 111 | local g = {
| |
| 112 | GetService = function(self,s) | |
| 113 | return self[s] | |
| 114 | end, | |
| 115 | Players = FakeService({
| |
| 116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 117 | },"Players"), | |
| 118 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 120 | } | |
| 121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 122 | g.service = g.GetService | |
| 123 | ||
| 124 | g.RunService = FakeService({
| |
| 125 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 126 | BindToRenderStep = function(self,name,_,fun) | |
| 127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 128 | end, | |
| 129 | UnbindFromRenderStep = function(self,name) | |
| 130 | self._btrs[name]:Disconnect() | |
| 131 | end, | |
| 132 | },"RunService") | |
| 133 | ||
| 134 | setmetatable(g,{
| |
| 135 | __index=function(self,s) | |
| 136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 138 | end, | |
| 139 | __newindex = fsmt.__newindex, | |
| 140 | __call = fsmt.__call | |
| 141 | }) | |
| 142 | --Changing owner to fake player object to support owner:GetMouse() | |
| 143 | game,owner = g,g.Players.LocalPlayer | |
| 144 | end | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | --workspace.ayyman:Remove() (Run this after each use of the guillotine) | |
| 149 | NiggaKilla = "XTheShowcaserX" -- Person who is going to kill the victim | |
| 150 | Victim = "Tabby_Cxt" -- Person who gonna die xd | |
| 151 | game.Players[Victim].Character.Humanoid.WalkSpeed = 0 | |
| 152 | game.Players[Victim].Character.Humanoid.JumpPower = 0 | |
| 153 | game:GetObjects("rbxassetid://1064951471")[1].Parent = game.Workspace
| |
| 154 | -- Lib Func -- | |
| 155 | loadstring(game:GetObjects("rbxassetid://1064957068")[1].Source)() -- Realistic Blood
| |
| 156 | loadstring(game:GetObjects("rbxassetid://1064956088")[1].Source)() -- Guillotine Script Main
| |
| 157 | -- Lib Func -- | |
| 158 | wait(.5) | |
| 159 | game.Workspace[Victim].HumanoidRootPart.CFrame = CFrame.new(105.919, 2046.955, -40.277) | |
| 160 | game.Workspace[NiggaKilla].HumanoidRootPart.CFrame = CFrame.new(109.305, 2045.6, -34.156) | |
| 161 | ||
| 162 | --Gui version | |
| 163 | ||
| 164 | local BitchHoldUp = Instance.new("ScreenGui")
| |
| 165 | local Opener = Instance.new("Frame")
| |
| 166 | local Open = Instance.new("TextButton")
| |
| 167 | local DaGui = Instance.new("Frame")
| |
| 168 | local Frame = Instance.new("Frame")
| |
| 169 | local Close = Instance.new("TextButton")
| |
| 170 | local Username = Instance.new("TextBox")
| |
| 171 | local VanDaPlayer = Instance.new("TextButton")
| |
| 172 | local TextLabel = Instance.new("TextLabel")
| |
| 173 | ||
| 174 | -- asd | |
| 175 | ||
| 176 | BitchHoldUp.Name = "BitchHoldUp" | |
| 177 | BitchHoldUp.Parent = game.CoreGui | |
| 178 | ||
| 179 | Opener.Name = "Opener" | |
| 180 | Opener.Parent = BitchHoldUp | |
| 181 | Opener.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 182 | Opener.BackgroundTransparency = 0.5 | |
| 183 | Opener.Position = UDim2.new(0, 19, 0, 564) | |
| 184 | Opener.Size = UDim2.new(0, 224, 0, 40) | |
| 185 | ||
| 186 | Open.Name = "Open" | |
| 187 | Open.Parent = Opener | |
| 188 | Open.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 189 | Open.BackgroundTransparency = 0.5 | |
| 190 | Open.Size = UDim2.new(0, 224, 0, 40) | |
| 191 | Open.Font = Enum.Font.SciFi | |
| 192 | Open.FontSize = Enum.FontSize.Size42 | |
| 193 | Open.Text = "Open" | |
| 194 | Open.TextColor3 = Color3.new(0, 1, 1) | |
| 195 | Open.TextSize = 42 | |
| 196 | ||
| 197 | DaGui.Name = "DaGui" | |
| 198 | DaGui.Parent = BitchHoldUp | |
| 199 | DaGui.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 200 | DaGui.BackgroundTransparency = 0.5 | |
| 201 | DaGui.Draggable = true | |
| 202 | DaGui.Position = UDim2.new(0, 0, 0, 311) | |
| 203 | DaGui.Size = UDim2.new(0, 343, 0, 197) | |
| 204 | DaGui.Visible = false | |
| 205 | ||
| 206 | Frame.Parent = DaGui | |
| 207 | Frame.BackgroundColor3 = Color3.new(1, 0, 0.0156863) | |
| 208 | Frame.Position = UDim2.new(0, 313, 0, 0) | |
| 209 | Frame.Size = UDim2.new(0, 30, 0, 26) | |
| 210 | ||
| 211 | Close.Name = "Close" | |
| 212 | Close.Parent = Frame | |
| 213 | Close.BackgroundColor3 = Color3.new(1, 0, 0.0156863) | |
| 214 | Close.Size = UDim2.new(0, 30, 0, 26) | |
| 215 | Close.Font = Enum.Font.SciFi | |
| 216 | Close.FontSize = Enum.FontSize.Size14 | |
| 217 | Close.Text = "X" | |
| 218 | Close.TextColor3 = Color3.new(1, 1, 1) | |
| 219 | Close.TextSize = 14 | |
| 220 | Close.TextStrokeTransparency = 5 | |
| 221 | ||
| 222 | Username.Name = "Username" | |
| 223 | Username.Parent = DaGui | |
| 224 | Username.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 225 | Username.BackgroundTransparency = 0.5 | |
| 226 | Username.Position = UDim2.new(0, 72, 0, 76) | |
| 227 | Username.Size = UDim2.new(0, 200, 0.0999999866, 24) | |
| 228 | Username.Font = Enum.Font.SciFi | |
| 229 | Username.FontSize = Enum.FontSize.Size18 | |
| 230 | Username.Text = "Username" | |
| 231 | Username.TextColor3 = Color3.new(0, 1, 1) | |
| 232 | Username.TextSize = 18 | |
| 233 | ||
| 234 | VanDaPlayer.Name = "VanDaPlayer" | |
| 235 | VanDaPlayer.Parent = DaGui | |
| 236 | VanDaPlayer.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 237 | VanDaPlayer.BackgroundTransparency = 0.5 | |
| 238 | VanDaPlayer.Position = UDim2.new(0.0199999996, 90, 0.00999999978, 138) | |
| 239 | VanDaPlayer.Size = UDim2.new(0, 150, 0, 26) | |
| 240 | VanDaPlayer.Font = Enum.Font.SciFi | |
| 241 | VanDaPlayer.FontSize = Enum.FontSize.Size14 | |
| 242 | VanDaPlayer.Text = "Van Player" | |
| 243 | VanDaPlayer.TextColor3 = Color3.new(0, 1, 1) | |
| 244 | VanDaPlayer.TextSize = 14 | |
| 245 | ||
| 246 | TextLabel.Parent = DaGui | |
| 247 | TextLabel.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 248 | TextLabel.BackgroundTransparency = 0.5 | |
| 249 | TextLabel.Position = UDim2.new(0, 48, 0, 22) | |
| 250 | TextLabel.Size = UDim2.new(0, 246, 0, 19) | |
| 251 | TextLabel.TextScaled = true | |
| 252 | TextLabel.Font = Enum.Font.SciFi | |
| 253 | TextLabel.FontSize = Enum.FontSize.Size18 | |
| 254 | TextLabel.Text = "Van Player Gui by Hopeless (Talha)" | |
| 255 | TextLabel.TextColor3 = Color3.new(0, 1, 1) | |
| 256 | TextLabel.TextSize = 17 | |
| 257 | ||
| 258 | Open.MouseButton1Down:connect(function() | |
| 259 | DaGui.Visible = true | |
| 260 | Opener.Visible = false | |
| 261 | ||
| 262 | end) | |
| 263 | ||
| 264 | Close.MouseButton1Down:connect(function() | |
| 265 | DaGui.Visible = false | |
| 266 | Opener.Visible = true | |
| 267 | end) | |
| 268 | ||
| 269 | VanDaPlayer.MouseButton1Down:connect(function() | |
| 270 | Victim = Username.Text -- Person who gonna die xd | |
| 271 | game.Players[Victim].Character.Humanoid.WalkSpeed = 0 | |
| 272 | game.Players[Victim].Character.Humanoid.JumpPower = 0 | |
| 273 | game:GetObjects("rbxassetid://1064951471")[1].Parent = game.Workspace
| |
| 274 | -- Lib Func -- | |
| 275 | loadstring(game:GetObjects("rbxassetid://1064957068")[1].Source)() -- Realistic Blood
| |
| 276 | loadstring(game:GetObjects("rbxassetid://1064956088")[1].Source)() -- Guillotine Script Main
| |
| 277 | -- Lib Func -- | |
| 278 | wait(.5) | |
| 279 | game.Workspace[Victim].HumanoidRootPart.CFrame = CFrame.new(105.919, 2046.955, -40.277) | |
| 280 | game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart.CFrame = CFrame.new(109.305, 2045.6, -34.156) | |
| 281 | end) | |
| 282 | ||
| 283 | -- I like to asd a lot |