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