SHOW:
|
|
- or go back to the newest paste.
1 | plr = game.Players.LocalPlayer | |
2 | mouse = plr:GetMouse() | |
3 | part = nil | |
4 | bp = nil | |
5 | particles = nil | |
6 | function clerp(a,b,c,d) | |
7 | for i = 0,d,.01 do | |
8 | a.CFrame = CFrame.new(b:lerp(c,i)) | |
9 | wait() | |
10 | end | |
11 | end | |
12 | function slerp(a2,b2,c2,d2) | |
13 | for i2 = 0,d2,.01 do | |
14 | a2.CFrame = CFrame.new(b2:lerp(c2,i2)) | |
15 | wait() | |
16 | end | |
17 | end | |
18 | mouse.KeyDown:connect(function(key) | |
19 | if key == "e" and plr.Character.Parent == workspace then | |
20 | plr.Character.Parent = workspace.Camera | |
21 | plr.Character.Archivable = true | |
22 | Instance.new("ForceField",plr.Character).Visible = false | |
23 | for y,t in pairs(plr.Character:GetChildren()) do | |
24 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
25 | t.Transparency = 1 | |
26 | if t.Name == "Head" and t:FindFirstChild("face") then | |
27 | t.face.Transparency = 1 | |
28 | end | |
29 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
30 | t.Handle.Transparency = 1 | |
31 | end | |
32 | end | |
33 | - | elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then |
33 | + | |
34 | - | 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) |
34 | + | |
35 | - | elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then |
35 | + | |
36 | - | if plr.Character.Torso.Anchored == true then |
36 | + | |
37 | - | for y,t in pairs(plr.Character:GetChildren()) do |
37 | + | |
38 | - | if t:IsA("Part") then |
38 | + | |
39 | - | t.Anchored = false |
39 | + | |
40 | end | |
41 | end) | |
42 | - | else |
42 | + | |
43 | - | for y,t in pairs(plr.Character:GetChildren()) do |
43 | + | |
44 | - | if t:IsA("Part") then |
44 | + | |
45 | - | t.Anchored = true |
45 | + | |
46 | for y,t in pairs(c:GetChildren()) do | |
47 | if t:IsA("Part") then | |
48 | if t.Name == "Head" and t:FindFirstChild("face") then | |
49 | - | elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then |
49 | + | |
50 | - | local clone = part:Clone() |
50 | + | |
51 | - | clone.Parent = workspace |
51 | + | |
52 | - | clone.Anchored = false |
52 | + | |
53 | - | clone:ClearAllChildren() |
53 | + | |
54 | - | clone.CanCollide = true |
54 | + | |
55 | - | bp.Parent = clone |
55 | + | |
56 | - | particles.Parent = clone |
56 | + | |
57 | - | if part.Parent:FindFirstChildOfClass("Humanoid") then |
57 | + | |
58 | - | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false |
58 | + | |
59 | c.Parent = workspace | |
60 | - | part:Destroy() |
60 | + | |
61 | - | part = clone |
61 | + | |
62 | end | |
63 | game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge | |
64 | game.Players.LocalPlayer.Character.Humanoid.Health = math.huge | |
65 | while true do | |
66 | game:GetService("RunService").Stepped:wait() | |
67 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
68 | - | t.Transparency = 0 |
68 | + | |
69 | end |