SHOW:
|
|
- or go back to the newest paste.
1 | print("Credits to X_XSardonyx for the script") | |
2 | warn("Also credits to lolboigghh for suggestions and ideas :D") | |
3 | ||
4 | - | local Text = [[Should G1aster's alt get banned? |
4 | + | local Text = [[Should I make a log detector |
5 | ||
6 | ]] | |
7 | ||
8 | local board = Instance.new("Part", owner.Character) | |
9 | board.Massless = true | |
10 | - | board.Size = Vector3.new(1.5,2,.15) |
10 | + | board.Size = Vector3.new(3.27,2.77,.3) |
11 | board.Material = 'Wood' | |
12 | board.BrickColor = BrickColor.new("CGA brown") | |
13 | board.CanCollide = false | |
14 | ||
15 | weld = Instance.new("Weld", board) | |
16 | weld.Part1 = board | |
17 | weld.Part0 = owner.Character["Right Arm"] | |
18 | weld.C0 = CFrame.new(0,-1,0) * CFrame.Angles(math.rad(90),0,0) | |
19 | ||
20 | shoulder = Instance.new("Weld", owner.Character.Torso) | |
21 | shoulder.Part1 = owner.Character.Torso["Right Shoulder"].Part1 | |
22 | shoulder.Part0 = owner.Character.Torso["Right Shoulder"].Part0 | |
23 | shoulder.C0 = owner.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,math.rad(90)) | |
24 | shoulder.C1 = owner.Character.Torso["Right Shoulder"].C1 | |
25 | ||
26 | local paper = Instance.new("Part", board) | |
27 | paper.Massless = true | |
28 | - | paper.Size = Vector3.new(1.25,1.75,.1) |
28 | + | paper.Size = Vector3.new(3.27,2.77,.3) |
29 | paper.Material = 'SmoothPlastic' | |
30 | paper.BrickColor = BrickColor.new("Institutional white") | |
31 | paper.CanCollide = false | |
32 | ||
33 | weld = Instance.new("Weld", paper) | |
34 | weld.Part1 = paper | |
35 | weld.Part0 = board | |
36 | weld.C0 = CFrame.new(0,0,.1) | |
37 | ||
38 | local sgui = Instance.new("SurfaceGui", paper) | |
39 | sgui.Face = 'Back' | |
40 | ||
41 | local tb=Instance.new("TextBox", sgui) | |
42 | tb.Size = UDim2.new(1,0,1,0) | |
43 | tb.BackgroundTransparency = 1 | |
44 | tb.TextSize = 50 | |
45 | tb.Rotation = 180 | |
46 | tb.Font = 'Code' | |
47 | tb.TextColor = BrickColor.new("Really black") | |
48 | tb.TextYAlignment = 'Top' | |
49 | wait() | |
50 | tb.Text = Text | |
51 | ||
52 | local click = Instance.new("Part", owner.Character) | |
53 | click.Massless = true | |
54 | click.Size = Vector3.new(1.75,2.25,.5) | |
55 | click.Transparency = 1 | |
56 | click.CanCollide = false | |
57 | ||
58 | weld = Instance.new("Weld", click) | |
59 | weld.Part1 = click | |
60 | weld.Part0 = board | |
61 | ||
62 | local clickdetector = Instance.new("ClickDetector", click) | |
63 | ||
64 | local clickedusernames = {} | |
65 | ||
66 | local sound = Instance.new("Sound", board) | |
67 | sound.SoundId = 'rbxassetid://5277755924' | |
68 | sound.MaxDistance = 50 | |
69 | ||
70 | local Thanks = Instance.new("Sound", board) | |
71 | Thanks.SoundId = 'rbxassetid://2566158249' | |
72 | Thanks.MaxDistance = 50 | |
73 | ||
74 | clickdetector.MouseClick:Connect(function(plr) | |
75 | local canclick = true | |
76 | for i,v in pairs(clickedusernames) do | |
77 | if v == plr.Name then | |
78 | canclick = false | |
79 | end | |
80 | end | |
81 | ||
82 | if canclick == true then | |
83 | table.insert(clickedusernames, plr.Name) | |
84 | tb.Text = tb.Text..[[ | |
85 | ||
86 | ]]..plr.Name | |
87 | ||
88 | Thanks:Play() | |
89 | ||
90 | end | |
91 | ||
92 | end) | |
93 | ||
94 | click.Touched:Connect(function(hit) | |
95 | if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) then | |
96 | plr = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) | |
97 | local canclick = true | |
98 | for i,v in pairs(clickedusernames) do | |
99 | if v == plr.Name then | |
100 | canclick = false | |
101 | end | |
102 | end | |
103 | if canclick == true then | |
104 | sound:Play() | |
105 | end | |
106 | end | |
107 | end) |