View difference between Paste ID: R5fMipTV and YJiAGWUa
SHOW: | | - or go back to the newest paste.
1
-- Objects
2
3
local lau = Instance.new("ScreenGui")
4
local ui = Instance.new("Frame")
5
local button1 = Instance.new("TextButton")
6
local button2 = Instance.new("TextButton")
7
8
-- Properties
9
10
lau.Name = "lau"
11
lau.Parent = game.CoreGui
12
13
ui.Name = "ui"
14
ui.Parent = lau
15
ui.BackgroundColor3 = Color3.new(1, 1, 1)
16
ui.BackgroundTransparency = 0.5
17
ui.BorderSizePixel = 5
18
ui.Active = true
19
ui.Draggable = true
20
ui.Position = UDim2.new(0.196167886, 0, 0.166666672, 0)
21
ui.Size = UDim2.new(0, 234, 0, 87)
22
23
button1.Name = "button1"
24
button1.Parent = ui
25
button1.BackgroundColor3 = Color3.new(1, 1, 1)
26
button1.BackgroundTransparency = 0.5
27
button1.BorderSizePixel = 3
28
button1.Position = UDim2.new(0.0920082182, 0, 0.28637448, 0)
29
button1.Size = UDim2.new(0, 72, 0, 42)
30
button1.Font = Enum.Font.SourceSansBold
31
button1.FontSize = Enum.FontSize.Size14
32
button1.Text = "Press me first !"
33
button1.TextSize = 13
34
button1.TextStrokeTransparency = 500
35
36
button2.Name = "button2"
37
button2.Parent = ui
38
button2.BackgroundColor3 = Color3.new(1, 1, 1)
39
button2.BackgroundTransparency = 0.5
40
button2.BorderSizePixel = 3
41
button2.Position = UDim2.new(0.602468431, 0, 0.28637448, 0)
42
button2.Size = UDim2.new(0, 72, 0, 42)
43
button2.Font = Enum.Font.SourceSansBold
44
button2.FontSize = Enum.FontSize.Size14
45
button2.Text = "Noclip"
46
button2.TextSize = 13
47
button2.TextStrokeTransparency = 500
48
49
button1.MouseButton1Click:connect(function()
50
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-539, 18, -1388) + Vector3.new(1,0,0)
51
end)
52
button2.MouseButton1Click:connect(function()
53
	noclip = false
54
game:GetService('RunService').Stepped:connect(function()
55
if noclip then
56
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
57
end
58
end)
59
plr = game.Players.LocalPlayer
60
mouse = plr:GetMouse()
61
mouse.KeyDown:connect(function(key)
62
63
if key == "x" then
64
noclip = not noclip
65
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
66
end
67
end)
68
print('NoClip Loaded')
69
print('Press "X" to noclip')
70
end)