SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | wait(1) | |
8 | ||
9 | --// Script made by Cronizete | |
10 | --// Please dont check the code its ugly | |
11 | --// Who ever has this and youre not the maker of this script then you just stole it unless I released it to the public or whatever but yeah | |
12 | --// Please, if you're going to showcase this. Make sure to give credits to me :D | |
13 | --// Anyways, enjoy the script!!!!!!!!!!!!!!! | |
14 | ||
15 | ||
16 | plr = game.Players.LocalPlayer | |
17 | char = plr.Character | |
18 | ff = Instance.new('ForceField', char) | |
19 | ff.Visible = false | |
20 | mouse = plr:GetMouse() | |
21 | human = char.Humanoid | |
22 | torso = char.Torso | |
23 | root = char.HumanoidRootPart | |
24 | lleg = char["Left Leg"] | |
25 | rleg = char["Right Leg"] | |
26 | larm = char["Left Arm"] | |
27 | rarm = char["Right Arm"] | |
28 | head = char.Head | |
29 | lshold = torso["Left Shoulder"] | |
30 | rshold = torso["Right Shoulder"] | |
31 | neck = torso.Neck | |
32 | lhip = torso["Left Hip"] | |
33 | rhip = torso["Right Hip"] | |
34 | lscf = lshold.C0 | |
35 | rscf = rshold.C0 | |
36 | ncf = neck.C0 | |
37 | lhcf = lhip.C0 | |
38 | rhcf = rhip.C0 | |
39 | rad = math.rad | |
40 | random = math.random | |
41 | sin = math.sin | |
42 | cos = math.cos | |
43 | floor = math.floor | |
44 | lsho = lshold.C0 | |
45 | rsho = rshold.C0 | |
46 | cd1 = true | |
47 | cd2 = true | |
48 | ||
49 | function harmlessexplo() | |
50 | sph = Instance.new('Part', char) | |
51 | sph.Anchored = true | |
52 | sph.CFrame = char.Torso.CFrame | |
53 | sph.CanCollide = false | |
54 | sph.Anchored = true | |
55 | sph.Transparency = 0 | |
56 | sph.Material = "Neon" | |
57 | sph.Shape = "Ball" | |
58 | sph.Size = Vector3.new(0.2,0.2,0.2) | |
59 | for i = 1,50 do | |
60 | wait() | |
61 | sph.Size = sph.Size + Vector3.new(4,4,4) | |
62 | - | for _,q in pairs(char:GetChildren()) do |
62 | + | |
63 | - | if q:IsA('Accessory') then |
63 | + | |
64 | - | q:Destroy() |
64 | + | |
65 | sph:Destroy() | |
66 | end | |
67 | - | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) |
67 | + | |
68 | - | a.MeshId = "279174949" |
68 | + | |
69 | - | a.BodyPart = "LeftArm" |
69 | + | |
70 | ||
71 | - | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) |
71 | + | |
72 | - | a.MeshId = "319336109" |
72 | + | |
73 | - | a.BodyPart = "LeftLeg" |
73 | + | |
74 | ||
75 | - | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) |
75 | + | |
76 | - | a.MeshId = "279174886" |
76 | + | |
77 | - | a.BodyPart = "RightArm" |
77 | + | |
78 | ||
79 | - | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) |
79 | + | |
80 | - | a.MeshId = "319336155" |
80 | + | |
81 | - | a.BodyPart = "RightLeg" |
81 | + | |
82 | sph.CanCollide = false | |
83 | - | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) |
83 | + | |
84 | - | a.MeshId = "376169183" |
84 | + | |
85 | - | a.BodyPart = "Torso" |
85 | + | |
86 | sph.Shape = "Ball" | |
87 | - | if q:IsA('Shirt') then |
87 | + | |
88 | - | q.ShirtTemplate = "rbxassetid://704100781" |
88 | + | |
89 | sp.MeshId = "http://www.roblox.com/Asset/?id=9982590" | |
90 | sp.Scale = Vector3.new(0.2,0.2,0.2) | |
91 | - | if q:IsA('Pants') then |
91 | + | |
92 | - | q.PantsTemplate = "rbxassetid://704102680" |
92 | + | |
93 | for i = 1, 25 do | |
94 | sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
95 | - | char["Left Arm"].BrickColor = BrickColor.new('Cyan') |
95 | + | |
96 | - | char["Right Arm"].BrickColor = BrickColor.new('Cyan') |
96 | + | |
97 | wait() | |
98 | - | if q.Name ~= "HumanoidRootPart" and q:IsA('Part') then |
98 | + | |
99 | - | q.Transparency = 1 |
99 | + | |
100 | for _,e in pairs(char:GetChildren()) do | |
101 | if e:IsA('Accessory') then | |
102 | e.Handle.Transparency = 0 | |
103 | end | |
104 | if e.Name ~= "HumanoidRootPart" and e:IsA('Part') then | |
105 | e.Transparency = 0 | |
106 | end | |
107 | end | |
108 | for i = 1, 115 do | |
109 | sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
110 | sph.Transparency = sph.Transparency + 0.01 | |
111 | sph.Rotation = Vector3.new( a, a, a) | |
112 | wait() | |
113 | a = a+15 | |
114 | end | |
115 | char.Torso.Anchored = false | |
116 | char.Humanoid.HipHeight = 0 | |
117 | end | |
118 | ||
119 | function chat(chatt) | |
120 | local text = Instance.new("BillboardGui", game.Players.LocalPlayer.Character) | |
121 | text.Size = UDim2.new(0,100,0,40) | |
122 | text.StudsOffset = Vector3.new(0,3,0) | |
123 | text.Adornee = game.Players.LocalPlayer.Character.Head | |
124 | text.Name = "1" | |
125 | local text1 = Instance.new("TextLabel",text) | |
126 | text1.BackgroundTransparency = 1 | |
127 | text1.TextStrokeTransparency = 1 | |
128 | text1.TextTransparency = 1 | |
129 | text1.BorderSizePixel = 0 | |
130 | text1.Text = chatt | |
131 | text1.Font = "Fantasy" | |
132 | text1.FontSize = "Size36" | |
133 | text1.TextStrokeTransparency = 0 | |
134 | text1.TextColor3 = Color3.new(1,1,1) | |
135 | text1.TextStrokeColor3 = Color3.new(0,0,0) | |
136 | text1.Size = UDim2.new(1,0,0.5,0) | |
137 | for i=1,15 do | |
138 | wait() | |
139 | text1.TextStrokeTransparency = text1.TextStrokeTransparency - 0.1 | |
140 | text1.TextTransparency = text1.TextTransparency - 0.1 | |
141 | end | |
142 | wait(1) | |
143 | for i=1,25 do | |
144 | wait() | |
145 | text1.TextStrokeTransparency = text1.TextStrokeTransparency + 0.1 | |
146 | text1.TextTransparency = text1.TextTransparency + 0.1 | |
147 | end | |
148 | end | |
149 | ||
150 | function explo() | |
151 | sph = Instance.new('Part', char) | |
152 | sph.Touched:connect(function(hit) | |
153 | if hit.Parent:FindFirstChild('Humanoid') then | |
154 | if hit.Parent.Name ~= plr.Name then | |
155 | hit.Parent:Destroy() | |
156 | else | |
157 | end | |
158 | end | |
159 | end) | |
160 | sph.Anchored = true | |
161 | sph.CFrame = char.Torso.CFrame | |
162 | sph.CanCollide = false | |
163 | sph.Anchored = true | |
164 | sph.Transparency = 0 | |
165 | sph.Material = "Neon" | |
166 | sph.Shape = "Ball" | |
167 | sph.Size = Vector3.new(0.2,0.2,0.2) | |
168 | for i = 1,50 do | |
169 | wait() | |
170 | sph.Size = sph.Size + Vector3.new(4,4,4) | |
171 | sph.Transparency = sph.Transparency + 0.03 | |
172 | sph.CFrame = char.Torso.CFrame | |
173 | end | |
174 | sph:Destroy() | |
175 | end | |
176 | ||
177 | --// Main script, don't touch if you don't know how to script or you might ruin the script. | |
178 | ||
179 | entrance() | |
180 | ||
181 | mouse.Button1Down:connect(function() | |
182 | if cd1 then | |
183 | if mouse.Target.Parent:FindFirstChild('Humanoid') then | |
184 | cd1 = false | |
185 | local target = mouse.Target.Parent | |
186 | target:FindFirstChild('Torso').Anchored = true | |
187 | for i=0,1,0.1 do | |
188 | rshold.C0 = rshold.C0:lerp(CFrame.new(0.9,0.5,-0.1)*CFrame.Angles(rad(-90),rad(90),rad(-180)),i) | |
189 | wait() | |
190 | end | |
191 | chat("Hakai...") | |
192 | wait(.5) | |
193 | particle = Instance.new('Part', workspace) | |
194 | particle.Anchored = true | |
195 | particle.CFrame = target:FindFirstChild('Torso').CFrame | |
196 | particle.CanCollide = false | |
197 | particle.Anchored = true | |
198 | particle.Transparency = 1 | |
199 | particle.Size = Vector3.new(6.52, 10.36, 6.34) | |
200 | local pe = Instance.new("ParticleEmitter") | |
201 | pe.Acceleration = Vector3.new(7, 7, 7) | |
202 | pe.Lifetime = NumberRange.new(1, 4) | |
203 | pe.Rate = 500 | |
204 | pe.RotSpeed = NumberRange.new(7, 7) | |
205 | pe.LightEmission = 0.700 | |
206 | pe.Rotation = NumberRange.new(0, 0) | |
207 | pe.Size = NumberSequence.new({ | |
208 | NumberSequenceKeypoint.new(0, 1, 0), | |
209 | NumberSequenceKeypoint.new(1, 10, 0), | |
210 | NumberSequenceKeypoint.new(1, 10, 0) | |
211 | }) | |
212 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
213 | pe.Transparency = NumberSequence.new({ | |
214 | NumberSequenceKeypoint.new(0, 0, 0), | |
215 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
216 | NumberSequenceKeypoint.new(1, 1, 1) | |
217 | }) | |
218 | pe.ZOffset = 5 | |
219 | - | chat("Destroy!") |
219 | + | |
220 | pe.Parent = particle | |
221 | pe.Enabled = true | |
222 | wait(1) | |
223 | pe.Enabled = false | |
224 | target:Destroy() | |
225 | for i=0,1,0.1 do | |
226 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
227 | wait() | |
228 | end | |
229 | wait(1) | |
230 | cd1 = true | |
231 | end | |
232 | end | |
233 | end) | |
234 | ||
235 | mouse.KeyDown:connect(function(key) | |
236 | if key == "t" then | |
237 | if cd1 then | |
238 | cd1 = false | |
239 | particle = Instance.new('Part', workspace) | |
240 | particle.Anchored = true | |
241 | particle.CFrame = char:FindFirstChild('Torso').CFrame | |
242 | particle.CanCollide = false | |
243 | particle.Anchored = true | |
244 | particle.Transparency = 1 | |
245 | particle.Size = Vector3.new(6.52, 10.36, 6.34) | |
246 | local pe = Instance.new("ParticleEmitter") | |
247 | pe.Acceleration = Vector3.new(7, 7, 7) | |
248 | pe.Lifetime = NumberRange.new(1, 4) | |
249 | pe.Rate = 500 | |
250 | pe.RotSpeed = NumberRange.new(7, 7) | |
251 | pe.LightEmission = 0.700 | |
252 | pe.Rotation = NumberRange.new(0, 0) | |
253 | pe.Size = NumberSequence.new({ | |
254 | NumberSequenceKeypoint.new(0, 1, 0), | |
255 | NumberSequenceKeypoint.new(1, 10, 0), | |
256 | NumberSequenceKeypoint.new(1, 10, 0) | |
257 | }) | |
258 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
259 | pe.Transparency = NumberSequence.new({ | |
260 | NumberSequenceKeypoint.new(0, 0, 0), | |
261 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
262 | NumberSequenceKeypoint.new(1, 1, 1) | |
263 | }) | |
264 | pe.ZOffset = 5 | |
265 | pe.VelocitySpread = 360 | |
266 | pe.Parent = particle | |
267 | pe.Enabled = true | |
268 | wait(.3) | |
269 | char.Torso.CFrame = mouse.Hit | |
270 | pe.Enabled = false | |
271 | harmlessexplo() | |
272 | wait(3) | |
273 | cd1 = true | |
274 | end | |
275 | end | |
276 | ||
277 | if key == "q" then | |
278 | if cd2 then | |
279 | cd2 = false | |
280 | for i=0,1,0.1 do | |
281 | lshold.C0 = lshold.C0:lerp(CFrame.new(-1.3,0.7,-0.1)*CFrame.Angles(rad(25),-rad(20),-rad(90)),i) | |
282 | rshold.C0 = rshold.C0:lerp(CFrame.new(1.3,0.7,-0.1)*CFrame.Angles(rad(25),rad(20),rad(90)),i) | |
283 | wait() | |
284 | end | |
285 | ||
286 | local pe = Instance.new("ParticleEmitter") | |
287 | pe.Acceleration = Vector3.new(3, 3, 3) | |
288 | pe.Lifetime = NumberRange.new(0.1, 0.5) | |
289 | pe.Rate = 4000 | |
290 | pe.RotSpeed = NumberRange.new(0, 0) | |
291 | pe.LightEmission = 0.700 | |
292 | pe.Rotation = NumberRange.new(0, 0) | |
293 | pe.Size = NumberSequence.new({ | |
294 | NumberSequenceKeypoint.new(0, 1, 0), | |
295 | NumberSequenceKeypoint.new(0.1, 1, 0), | |
296 | NumberSequenceKeypoint.new(1, 1, 0) | |
297 | }) | |
298 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
299 | pe.Transparency = NumberSequence.new({ | |
300 | NumberSequenceKeypoint.new(0, 0, 0), | |
301 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
302 | NumberSequenceKeypoint.new(1, 1, 1) | |
303 | }) | |
304 | pe.ZOffset = 5 | |
305 | pe.VelocitySpread = 360 | |
306 | pe.Parent = char["Right Arm"] | |
307 | pe1 = pe:Clone() | |
308 | pe1.Parent = char["Left Arm"] | |
309 | wait(.05) | |
310 | pe.Enabled = true | |
311 | ||
312 | wait(.05) | |
313 | ||
314 | for i= 1, 100 do | |
315 | char.Humanoid.HipHeight = char.Humanoid.HipHeight + 0.5 | |
316 | wait() | |
317 | end | |
318 | ||
319 | wait(.03) | |
320 | ||
321 | chat("Annoying...") | |
322 | wait(.07) | |
323 | explo() | |
324 | wait(.04) | |
325 | for i=0,1,0.1 do | |
326 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
327 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
328 | wait() | |
329 | end | |
330 | pe.Enabled = false | |
331 | pe1.Enabled = fasle | |
332 | char.Humanoid.HipHeight = 0 | |
333 | wait(5) | |
334 | cd2 = true | |
335 | end | |
336 | end | |
337 | end) | |
338 | ||
339 | while wait() do | |
340 | char.Humanoid.MaxHealth = 99999 | |
341 | char.Humanoid.Health = char.Humanoid.MaxHealth | |
342 | end |