View difference between Paste ID: 0rD9bsiE and ZsN8fM8m
SHOW: | | - or go back to the newest paste.
1
plr = game.Players.LocalPlayer
2
3
if key == "e" and plr.Character.Parent == workspace then
4
		plr.Character.Parent = workspace.Camera
5
		plr.Character.Archivable = true
6
		Instance.new("ForceField",plr.Character).Visible = false
7
		for y,t in pairs(plr.Character:GetChildren()) do
8
			if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
9
				t.Transparency = 1
10
				if t.Name == "Head" and t:FindFirstChild("face") then
11
					t.face.Transparency = 1
12
				end
13
			elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
14
				t.Handle.Transparency = 1
15
			end
16
		end
17
	elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
18
		plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
19
	elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
20
		if plr.Character.Torso.Anchored == true then
21
			for y,t in pairs(plr.Character:GetChildren()) do
22
				if t:IsA("Part") then
23
					t.Anchored = false
24
				end
25
			end
26
		else
27
			for y,t in pairs(plr.Character:GetChildren()) do
28
				if t:IsA("Part") then
29
					t.Anchored = true
30
				end
31
			end
32
		end
33
	elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
34
		local clone = part:Clone()
35
		clone.Parent = workspace
36
		clone.Anchored = false
37
		clone:ClearAllChildren()
38
		clone.CanCollide = true
39
		bp.Parent = clone
40
		particles.Parent = clone
41
		if part.Parent:FindFirstChildOfClass("Humanoid") then
42
			part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
43
		end
44
		part:Destroy()
45
		part = clone
46
	elseif key == "q" and plr.Character.Parent == workspace.Camera and part == nil then
47
		plr.Character.Parent = workspace
48
		plr.Character.Archivable = false
49
		plr.Character:FindFirstChildOfClass("ForceField"):Remove()
50
		for y,t in pairs(plr.Character:GetChildren()) do
51
			if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
52
				t.Transparency = 0
53
				if t.Name == "Head" and t:FindFirstChild("face") then
54
					t.face.Transparency = 0
55
				end
56
			elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
57
				t.Handle.Transparency = 0
58
			end
59
		end
60-
end
60+
end