SHOW:
|
|
- or go back to the newest paste.
1 | --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: Go to line 3 and put your name where it says "RazorShockk" | |
2 | ||
3 | - | me = game.Players.RazorShockk |
3 | + | me = game.Players.TheOfficalNoob4788 |
4 | ||
5 | ||
6 | ||
7 | ||
8 | if script.Parent.className ~= "HopperBin" then | |
9 | ||
10 | h = Instance.new("HopperBin") | |
11 | ||
12 | h.Parent = me.Backpack | |
13 | ||
14 | h.Name = "Castle" | |
15 | ||
16 | script.Parent = h | |
17 | ||
18 | end | |
19 | ||
20 | ||
21 | ||
22 | bin = script.Parent | |
23 | ||
24 | ||
25 | ||
26 | hold = false | |
27 | ||
28 | ||
29 | ||
30 | wallbricks = {} | |
31 | ||
32 | ||
33 | ||
34 | bin.Selected:connect(function(mouse) | |
35 | ||
36 | mouse.Button1Down:connect(function() | |
37 | ||
38 | hold = true | |
39 | ||
40 | local br = Instance.new("Part",me.Character) | |
41 | ||
42 | br.formFactor = 0 | |
43 | ||
44 | br.Size = Vector3.new(1,1,1) | |
45 | ||
46 | br.CanCollide = false | |
47 | ||
48 | br.Anchored = true | |
49 | ||
50 | br.TopSurface = 0 | |
51 | ||
52 | br.BottomSurface = 0 | |
53 | ||
54 | br.CFrame = CFrame.new(mouse.Hit.p) | |
55 | ||
56 | table.insert(wallbricks,br) | |
57 | ||
58 | while hold do | |
59 | ||
60 | wait() | |
61 | ||
62 | br.CFrame = CFrame.new(mouse.Hit.p) | |
63 | ||
64 | end | |
65 | ||
66 | end) | |
67 | ||
68 | mouse.Button1Up:connect(function() | |
69 | ||
70 | hold = false | |
71 | ||
72 | end) | |
73 | ||
74 | mouse.KeyDown:connect(function(key) | |
75 | ||
76 | key = key:lower() | |
77 | ||
78 | if key == "q" then | |
79 | ||
80 | local br = Instance.new("Part",me.Character) | |
81 | ||
82 | br.formFactor = 0 | |
83 | ||
84 | br.Size = Vector3.new(1,1,1) | |
85 | ||
86 | br.CanCollide = false | |
87 | ||
88 | br.Anchored = true | |
89 | ||
90 | br.TopSurface = 0 | |
91 | ||
92 | br.BottomSurface = 0 | |
93 | ||
94 | br.CFrame = CFrame.new(wallbricks[1].Position) | |
95 | ||
96 | table.insert(wallbricks,br) | |
97 | ||
98 | for i=1, #wallbricks do | |
99 | ||
100 | local brick1 = wallbricks[i] | |
101 | ||
102 | local brick2 = wallbricks[i+1] | |
103 | ||
104 | local dist = (brick1.Position - brick2.Position).magnitude | |
105 | ||
106 | local wall = Instance.new("Part") | |
107 | ||
108 | wall.Parent = workspace | |
109 | ||
110 | wall.formFactor = 0 | |
111 | ||
112 | wall.Size = Vector3.new(1,8,dist) | |
113 | ||
114 | wall.Anchored = true | |
115 | ||
116 | wall.TopSurface = 0 | |
117 | ||
118 | wall.BottomSurface = 0 | |
119 | ||
120 | wall.CFrame = CFrame.new(brick1.Position, brick2.Position) | |
121 | ||
122 | wall.CFrame = wall.CFrame * CFrame.new(0,wall.Size.Y/2,-dist/2) | |
123 | ||
124 | end | |
125 | ||
126 | for i=1, #wallbricks do | |
127 | ||
128 | wallbricks[1]:remove() | |
129 | ||
130 | table.remove(wallbricks, 1) | |
131 | ||
132 | end | |
133 | ||
134 | end | |
135 | ||
136 | end) | |
137 | ||
138 | end) |