View difference between Paste ID: vEKHtRsy and 2THaEsEs
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14-
ply = game.Players.LocalPlayer
14+
	--Fake event to make stuff like Mouse.KeyDown work
15-
mouse = ply:GetMouse()
15+
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
---------------------------------------------------
88
Script made by ???
89
Edit by weepinggamer
90
weeping's discord: Nick Senpai#7972
91
92
If you found this by searching on paste plz check out my 
93
channel "ColapyXD" for more of this content
94
95
Thank you
96
---------------------------------------------------
97
98
--SCP-035 [OBJECT CLASS: KETER]
99
100
ply = owner
101
char = ply.Character
102
cam = game.Workspace.CurrentCamera
103
minicooldown = 0
104
105
repeat wait() until ply and char and cam and mouse
106
state = nil
107
function create()
108
tool = Instance.new("Tool", workspace)
109
tool.Name = "MLG shades"
110
tool.GripPos = Vector3.new(0, 0, .2)
111
tool.CanBeDropped = false
112
handle = Instance.new("Part", tool)
113
handle.Name = "Handle"
114
handle.Size = Vector3.new(.5, .5, .5)
115
handle.CanCollide = true
116
handle.Anchored = false
117
handle.CFrame = char.Torso.CFrame
118
specmesh = Instance.new("SpecialMesh", handle)
119
specmesh.MeshId = "rbxassetid://121910245"
120
specmesh.TextureId = "rbxassetid://121947422"
121
specmesh.Scale = Vector3.new(0.8,0.8,0.8)
122
bgui = Instance.new("BillboardGui", handle)
123
bgui.Active = false
124
bgui.AlwaysOnTop = true
125
bgui.Enabled = true
126
bgui.MaxDistance = 100
127
bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
128
bgui.SizeOffset = Vector2.new(-20, 5)
129
bgui.Name = "FrameHolder"
130
bgui.Adornee = handle
131
frame = Instance.new("Frame", bgui)
132
frame.Active = false
133
frame.BackgroundTransparency = 1
134
frame.Size = UDim2.new(42, 0, 4, 0)
135
frame.Name = "Frame"
136
text = Instance.new("TextLabel", frame)
137
text.Active = false
138
text.BackgroundTransparency = 1
139
text.Size = UDim2.new(1, 0, 1, 0)
140
text.Visible = true
141
text.Font = "Antique"
142
text.TextScaled = true
143
text.TextSize = 14
144
text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
145
text.TextTransparency = 0.5
146
text.Text = ""
147
148
cam.CameraSubject = handle
149
cam.CameraType = "Custom"
150
char.Parent = nil
151
152
end
153
154
create()
155
156
	
157
tool.Handle.Touched:connect(function(hit)
158
	print(hit.Parent)
159
end)
160
161
store = {}
162
163
function lerp(a, b, t)
164
	return a:lerp(b, t)
165
end
166
167
mouse.KeyDown:connect(function(key)
168
	if key == "f" and tool.Parent:FindFirstChild("Humanoid")  then
169
        dir = tool.Parent
170
	if dir.Torso["Right Shoulder"] and state ~= "Possessing" then
171
		minicooldown = 1
172
		state = "Possessing"
173
					handle.Transparency = 1
174
				mask = Instance.new("Part", dir)
175
	mask.Anchored = false
176
	mask.CanCollide = false
177
	mask.Size = Vector3.new(.5, .5, .5)
178
	local mesh = Instance.new("SpecialMesh", mask)
179
	mesh.MeshId = "rbxassetid://121910245"
180
    mesh.TextureId = "rbxassetid://121947422"
181
	mesh.Scale = Vector3.new(0.8,0.8,0.8)
182
    local weldpart = Instance.new("Weld", mask)
183
    weldpart.Part0 = mask
184
    weldpart.Part1 = dir["Right Arm"]
185
    weldpart.C0 = CFrame.new(0, .48, 0) *CFrame.Angles(0, math.rad(25), 0)
186
					weld = Instance.new("Weld", dir.Torso)
187
					weld.Part0 = dir.Torso["Right Shoulder"].Part0
188
					weld.Part1 = dir.Torso["Right Shoulder"].Part1
189
					weld.Name = dir.Torso["Right Shoulder"].Name
190
					weld.C0 = dir.Torso["Right Shoulder"].C0
191
					weld.C1 = dir.Torso["Right Shoulder"].C1
192
					table.insert(store, dir.Torso["Right Shoulder"])
193
					dir.Torso["Right Shoulder"]:Remove()
194
					print(dir.Torso["Right Shoulder"].C0)
195
		for i = 0, 1, .1 do
196
			wait()
197
		weld.C0 = lerp(weld.C0, CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) *CFrame.Angles(math.rad(-10), math.rad(85), math.rad(-195)), i)
198
		end
199
		mask2 = Instance.new("Part", dir)
200
	    mask2.Anchored = false
201
	    mask2.CanCollide = false
202
	    mask2.Size = Vector3.new(.5, .5, .5)
203
	    local mesh = Instance.new("SpecialMesh", mask2)
204
	    mesh.MeshId = "rbxassetid://121910245"
205
        mesh.TextureId = "rbxassetid://121947422"
206
		mesh.Scale = Vector3.new(0.8,0.8,0.8)
207
        local weldparts = Instance.new("Weld", mask2)
208
        weldparts.Part0 = mask2
209
        weldparts.Part1 = dir["Head"]
210
        weldparts.C0 = CFrame.new(0, 0, 0)
211
		mask.Transparency = 1
212
		for i = 0, 1, .1 do
213
			wait()
214
		weld.C0 = lerp(weld.C0, store[1].C0, .1)
215
		end
216
		mask:Remove()
217
		store[1].Parent = weld.Parent
218
		weld:Remove()
219
		store = {}
220
		bgui2 = Instance.new("BillboardGui", mask2)
221
bgui2.Active = false
222
bgui2.AlwaysOnTop = true
223
bgui2.Enabled = true
224
bgui2.MaxDistance = 100
225
bgui2.Size = UDim2.new(0.5, 0, 0.5, 0)
226
bgui2.SizeOffset = Vector2.new(-20, 5)
227
bgui2.Name = "FrameHolder"
228
bgui2.Adornee = dir.Head
229
frame2 = Instance.new("Frame", bgui2)
230
frame2.Active = false
231
frame2.BackgroundTransparency = 1
232
frame2.Size = UDim2.new(42, 0, 4, 0)
233
frame2.Name = "Frame"
234
text2 = Instance.new("TextLabel", frame2)
235
text2.Active = false
236
text2.BackgroundTransparency = 1
237
text2.Size = UDim2.new(1, 0, 1, 0)
238
text2.Visible = true
239
text2.Font = "Antique"
240
text2.TextScaled = true
241
text2.TextSize = 14
242
text2.TextColor3 = Color3.new(255/255, 0/255, 0/255)
243
text2.TextTransparency = 0.5
244
text2.Text = ""
245
tool.Parent = nil
246
cam.CameraSubject = dir.Humanoid
247
dir.Humanoid.MaxHealth = math.huge
248
char.Parent = workspace
249
for i, v in pairs(char:GetChildren()) do
250
	if v:IsA("Part") or v:IsA("MeshPart") then
251
		v.Transparency = 1
252
	end
253
end
254
255
dir.Humanoid.WalkSpeed = 0
256
dir.Humanoid.JumpPower = 0
257
dir.Humanoid.PlatformStand = true
258
weld1 = Instance.new("Weld", char.Torso)
259
weld1.Part0 = char.Torso
260
weld1.Part1 = dir.Torso
261
weld1.C0 = CFrame.new(0, 0, 0)
262
weld2 = Instance.new("Weld", char.Torso)
263
weld2.Part0 = char["Right Arm"]
264
weld2.Part1 = dir["Right Arm"]
265
weld2.C0 = CFrame.new(0, 0, 0)
266
weld3 = Instance.new("Weld", char.Torso)
267
weld3.Part0 = char["Left Arm"]
268
weld3.Part1 = dir["Left Arm"]
269
weld3.C0 = CFrame.new(0, 0, 0)
270-
game:GetService("RunService").RenderStepped:connect(function()
270+
271
weld4.Part0 = char["Left Leg"]
272
weld4.Part1 = dir["Left Leg"]
273
weld4.C0 = CFrame.new(0, 0, 0)
274
weld5 = Instance.new("Weld", char.Torso)
275
weld5.Part0 = char["Right Leg"]
276
weld5.Part1 = dir["Right Leg"]
277
weld5.C0 = CFrame.new(0, 0, 0)
278
weld5 = Instance.new("Weld", char.Torso)
279
weld5.Part0 = char.Head
280
weld5.Part1 = dir.Head
281
weld5.C0 = CFrame.new(0, 0, 0)
282
if dir:FindFirstChild("HumanoidRootPart") ~= nil then
283
weld6 = Instance.new("Weld", char.Torso)
284
weld6.Part0 = char.HumanoidRootPart
285
weld6.Part1 = dir.HumanoidRootPart
286
weld6.C0 = CFrame.new(0, 0, 0)
287
end
288
for i, v in pairs(dir:GetChildren()) do
289
	if v:IsA("Part") or v:IsA("MeshPart") then
290
		v.CanCollide = false
291
	end
292
end
293
char.Humanoid.MaxHealth = math.huge
294
minicooldown = 2
295
	end
296
	elseif key == "g" and state == "Possessing" and minicooldown == 2 then
297
	state = nil
298
    weld1:Remove()
299
	weld2:Remove()
300
	weld3:Remove()
301
	weld4:Remove()
302
	weld5:Remove()
303
	if weld6 ~= nil then
304
    weld6:Remove()
305
    end
306
        tool.Parent = workspace
307
        tool.Handle.CanCollide = true
308
        tool.Handle.Transparency = 0
309
	tool.Handle.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -3)
310
        cam.CameraSubject = tool.Handle
311
	local pos = char.Torso.CFrame
312
	char.Parent = nil
313
	minicooldown = 0
314
	for i, v in pairs(dir:GetChildren()) do
315
		if v:IsA("Part") or v:IsA("MeshPart") then
316
			v.BrickColor = BrickColor.new("Really black")
317
		end
318
	end
319
	dir:BreakJoints()
320
	local blackblood = Instance.new("Part", dir)
321
	blackblood.Anchored = true
322
	blackblood.BrickColor = BrickColor.new("Really black")
323
	blackblood.Size = Vector3.new(0.05, 1, 1)
324
	blackblood.Shape = "Cylinder"
325
	blackblood.CanCollide = false
326
	blackblood.CFrame = CFrame.new(pos.X, pos.Y-2.95, pos.Z)
327
	blackblood.Orientation = Vector3.new(0, 90, 90)
328
	for i = 1, 100 do
329
	wait()
330
        blackblood.Orientation = Vector3.new(0, 90, 90)
331
	blackblood.Size = blackblood.Size +Vector3.new(0, .1, .1)
332
	end
333
end
334
end)
335
336
337
ply.Chatted:connect(function(msg)
338
	if msg and state ~= "Possessing" then
339
	for i = 1, string.len(msg) do
340
		wait()
341
		text.Text = string.sub(msg, 1, i)
342
	end
343
	wait(2)
344
	text.Text = ""
345
	elseif msg and state == "Possessing" then
346
		for i = 1, string.len(msg) do
347
			wait()
348
			text2.Text = string.sub(msg, 1, i)
349
		end
350
		wait(2)
351
		text2.Text = ""
352
	end
353
end)
354
355
356
game.Players.PlayerRemoving:connect(function(playr)
357
if playr.Name == "w3w123ALT" then
358
tool:Remove()
359
end
360
end)