SHOW:
|
|
- or go back to the newest paste.
1 | - | wait(1) |
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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end wait(1) | |
6 | script.Name = "The Corrupted" | |
7 | local d = false | |
8 | local flameShoot = false | |
9 | local char = game.Players.LocalPlayer.Character | |
10 | char.Humanoid.HipHeight = 1.5 | |
11 | local mouse = game.Players.LocalPlayer:GetMouse() | |
12 | char.Humanoid.MaxHealth = math.huge | |
13 | char.Humanoid.Health = math.huge | |
14 | function makeBloodParticle(parent) | |
15 | local par = Instance.new("ParticleEmitter",parent) | |
16 | par.Texture = "http://www.roblox.com/asset/?id=469953941" | |
17 | par.RotSpeed = NumberRange.new(1) | |
18 | par.Acceleration = Vector3.new(0,-30,0) | |
19 | par.Lifetime = NumberRange.new(50) | |
20 | par.Rate = 999 | |
21 | end | |
22 | function rig(motor,C0,C1) | |
23 | motor.C0 = C0 | |
24 | motor.C1 = C1 | |
25 | end | |
26 | char.Animate.Parent = nil | |
27 | rig(char.Torso["Right Shoulder"],CFrame.new(1.5,0,-.3)*CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(0),math.rad(30)),CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))) | |
28 | rig(char.Torso["Left Shoulder"],CFrame.new(-1.5,0,-.3)*CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(0),math.rad(-30)),CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))) | |
29 | rig(char.HumanoidRootPart["RootJoint"],CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(-15),math.rad(0),math.rad(0)),CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))) | |
30 | rig(char.Torso["Right Hip"],CFrame.new(.5,-2,.3)*CFrame.fromEulerAnglesXYZ(math.rad(-15),math.rad(0),math.rad(0)),CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))) | |
31 | rig(char.Torso["Left Hip"],CFrame.new(-.5,-2,.3)*CFrame.fromEulerAnglesXYZ(math.rad(-15),math.rad(0),math.rad(0)),CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))) | |
32 | function damage(hit) | |
33 | local h = hit.Parent:findFirstChildOfClass("Humanoid") | |
34 | if h ~= nil and hit.Parent ~= char then | |
35 | h.Health = h.Health - 10 | |
36 | end | |
37 | end | |
38 | function cleanHead() | |
39 | local things = char:GetChildren() | |
40 | for i=1, #things do | |
41 | if things[i].ClassName == "Accessory" then | |
42 | local t = things[i] | |
43 | t.Parent = nil | |
44 | end | |
45 | end | |
46 | char.Head:findFirstChildOfClass("Decal").Parent = nil | |
47 | end | |
48 | function cleanShirt() | |
49 | local things = char:GetChildren() | |
50 | for i=1, #things do | |
51 | if things[i].ClassName == "Shirt" then | |
52 | local t = things[i] | |
53 | t.Parent = nil | |
54 | end | |
55 | end | |
56 | end | |
57 | function cleanPants() | |
58 | local things = char:GetChildren() | |
59 | for i=1, #things do | |
60 | if things[i].ClassName == "Pants" then | |
61 | local t = things[i] | |
62 | t.Parent = nil | |
63 | end | |
64 | end | |
65 | end | |
66 | function cleanPackage() | |
67 | local things = char:GetChildren() | |
68 | for i=1, #things do | |
69 | if things[i].ClassName == "CharacterMesh" then | |
70 | local t = things[i] | |
71 | t.Parent = nil | |
72 | end | |
73 | end | |
74 | end | |
75 | local music = Instance.new("Sound",game.Players.LocalPlayer.Character.Head) | |
76 | music.Name = "Music" | |
77 | music.SoundId = "rbxassetid://1753314871" | |
78 | music.Looped = true | |
79 | music:Play() | |
80 | local laser = Instance.new("Sound",game.Players.LocalPlayer.Character.Head) | |
81 | laser.SoundId = "rbxassetid://340722848" | |
82 | local flame = Instance.new("Sound",char.Head) | |
83 | flame.SoundId = "rbxassetid://1544022435" | |
84 | cleanHead() | |
85 | cleanPackage() | |
86 | cleanPants() | |
87 | cleanShirt() | |
88 | function laserBeam() | |
89 | if d == false then | |
90 | d = true | |
91 | laser:Play() | |
92 | local ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - char.Torso.CFrame.p).unit * 300) | |
93 | local part, position = workspace:FindPartOnRay(ray, char, false, true) | |
94 | local beam = Instance.new("Part", workspace) | |
95 | beam.BrickColor = BrickColor.new("Toothpaste") | |
96 | beam.Material = "Neon" | |
97 | beam.Transparency = 0.7 | |
98 | beam.Anchored = true | |
99 | beam.Locked = true | |
100 | beam.CanCollide = false | |
101 | local distance = (char.Torso.CFrame.p - position).magnitude | |
102 | beam.Size = Vector3.new(2, 2, distance) | |
103 | beam.CFrame = CFrame.new(char.Torso.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
104 | beam.Touched:connect(damage) | |
105 | wait(.05) | |
106 | beam.Transparency = beam.Transparency + .05 | |
107 | beam.Size = beam.Size + Vector3.new(.1,.1,.1) | |
108 | wait(.05) | |
109 | beam.Transparency = beam.Transparency + .05 | |
110 | beam.Size = beam.Size + Vector3.new(.1,.1,.1) | |
111 | wait(.05) | |
112 | beam.Transparency = beam.Transparency + .05 | |
113 | beam.Size = beam.Size + Vector3.new(.1,.1,.1) | |
114 | wait(.05) | |
115 | beam.Transparency = beam.Transparency + .05 | |
116 | beam.Size = beam.Size + Vector3.new(.1,.1,.1) | |
117 | wait(.05) | |
118 | beam.Transparency = beam.Transparency + .05 | |
119 | beam.Size = beam.Size + Vector3.new(.1,.1,.1) | |
120 | wait(.05) | |
121 | d = false | |
122 | beam.Parent = nil | |
123 | end | |
124 | end | |
125 | mouse.KeyDown:connect(function(k) | |
126 | if k == "e" then | |
127 | laserBeam() | |
128 | end | |
129 | end) | |
130 | mouse.Button1Down:connect(function() | |
131 | flameShoot = true | |
132 | end) | |
133 | mouse.Button1Up:connect(function() | |
134 | flameShoot = false | |
135 | end) | |
136 | while wait(.1) do | |
137 | if flameShoot == true then | |
138 | local flameBall = Instance.new("Part",game.Workspace) | |
139 | flameBall.Locked = true | |
140 | flameBall.CanCollide = false | |
141 | flameBall.Transparency = 1 | |
142 | flameBall.Size = Vector3.new(2,2,2) | |
143 | flameBall.CFrame = char["Left Arm"].CFrame - Vector3.new(0,1,0) | |
144 | flameBall.CFrame = CFrame.new(char["Left Arm"].Position,mouse.Hit.Position) | |
145 | flameBall.Velocity = flameBall.CFrame.lookVector *100 | |
146 | local fbView = Instance.new("BillboardGui",flameBall) | |
147 | fbView.Adornee = flameBall | |
148 | fbView.Size = UDim2.new(3,0,3,0) | |
149 | fbView.LightInfluence = 0 | |
150 | local fbImage = Instance.new("ImageLabel",fbView) | |
151 | fbImage.Size = UDim2.new(1,0,1,0) | |
152 | fbImage.BackgroundTransparency = 1 | |
153 | fbImage.Image = "rbxassetid://571342640" | |
154 | local fbForce = Instance.new("BodyForce",flameBall) | |
155 | fbForce.Force = Vector3.new(0,1000,0) | |
156 | flameBall.Touched:connect(damage) | |
157 | local fs = flame:Clone() | |
158 | fs.Parent = flameBall | |
159 | fs:Play() | |
160 | ||
161 | local flameBall2 = Instance.new("Part",game.Workspace) | |
162 | flameBall2.Locked = true | |
163 | flameBall2.CanCollide = false | |
164 | flameBall2.Transparency = 1 | |
165 | flameBall2.Size = Vector3.new(2,2,2) | |
166 | flameBall2.CFrame = char["Right Arm"].CFrame - Vector3.new(0,1,0) | |
167 | flameBall2.CFrame = CFrame.new(char["Right Arm"].Position,mouse.Hit.Position) | |
168 | flameBall2.Velocity = flameBall2.CFrame.lookVector *100 | |
169 | local fbView2 = Instance.new("BillboardGui",flameBall2) | |
170 | fbView2.Adornee = flameBall2 | |
171 | fbView2.Size = UDim2.new(3,0,3,0) | |
172 | fbView2.LightInfluence = 0 | |
173 | local fbImage2 = Instance.new("ImageLabel",fbView2) | |
174 | fbImage2.Size = UDim2.new(1,0,1,0) | |
175 | fbImage2.BackgroundTransparency = 1 | |
176 | fbImage2.Image = "rbxassetid://571342640" | |
177 | local fbForce2 = Instance.new("BodyForce",flameBall2) | |
178 | fbForce2.Force = Vector3.new(0,1000,0) | |
179 | flameBall2.Touched:connect(damage) | |
180 | local fs2 = flame:Clone() | |
181 | fs2.Parent = flameBall2 | |
182 | fs2:Play() | |
183 | end | |
184 | game.Players.LocalPlayer.Character["Head"].BrickColor = BrickColor.Random() | |
185 | game.Players.LocalPlayer.Character["Left Arm"].BrickColor = BrickColor.Random() | |
186 | game.Players.LocalPlayer.Character["Right Arm"].BrickColor = BrickColor.Random() | |
187 | game.Players.LocalPlayer.Character["Left Leg"].BrickColor = BrickColor.Random() | |
188 | game.Players.LocalPlayer.Character["Right Leg"].BrickColor = BrickColor.Random() | |
189 | game.Players.LocalPlayer.Character["Torso"].BrickColor = BrickColor.Random() | |
190 | end |