View difference between Paste ID: SbwLbc68 and KQSceWwW
SHOW: | | - or go back to the newest paste.
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
local p = owner
84
local char = p.Character
85
local hed = char.Head
86
local LocalPlayer = p
87
88
local naeeym = Instance.new("BillboardGui",char)
89
naeeym.Size = UDim2.new(0,100,0,40)
90
naeeym.StudsOffset = Vector3.new(0,5,0)
91
naeeym.Adornee = char.Head
92
local tecks = Instance.new("TextLabel",naeeym)
93
tecks.BackgroundTransparency = 1
94
tecks.BorderSizePixel = 0
95
tecks.Text = LocalPlayer.Name
96
tecks.Font = "ArialBold"
97
tecks.FontSize = "Size24"
98
tecks.TextStrokeTransparency = 0
99
tecks.TextStrokeColor3 = Color3.new(0,0,0)
100
tecks.TextColor3 = Color3.new(255,255,255)
101
tecks.Size = UDim2.new(1,0,0.5,0)
102
103
local Player = owner
104
local Character = p.Character
105
local LeftArm2 = Character["Left Arm"]
106
local RightArm2 = Character["Right Arm"]
107
local LeftLeg2 = Character["Left Leg"]
108
local RightLeg2 = Character["Right Leg"]
109
local Head2 = Character.Head
110
local Torso2 = Character.Torso
111
112
--created by SoldierJoao
113
--Credits to metabee for the knives edit
114
cut = Instance.new("Sound", Character)
115
cut.SoundId = "https://www.roblox.com/asset/?id=97095069"
116
cut.Volume = 1.5
117
thri = Instance.new("Sound", Character)
118
thri.SoundId = "https://www.roblox.com/asset/?id=186311262"
119
thri.Volume = 2.5
120
WRY = Instance.new("Sound", Character)
121
WRY.SoundId = "https://www.roblox.com/asset/?id=276152532"
122
WRY.Volume = 5
123
124-
local Players= owner
124+
local Players = owner
125-
local Player= owner
125+
126-
local Mouse=Player:GetMouse''
126+
local Mouse = owner
127
local RenderStepped=game:service'RunService'.RenderStepped
128
129
local MeshId='http://www.roblox.com/asset?id=202083123'
130
local TextureId='http://www.roblox.com/asset/?id=189436355'
131
132
local BeeSpeed= 100
133
134
local QHold=false
135
local EHold=false
136
137
Mouse.Button1Down:connect(function()
138
cut:Play()
139
if Mouse.Target then
140
local Bee=Instance.new('Part',Player.Character)
141
Bee.CanCollide=false
142
Bee.Size=Vector3.new(2,2,2)
143
Bee.CFrame=Player.Character.Torso.CFrame
144
local BeeMesh=Instance.new('SpecialMesh',Bee)
145
BeeMesh.MeshType='FileMesh'
146
BeeMesh.MeshId=MeshId
147
BeeMesh.TextureId=TextureId
148
BeeMesh.Scale=Vector3.new(1,1,1)
149
local BodyVel=Instance.new('BodyVelocity',Bee)
150
BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
151
local BodyGyro=Instance.new('BodyGyro',Bee)
152
BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
153
BodyGyro.P=2e4
154
coroutine.wrap(function()
155
RenderStepped:connect(function()
156
BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
157
BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
158
end)
159
end)()
160
Bee.Touched:connect(function(p)
161
if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
162
p.Parent:BreakJoints()
163
Bee:Destroy''
164
thri:Play()
165
end
166
end)
167
end
168
end)
169
170
171
Mouse.KeyDown:connect(function(k)
172
local Key=k:lower''
173
if Key=='q'then
174
QHold=true
175
elseif Key=='e'then
176
EHold=true
177
end
178
end)
179
180
Mouse.KeyUp:connect(function(k)
181
local Key=k:lower''
182
if Key=='q'then
183
QHold=false
184
elseif Key=='e'then
185
EHold=false
186
end
187
end)
188
189
coroutine.wrap(function()
190
RenderStepped:connect(function()
191
if QHold then
192
if BeeSpeed>0 then
193
BeeSpeed=BeeSpeed-1
194
end
195
elseif EHold then
196
BeeSpeed=BeeSpeed+1
197
end
198
end)
199
end)()
200
201
202
203
204
mse = Player:GetMouse()
205
206
sound = Instance.new("Sound", Character)
207
sound.SoundId = "https://www.roblox.com/asset/?id=290807425"
208
sound.Volume = 2.5
209
sound2 = Instance.new("Sound", Character)
210
sound2.SoundId = "https://www.roblox.com/asset/?id=290810519"
211
sound2.Volume = 2.5
212
sound3 = Instance.new("Sound", Character)
213
sound3.SoundId = "https://www.roblox.com/asset/?id=290807377"
214
sound3.Volume = 1.8
215
sound4 = Instance.new("Sound", Character)
216
sound4.SoundId = "https://www.roblox.com/asset/?id=290807397"
217
sound4.Volume = 2
218
TSTheme = Instance.new("Sound", Character)
219
TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380"
220
TSTheme.Volume = 2
221
canworld = true
222
mse.KeyDown:connect(function(key)
223
	key = key:lower()
224
	if key == "t" then
225
		if canworld == false then return end
226
		if canworld then
227
		canworld = false
228
		sound3:Play()
229
tecks.Text = "THE WORLD STOP TIME!"
230
wait(2)
231
tecks.Text = LocalPlayer.Name
232
		sound:Play()
233
		sound4:Play()
234
		TSTheme:Play()
235
236
		local function spawnpart()
237
		sphere = Instance.new("Part")
238
		--game.Debris:AddItem(sphere,3)
239
		local sm = Instance.new("SpecialMesh", sphere)
240
		sm.MeshType = "Sphere"
241
		sphere.Transparency = 0.5
242
		sphere.Anchored = true
243
		sphere.CanCollide = false
244
		sphere.Material = "Neon"
245
		sphere.BrickColor = BrickColor.new("Black")
246
		end
247
		
248
		local function weld(lol)
249
			local weld = Instance.new("Weld", Player.Character.Torso)
250
			weld.Part0 = Player.Character.Torso
251
			weld.Part1 = lol
252
			weld.C0 = Player.Character.Torso.CFrame:inverse()
253
			weld.C1 = lol.CFrame:inverse()
254
		end
255
		wait()
256
		spawnpart()
257
			for i, v in pairs(game.Players:GetChildren()) do
258
			t = v.Character:FindFirstChild("Torso")
259
			if t then
260
				t.Anchored = true
261
				Player.Character:FindFirstChild("Torso").Anchored = false
262
			end
263
			RA = v.Character:FindFirstChild("Right Arm")
264
			if RA then
265
				RA.Anchored = true
266
				Player.Character:FindFirstChild("Right Arm").Anchored = false
267
			end
268
			LA = v.Character:FindFirstChild("Left Arm")
269
			if LA then
270
				LA.Anchored = true
271
				Player.Character:FindFirstChild("Left Arm").Anchored = false
272
			end
273
			RL = v.Character:FindFirstChild("Right Leg")
274
			if RL then
275
				RL.Anchored = true
276
				Player.Character:FindFirstChild("Right Leg").Anchored = false
277
			end
278
			LL = v.Character:FindFirstChild("Left Leg")
279
			if LL then
280
				LL.Anchored = true
281
				Player.Character:FindFirstChild("Left Leg").Anchored = false
282
			end
283
		end
284
		weld(sphere)
285
		cce = Instance.new("ColorCorrectionEffect", game.Lighting)
286
		cce.Saturation = -5
287
		--game.Debris:AddItem(cce, 5)
288
		sphere.Parent = Character.Torso
289
		for i = 1,3 do
290
			sphere.Size = sphere.Size + Vector3.new(50,50,50)
291
			wait()
292
			end
293
wait()
294
                        sphere:Destroy()
295
BeeSpeed = 0
296
		cce.Saturation = -0.1
297
		wait(0.3)
298
		cce.Saturation = -0.2
299
		wait(0.3)
300
		cce.Saturation = -0.3
301
		wait(0.2)
302
	        cce.Saturation = -1.5
303
                wait()
304
		end
305
	end
306
end
307
)
308
309
tecks.Text = LocalPlayer.Name
310
311
mse.KeyDown:connect(function(key)
312
	key = key:lower()
313
	if key == "y" then
314
canworld = true
315
tecks.Text = "Time continues moving again."
316
		sound2:Play()
317
wait()
318
BeeSpeed = 1
319
		cce.Saturation = -1.3
320
		wait(0.5)
321
BeeSpeed = 1.2
322
		cce.Saturation = -0.5
323
		wait(0.5)
324
BeeSpeed = 1.4
325
		cce.Saturation = -0.4
326
		wait(0.3)
327
BeeSpeed = 1.5
328
		cce.Saturation = -0.2
329
		wait(0.2)
330
	        cce.Saturation = 0
331
332
		for i, v in pairs(game.Players:GetChildren()) do
333
		t = v.Character:FindFirstChild("Torso")
334
			if t then
335
				t.Anchored = false
336
			end
337
			RA = v.Character:FindFirstChild("Right Arm")
338
			if RA then
339
				RA.Anchored = false
340
			end
341
			LA = v.Character:FindFirstChild("Left Arm")
342
			if LA then
343
				LA.Anchored = false
344
			end
345
			RL = v.Character:FindFirstChild("Right Leg")
346
			if RL then
347
				RL.Anchored = false
348
			end
349
			LL = v.Character:FindFirstChild("Left Leg")
350
			if LL then
351
				LL.Anchored = false
352
			end
353
		end
354
BeeSpeed = 100
355
tecks.Text = LocalPlayer.Name
356
TSTheme:Stop()
357
end
358
end)