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 | ||
84 | ||
85 | local plr = owner | |
86 | local Cha = plr.Character | |
87 | local human = Cha:FindFirstChild("Humanoid") | |
88 | local RightArm = Cha:FindFirstChild("Right Arm") | |
89 | local LeftArm = Cha:FindFirstChild("Left Arm") | |
90 | local Torso = Cha:FindFirstChild("Torso") | |
91 | local Head = Cha:FindFirstChild("Head") | |
92 | local LeftArm = Cha:FindFirstChild("Left Arm") | |
93 | ||
94 | ||
95 | - | mse = Player:GetMouse() |
95 | + | mse = plr:GetMouse() |
96 | ||
97 | sound = Instance.new("Sound", Character) | |
98 | sound.SoundId = "https://www.roblox.com/asset/?id=290807425" | |
99 | sound.Volume = 2.5 | |
100 | sound2 = Instance.new("Sound", Character) | |
101 | sound2.SoundId = "https://www.roblox.com/asset/?id=290810519" | |
102 | sound2.Volume = 2.5 | |
103 | sound3 = Instance.new("Sound", Character) | |
104 | sound3.SoundId = "https://www.roblox.com/asset/?id=290807377" | |
105 | sound3.Volume = 1.8 | |
106 | sound4 = Instance.new("Sound", Character) | |
107 | sound4.SoundId = "https://www.roblox.com/asset/?id=290807397" | |
108 | sound4.Volume = 2 | |
109 | TSTheme = Instance.new("Sound", Character) | |
110 | TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380" | |
111 | TSTheme.Volume = 2 | |
112 | canworld = true | |
113 | mse.KeyDown:connect(function(key) | |
114 | key = key:lower() | |
115 | if key == "t" then | |
116 | if canworld == false then return end | |
117 | if canworld then | |
118 | canworld = false | |
119 | sound3:Play() | |
120 | tecks.Text = "THE WORLD STOP TIME!" | |
121 | wait(2) | |
122 | tecks.Text = LocalPlayer.Name | |
123 | sound:Play() | |
124 | sound4:Play() | |
125 | TSTheme:Play() | |
126 | ||
127 | local function spawnpart() | |
128 | sphere = Instance.new("Part") | |
129 | --game.Debris:AddItem(sphere,3) | |
130 | local sm = Instance.new("SpecialMesh", sphere) | |
131 | sm.MeshType = "Sphere" | |
132 | sphere.Transparency = 0.5 | |
133 | sphere.Anchored = true | |
134 | sphere.CanCollide = false | |
135 | sphere.Material = "Neon" | |
136 | sphere.BrickColor = BrickColor.new("Black") | |
137 | end | |
138 | ||
139 | local function weld(lol) | |
140 | local weld = Instance.new("Weld", Player.Character.Torso) | |
141 | weld.Part0 = Player.Character.Torso | |
142 | weld.Part1 = lol | |
143 | weld.C0 = Player.Character.Torso.CFrame:inverse() | |
144 | weld.C1 = lol.CFrame:inverse() | |
145 | end | |
146 | wait() | |
147 | spawnpart() | |
148 | for i, v in pairs(game.Players:GetChildren()) do | |
149 | t = v.Character:FindFirstChild("Torso") | |
150 | if t then | |
151 | t.Anchored = true | |
152 | Player.Character:FindFirstChild("Torso").Anchored = false | |
153 | end | |
154 | RA = v.Character:FindFirstChild("Right Arm") | |
155 | if RA then | |
156 | RA.Anchored = true | |
157 | Player.Character:FindFirstChild("Right Arm").Anchored = false | |
158 | end | |
159 | LA = v.Character:FindFirstChild("Left Arm") | |
160 | if LA then | |
161 | LA.Anchored = true | |
162 | Player.Character:FindFirstChild("Left Arm").Anchored = false | |
163 | end | |
164 | RL = v.Character:FindFirstChild("Right Leg") | |
165 | if RL then | |
166 | RL.Anchored = true | |
167 | Player.Character:FindFirstChild("Right Leg").Anchored = false | |
168 | end | |
169 | LL = v.Character:FindFirstChild("Left Leg") | |
170 | if LL then | |
171 | LL.Anchored = true | |
172 | Player.Character:FindFirstChild("Left Leg").Anchored = false | |
173 | end | |
174 | end | |
175 | weld(sphere) | |
176 | cce = Instance.new("ColorCorrectionEffect", game.Lighting) | |
177 | cce.Saturation = -5 | |
178 | --game.Debris:AddItem(cce, 5) | |
179 | sphere.Parent = Character.Torso | |
180 | for i = 1,3 do | |
181 | sphere.Size = sphere.Size + Vector3.new(50,50,50) | |
182 | wait() | |
183 | end | |
184 | wait() | |
185 | sphere:Destroy() | |
186 | BeeSpeed = 0 | |
187 | cce.Saturation = -0.1 | |
188 | wait(0.3) | |
189 | cce.Saturation = -0.2 | |
190 | wait(0.3) | |
191 | cce.Saturation = -0.3 | |
192 | wait(0.2) | |
193 | cce.Saturation = -1.5 | |
194 | wait() | |
195 | end | |
196 | end | |
197 | end | |
198 | ) | |
199 | ||
200 | tecks.Text = LocalPlayer.Name | |
201 | ||
202 | mse.KeyDown:connect(function(key) | |
203 | key = key:lower() | |
204 | if key == "y" then | |
205 | canworld = true | |
206 | tecks.Text = "Time continues moving again." | |
207 | sound2:Play() | |
208 | wait() | |
209 | BeeSpeed = 1 | |
210 | cce.Saturation = -1.3 | |
211 | wait(0.5) | |
212 | BeeSpeed = 1.2 | |
213 | cce.Saturation = -0.5 | |
214 | wait(0.5) | |
215 | BeeSpeed = 1.4 | |
216 | cce.Saturation = -0.4 | |
217 | wait(0.3) | |
218 | BeeSpeed = 1.5 | |
219 | cce.Saturation = -0.2 | |
220 | wait(0.2) | |
221 | cce.Saturation = 0 | |
222 | ||
223 | for i, v in pairs(game.Players:GetChildren()) do | |
224 | t = v.Character:FindFirstChild("Torso") | |
225 | if t then | |
226 | t.Anchored = false | |
227 | end | |
228 | RA = v.Character:FindFirstChild("Right Arm") | |
229 | if RA then | |
230 | RA.Anchored = false | |
231 | end | |
232 | LA = v.Character:FindFirstChild("Left Arm") | |
233 | if LA then | |
234 | LA.Anchored = false | |
235 | end | |
236 | RL = v.Character:FindFirstChild("Right Leg") | |
237 | if RL then | |
238 | RL.Anchored = false | |
239 | end | |
240 | LL = v.Character:FindFirstChild("Left Leg") | |
241 | if LL then | |
242 | LL.Anchored = false | |
243 | end | |
244 | end | |
245 | BeeSpeed = 100 | |
246 | tecks.Text = LocalPlayer.Name | |
247 | TSTheme:Stop() | |
248 | end | |
249 | end) |