SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local p = game.Players.LocalPlayer |
| 1 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 2 | do | |
| 3 | --print("FE Compatibility code by Mokiros")
| |
| 4 | script.Parent = Player.Character | |
| 5 | ||
| 6 | --RemoteEvent for communicating | |
| 7 | local Event = Instance.new("RemoteEvent")
| |
| 8 | Event.Name = "UserInput_Event" | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local function fakeEvent() | |
| 12 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 13 | t.connect = t.Connect | |
| 14 | return t | |
| 15 | end | |
| 16 | ||
| 17 | --Creating fake input objects with fake variables | |
| 18 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 19 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 20 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 21 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 22 | end} | |
| 23 | --Merged 2 functions into one by checking amount of arguments | |
| 24 | CAS.UnbindAction = CAS.BindAction | |
| 25 | ||
| 26 | --This function will trigger the events that have been :Connect()'ed | |
| 27 | local function te(self,ev,...) | |
| 28 | local t = m[ev] | |
| 29 | if t and t._fakeEvent and t.Function then | |
| 30 | t.Function(...) | |
| 31 | end | |
| 32 | end | |
| 33 | m.TrigEvent = te | |
| 34 | UIS.TrigEvent = te | |
| 35 | ||
| 36 | Event.OnServerEvent:Connect(function(plr,io) | |
| 37 | if plr~=Player then return end | |
| 38 | if io.isMouse then | |
| 39 | m.Target = io.Target | |
| 40 | m.Hit = io.Hit | |
| 41 | else | |
| 42 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 43 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 44 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 45 | end | |
| 46 | for _,t in pairs(CAS.Actions) do | |
| 47 | for _,k in pairs(t.Keys) do | |
| 48 | if k==io.KeyCode then | |
| 49 | t.Function(t.Name,io.UserInputState,io) | |
| 50 | end | |
| 51 | end | |
| 52 | end | |
| 53 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 54 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 55 | end | |
| 56 | end) | |
| 57 | Event.Parent = NLS([==[ | |
| 58 | local Player = game:GetService("Players").LocalPlayer
| |
| 59 | local Event = script:WaitForChild("UserInput_Event")
| |
| 60 | ||
| 61 | local UIS = game:GetService("UserInputService")
| |
| 62 | local input = function(io,a) | |
| 63 | if a then return end | |
| 64 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 65 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 66 | end | |
| 67 | UIS.InputBegan:Connect(input) | |
| 68 | UIS.InputEnded:Connect(input) | |
| 69 | ||
| 70 | local Mouse = Player:GetMouse() | |
| 71 | local h,t | |
| 72 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 73 | --If player is not moving their mouse, client won't fire events | |
| 74 | while wait(1/30) do | |
| 75 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 76 | h,t=Mouse.Hit,Mouse.Target | |
| 77 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 78 | end | |
| 79 | end]==],Player.Character) | |
| 80 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 81 | end | |
| 82 | ||
| 83 | ||
| 84 | ||
| 85 | local p = owner | |
| 86 | local char = p.Character | |
| 87 | local hed = char.Head | |
| 88 | local LocalPlayer = p | |
| 89 | ||
| 90 | local naeeym = Instance.new("BillboardGui",char)
| |
| 91 | naeeym.Size = UDim2.new(0,100,0,40) | |
| 92 | naeeym.StudsOffset = Vector3.new(0,5,0) | |
| 93 | naeeym.Adornee = char.Head | |
| 94 | local tecks = Instance.new("TextLabel",naeeym)
| |
| 95 | tecks.BackgroundTransparency = 1 | |
| 96 | tecks.BorderSizePixel = 0 | |
| 97 | tecks.Text = LocalPlayer.Name | |
| 98 | tecks.Font = "ArialBold" | |
| 99 | tecks.FontSize = "Size24" | |
| 100 | tecks.TextStrokeTransparency = 0 | |
| 101 | tecks.TextStrokeColor3 = Color3.new(0,0,0) | |
| 102 | tecks.TextColor3 = Color3.new(255,255,255) | |
| 103 | tecks.Size = UDim2.new(1,0,0.5,0) | |
| 104 | ||
| 105 | local Player = game.Players.localPlayer | |
| 106 | local Character = p.Character | |
| 107 | local LeftArm2 = Character["Left Arm"] | |
| 108 | local RightArm2 = Character["Right Arm"] | |
| 109 | local LeftLeg2 = Character["Left Leg"] | |
| 110 | local RightLeg2 = Character["Right Leg"] | |
| 111 | local Head2 = Character.Head | |
| 112 | local Torso2 = Character.Torso | |
| 113 | ||
| 114 | --created by SoldierJoao | |
| 115 | --Credits to metabee for the knives edit | |
| 116 | cut = Instance.new("Sound", Character)
| |
| 117 | cut.SoundId = "https://www.roblox.com/asset/?id=97095069" | |
| 118 | cut.Volume = 1.5 | |
| 119 | thri = Instance.new("Sound", Character)
| |
| 120 | thri.SoundId = "https://www.roblox.com/asset/?id=186311262" | |
| 121 | thri.Volume = 2.5 | |
| 122 | WRY = Instance.new("Sound", Character)
| |
| 123 | WRY.SoundId = "https://www.roblox.com/asset/?id=276152532" | |
| 124 | WRY.Volume = 5 | |
| 125 | ||
| 126 | local Players=game:service'Players' | |
| 127 | local Player=Players.LocalPlayer | |
| 128 | local Mouse=Player:GetMouse'' | |
| 129 | local RenderStepped=game:service'RunService'.RenderStepped | |
| 130 | ||
| 131 | local MeshId='http://www.roblox.com/asset?id=202083123' | |
| 132 | local TextureId='http://www.roblox.com/asset/?id=189436355' | |
| 133 | ||
| 134 | local BeeSpeed= 100 | |
| 135 | ||
| 136 | local QHold=false | |
| 137 | local EHold=false | |
| 138 | ||
| 139 | Mouse.Button1Down:connect(function() | |
| 140 | cut:Play() | |
| 141 | if Mouse.Target then | |
| 142 | local Bee=Instance.new('Part',Player.Character)
| |
| 143 | Bee.CanCollide=false | |
| 144 | Bee.Size=Vector3.new(2,2,2) | |
| 145 | Bee.CFrame=Player.Character.Torso.CFrame | |
| 146 | local BeeMesh=Instance.new('SpecialMesh',Bee)
| |
| 147 | BeeMesh.MeshType='FileMesh' | |
| 148 | BeeMesh.MeshId=MeshId | |
| 149 | BeeMesh.TextureId=TextureId | |
| 150 | BeeMesh.Scale=Vector3.new(1,1,1) | |
| 151 | local BodyVel=Instance.new('BodyVelocity',Bee)
| |
| 152 | BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 153 | local BodyGyro=Instance.new('BodyGyro',Bee)
| |
| 154 | BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
| 155 | BodyGyro.P=2e4 | |
| 156 | coroutine.wrap(function() | |
| 157 | RenderStepped:connect(function() | |
| 158 | BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p) | |
| 159 | BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed | |
| 160 | end) | |
| 161 | end)() | |
| 162 | Bee.Touched:connect(function(p) | |
| 163 | if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then | |
| 164 | p.Parent:BreakJoints() | |
| 165 | Bee:Destroy'' | |
| 166 | thri:Play() | |
| 167 | end | |
| 168 | end) | |
| 169 | end | |
| 170 | end) | |
| 171 | ||
| 172 | ||
| 173 | Mouse.KeyDown:connect(function(k) | |
| 174 | local Key=k:lower'' | |
| 175 | if Key=='q'then | |
| 176 | QHold=true | |
| 177 | elseif Key=='e'then | |
| 178 | EHold=true | |
| 179 | end | |
| 180 | end) | |
| 181 | ||
| 182 | Mouse.KeyUp:connect(function(k) | |
| 183 | local Key=k:lower'' | |
| 184 | if Key=='q'then | |
| 185 | QHold=false | |
| 186 | elseif Key=='e'then | |
| 187 | EHold=false | |
| 188 | end | |
| 189 | end) | |
| 190 | ||
| 191 | coroutine.wrap(function() | |
| 192 | RenderStepped:connect(function() | |
| 193 | if QHold then | |
| 194 | if BeeSpeed>0 then | |
| 195 | BeeSpeed=BeeSpeed-1 | |
| 196 | end | |
| 197 | elseif EHold then | |
| 198 | BeeSpeed=BeeSpeed+1 | |
| 199 | end | |
| 200 | end) | |
| 201 | end)() | |
| 202 | ||
| 203 | ||
| 204 | ||
| 205 | ||
| 206 | mse = Player:GetMouse() | |
| 207 | ||
| 208 | sound = Instance.new("Sound", Character)
| |
| 209 | sound.SoundId = "https://www.roblox.com/asset/?id=290807425" | |
| 210 | sound.Volume = 2.5 | |
| 211 | sound2 = Instance.new("Sound", Character)
| |
| 212 | sound2.SoundId = "https://www.roblox.com/asset/?id=290810519" | |
| 213 | sound2.Volume = 2.5 | |
| 214 | sound3 = Instance.new("Sound", Character)
| |
| 215 | sound3.SoundId = "https://www.roblox.com/asset/?id=290807377" | |
| 216 | sound3.Volume = 1.8 | |
| 217 | sound4 = Instance.new("Sound", Character)
| |
| 218 | sound4.SoundId = "https://www.roblox.com/asset/?id=290807397" | |
| 219 | sound4.Volume = 2 | |
| 220 | TSTheme = Instance.new("Sound", Character)
| |
| 221 | TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380" | |
| 222 | TSTheme.Volume = 2 | |
| 223 | canworld = true | |
| 224 | mse.KeyDown:connect(function(key) | |
| 225 | key = key:lower() | |
| 226 | if key == "t" then | |
| 227 | if canworld == false then return end | |
| 228 | if canworld then | |
| 229 | canworld = false | |
| 230 | sound3:Play() | |
| 231 | tecks.Text = "THE WORLD STOP TIME!" | |
| 232 | wait(2) | |
| 233 | tecks.Text = LocalPlayer.Name | |
| 234 | sound:Play() | |
| 235 | sound4:Play() | |
| 236 | TSTheme:Play() | |
| 237 | ||
| 238 | local function spawnpart() | |
| 239 | sphere = Instance.new("Part")
| |
| 240 | --game.Debris:AddItem(sphere,3) | |
| 241 | local sm = Instance.new("SpecialMesh", sphere)
| |
| 242 | sm.MeshType = "Sphere" | |
| 243 | sphere.Transparency = 0.5 | |
| 244 | sphere.Anchored = true | |
| 245 | sphere.CanCollide = false | |
| 246 | sphere.Material = "Neon" | |
| 247 | sphere.BrickColor = BrickColor.new("Black")
| |
| 248 | end | |
| 249 | ||
| 250 | local function weld(lol) | |
| 251 | local weld = Instance.new("Weld", Player.Character.Torso)
| |
| 252 | weld.Part0 = Player.Character.Torso | |
| 253 | weld.Part1 = lol | |
| 254 | weld.C0 = Player.Character.Torso.CFrame:inverse() | |
| 255 | weld.C1 = lol.CFrame:inverse() | |
| 256 | end | |
| 257 | wait() | |
| 258 | spawnpart() | |
| 259 | for i, v in pairs(game.Players:GetChildren()) do | |
| 260 | t = v.Character:FindFirstChild("Torso")
| |
| 261 | if t then | |
| 262 | t.Anchored = true | |
| 263 | Player.Character:FindFirstChild("Torso").Anchored = false
| |
| 264 | end | |
| 265 | RA = v.Character:FindFirstChild("Right Arm")
| |
| 266 | if RA then | |
| 267 | RA.Anchored = true | |
| 268 | Player.Character:FindFirstChild("Right Arm").Anchored = false
| |
| 269 | end | |
| 270 | LA = v.Character:FindFirstChild("Left Arm")
| |
| 271 | if LA then | |
| 272 | LA.Anchored = true | |
| 273 | Player.Character:FindFirstChild("Left Arm").Anchored = false
| |
| 274 | end | |
| 275 | RL = v.Character:FindFirstChild("Right Leg")
| |
| 276 | if RL then | |
| 277 | RL.Anchored = true | |
| 278 | Player.Character:FindFirstChild("Right Leg").Anchored = false
| |
| 279 | end | |
| 280 | LL = v.Character:FindFirstChild("Left Leg")
| |
| 281 | if LL then | |
| 282 | LL.Anchored = true | |
| 283 | Player.Character:FindFirstChild("Left Leg").Anchored = false
| |
| 284 | end | |
| 285 | end | |
| 286 | weld(sphere) | |
| 287 | cce = Instance.new("ColorCorrectionEffect", game.Lighting)
| |
| 288 | cce.Saturation = -5 | |
| 289 | --game.Debris:AddItem(cce, 5) | |
| 290 | sphere.Parent = Character.Torso | |
| 291 | for i = 1,3 do | |
| 292 | sphere.Size = sphere.Size + Vector3.new(50,50,50) | |
| 293 | wait() | |
| 294 | end | |
| 295 | wait() | |
| 296 | sphere:Destroy() | |
| 297 | BeeSpeed = 0 | |
| 298 | cce.Saturation = -0.1 | |
| 299 | wait(0.3) | |
| 300 | cce.Saturation = -0.2 | |
| 301 | wait(0.3) | |
| 302 | cce.Saturation = -0.3 | |
| 303 | wait(0.2) | |
| 304 | cce.Saturation = -1.5 | |
| 305 | wait() | |
| 306 | end | |
| 307 | end | |
| 308 | end | |
| 309 | ) | |
| 310 | ||
| 311 | tecks.Text = LocalPlayer.Name | |
| 312 | ||
| 313 | mse.KeyDown:connect(function(key) | |
| 314 | key = key:lower() | |
| 315 | if key == "y" then | |
| 316 | canworld = true | |
| 317 | tecks.Text = "Time continues moving again." | |
| 318 | sound2:Play() | |
| 319 | wait() | |
| 320 | BeeSpeed = 1 | |
| 321 | cce.Saturation = -1.3 | |
| 322 | wait(0.5) | |
| 323 | BeeSpeed = 1.2 | |
| 324 | cce.Saturation = -0.5 | |
| 325 | wait(0.5) | |
| 326 | BeeSpeed = 1.4 | |
| 327 | cce.Saturation = -0.4 | |
| 328 | wait(0.3) | |
| 329 | BeeSpeed = 1.5 | |
| 330 | cce.Saturation = -0.2 | |
| 331 | wait(0.2) | |
| 332 | cce.Saturation = 0 | |
| 333 | ||
| 334 | for i, v in pairs(game.Players:GetChildren()) do | |
| 335 | t = v.Character:FindFirstChild("Torso")
| |
| 336 | if t then | |
| 337 | t.Anchored = false | |
| 338 | end | |
| 339 | RA = v.Character:FindFirstChild("Right Arm")
| |
| 340 | if RA then | |
| 341 | RA.Anchored = false | |
| 342 | end | |
| 343 | LA = v.Character:FindFirstChild("Left Arm")
| |
| 344 | if LA then | |
| 345 | LA.Anchored = false | |
| 346 | end | |
| 347 | RL = v.Character:FindFirstChild("Right Leg")
| |
| 348 | if RL then | |
| 349 | RL.Anchored = false | |
| 350 | end | |
| 351 | LL = v.Character:FindFirstChild("Left Leg")
| |
| 352 | if LL then | |
| 353 | LL.Anchored = false | |
| 354 | end | |
| 355 | end | |
| 356 | BeeSpeed = 100 | |
| 357 | tecks.Text = LocalPlayer.Name | |
| 358 | TSTheme:Stop() | |
| 359 | end | |
| 360 | end) |