View difference between Paste ID: t9W8QSvy and XhMhPAEp
SHOW: | | - or go back to the newest paste.
1
NLS([[
2
owner = game:GetService("Players").LocalPlayer
3
owner.Character:WaitForChild("Head")
4-
leftarm.C0 = CFrame.new(-1.5,-0.5,0)
4+
mouse = owner:GetMouse()
5
local remote = owner.Character:WaitForChild("lookremote")
6
local part = Instance.new("Part", owner.Character.Head)
7
part.Size = Vector3.new(0.1,0.1,0.1)
8
part.Transparency = 1
9
part.CanCollide = false
10
part.Name = "camera"
11
part:BreakJoints()
12
local weld = Instance.new("Weld", part)
13
weld.Part0 = owner.Character.Head
14
weld.Part1 = part
15
weld.C0 = CFrame.new(0,0,-1)
16-
rightleg.C0 = CFrame.new(0.5,-2,0)
16+
while game:GetService("RunService").RenderStepped:wait() do
17
    remote:FireServer(mouse.Hit.p, mouse.Origin.p, workspace.CurrentCamera.CFrame)
18
    if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then
19
        game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
20
        workspace.CurrentCamera.FieldOfView = 100
21
        for i,v in pairs(owner.Character:GetChildren()) do
22-
leftleg.C0 = CFrame.new(-0.5,-2,0)
22+
            if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
23
                v.LocalTransparencyModifier = 0
24
            end
25
            if v.ClassName == "Accessory" then
26
                v.Handle.Transparency = 1
27
            end
28
        end
29
        if owner.Character.Head:findFirstChildOfClass("Decal") then
30
            owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
31
        end
32
        owner.Character.Head.Transparency = 1
33
        workspace.CurrentCamera.CameraSubject = part
34
    else
35-
while true do
35+
        for i,v in pairs(owner.Character:GetChildren()) do
36-
random = math.random(-360, 360)
36+
            if v.ClassName == "Accessory" then
37-
random2 = math.random(-360, 360)
37+
                v.Handle.Transparency = 0
38-
random3 = math.random(-360, 360)
38+
            end
39-
random4 = math.random(-360, 360)
39+
        end
40-
random5 = math.random(-360, 360)
40+
        workspace.CurrentCamera.FieldOfView = 70
41-
random6 = math.random(-360, 360)
41+
        owner.Character.Head.Transparency = 0
42-
random7 = math.random(-360, 360)
42+
        if owner.Character.Head:findFirstChildOfClass("Decal") then
43-
random8 = math.random(-360, 360)
43+
            owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0
44-
random9 = math.random(-360, 360)
44+
        end
45-
random10 = math.random(-360, 360)
45+
        workspace.CurrentCamera.CameraSubject = owner.Character
46-
random11 = math.random(-360, 360)
46+
    end
47-
random12 = math.random(-360, 360)
47+
end
48-
random13 = math.random(-360, 360)
48+
]], owner.Character)
49-
random14 = math.random(-360, 360)
49+
50-
random15 = math.random(-360, 360)
50+
51-
random16 = math.random(-360, 360)
51+
52-
random17 = math.random(-360, 360)
52+
leftarm.C0 = CFrame.new(-1.5,0.5,0)
53-
random18 = math.random(-360, 360)
53+
54-
randomagain = math.random(-2.5, 2.5)
54+
55-
randomagain2 = math.random(-2.5, 2.5)
55+
56-
randomagain3 = math.random(-2.5, 2.5)
56+
57-
randomagain4 = math.random(-2.5, 2.5)
57+
58-
randomagain5 = math.random(-2.5, 2.5)
58+
59-
randomagain6 = math.random(-2.5, 2.5)
59+
60-
randomagain7 = math.random(-2.5, 2.5)
60+
61-
randomagain8 = math.random(-2.5, 2.5)
61+
62-
randomagain9 = math.random(-2.5, 2.5)
62+
63-
randomagain10 = math.random(-2.5, 2.5)
63+
64-
randomagain11 = math.random(-2.5, 2.5)
64+
rightleg.C0 = CFrame.new(0.5,-1,0)
65-
randomagain12 = math.random(-2.5, 2.5)
65+
66-
randomagain13 = math.random(-2.5, 2.5)
66+
67-
randomagain14 = math.random(-2.5, 2.5)
67+
68-
randomagain15 = math.random(-2.5, 2.5)
68+
69-
rightarm.C0 = CFrame.new(randomagain,randomagain2,randomagain3) * CFrame.Angles(random6,random5,random4)
69+
70-
leftarm.C0 = CFrame.new(randomagain4,randomagain5,randomagain6) * CFrame.Angles(random,random2,random3)
70+
leftleg.C0 = CFrame.new(-0.5,-1,0)
71-
head.C0 = CFrame.new(randomagain7,randomagain8,randomagain9) * CFrame.Angles(random7,random8,random9)
71+
72-
leftleg.C0 = CFrame.new(randomagain12,randomagain11,randomagain10) * CFrame.Angles(random10,random11,random12)
72+
73-
rightleg.C0 = CFrame.new(randomagain13,randomagain14,randomagain15) * CFrame.Angles(random13,random14,random15)
73+
74-
humanoidrootpart.C0 = CFrame.Angles(random16,random17,random18)
74+
75-
wait()
75+
76-
end
76+
77
head.C1 = CFrame.new(0,-0.1,0)
78
head.Name = "HeadWeld"
79
local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
80
humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
81
humanoidrootpart.Part1 = owner.Character.Torso
82
humanoidrootpart.Name = "HumanoidRootPartWeld"
83
local remote = Instance.new("RemoteEvent", owner.Character)
84
remote.Name = "lookremote"
85
function look(plr, where, origin, cameracf)
86
    if plr == owner then
87
        local lookvector = owner.Character.Torso.CFrame:toObjectSpace(cameracf).lookVector.unit
88
        humanoidrootpart.C0 = CFrame.new(0,0,0) * CFrame.Angles(lookvector.y,0,0)
89
        humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.Angles(0,0,0)
90
        humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.new(0,0,0)
91
    end
92
end
93
remote.OnServerEvent:connect(look)