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