SHOW:
|
|
- or go back to the newest paste.
1 | - | -- NOTE (READ!!): This script doesn't work on voidacity's script builder |
1 | + | |
2 | - | -- since it crashes your game, but it's usable on other |
2 | + | |
3 | - | -- script builders like fancy dev's or nexure's. |
3 | + | |
4 | - | -- (it just doesn't work on voidacity only) |
4 | + | |
5 | -- then this is not the original link of this script. | |
6 | - | --[[ |
6 | + | |
7 | - | |
7 | + | |
8 | - | |
8 | + | |
9 | - | |
9 | + | |
10 | - | ▓▒▒▓▓ ░▓▒▒██▒▒▓█▒▒▓▓ █▒▒▓█▒▒▒▒▒▒▒█▓▒▒▒▒▒▒▒█▒▓▒▒▒▒▒▓█▒▒▒▒▒▒▒█▓▒▒▒▓▒▒▓█▒▒▒▒▒▓▒▓░ |
10 | + | |
11 | - | ▓ ░█▒ ▓░ ▓▓ ░█ ░█░▒ ▒▒ █░ █ ░ ▒▓ ▓▒ █ ░░ |
11 | + | |
12 | - | ░░ ░ ▒██░░░ █░ ▓▓ ░░█░ ▓▒ ▒█████░ ▓█████░░ ▓▓ ░█ ▒█░█▓ ▒▓ ░███████▓ ██░ |
12 | + | |
13 | - | ▓ ▓█▓ ▒▒█ █▒ ░█ ▓▒ ▒█████░ ▓█████░░ ▓▓ ░█ ▒█▓░ ░▓ ▓███████ █▓ |
13 | + | -- Controls: Q to sneak, use the keypad numbers 1-9 to change blocks, choose a empty slot i |
14 | - | ▓ ░░ ▒█ █▒ ░ █░ ░░░░█░ ▓█████░ ▒██░ ▒██▒ ░█ ░ ░███ ▒░ |
14 | + | -- you want to remove a block. |
15 | - | ▒░ ░░ ▓▓ █░ ▓▒ █░ ░░ ░█░ ▓█████░ █░ ░░ ░ █░ ░ ███░ ░▒ |
15 | + | |
16 | - | ▒░ ▓▓ ▒▓ █░ ▒█ █▒ ░ █ ▓█████░ ▓ █░ ▒▓ █▒ ░ █▒ ▒█▓█████▓ ░▒ |
16 | + | -- this script will transform you into steve when used |
17 | - | ▒░▒░█▒▒█▓ █░ ▓█ ██░ ░ █░ ▓█████░ ▓█████░ ▒█ ░ █▒ ▒█ ░ █▒ ░███▓███▓░ ▒ |
17 | + | |
18 | - | ░▒░ ▒█▓ ▒▒ ▒█░ ▓▓ ░██ ░▓ ▒ ░ █░ █░ ▒█ ▓▒ ░█ ▒▓ ███ ▓███░ ▒░ |
18 | + | |
19 | - | ▒░ ░▓██▒░░ ▓▓ █▒ ▒██ ▓▓ ░ ░ ░█░ ░ █░ ▒█ ▓▓ █░ ▒█ █▓░ ░███▒ ░▒ |
19 | + | |
20 | - | ▒▒ ▒███░▒ ░█ █▓ ░██░ ▒█ ░ █░ ░ █░ ▒█ █▒ ░█ ▓▓ ░█ ░██▓▒ ▓░ |
20 | + | |
21 | - | ▒▒ ▒██▓▓▒ ▒▓ █░ ▓█▓ █░ ▒█░ █░ ▓▓ ░█░ ▓▒ ░█▒ ▓ ▓█▒░ ▒▒ |
21 | + | |
22 | - | ▒▒░ █▓ ▓▒░▒█▒░░▓█░░▒█▒▒░░▓▓░▒▒▒░░▒█▒░░░░░░░█▒░▒█▓░░▓█▒░▒█░░░█▓░░▓▒ ▓█░░▒▒ |
22 | + | |
23 | - | ░▒▒▒░ ▒░░▒▒░░░░░░░░ ▒░░░▒▒▒▒▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒░▒▒▒░░░░ ░░░▒░ |
23 | + | |
24 | - | ASCII Art Generators are cool :) |
24 | + | |
25 | if i == 2 then decal.Texture = backF or frontF decal.Name = f end | |
26 | if i == 3 then decal.Texture = topF or frontF decal.Name = f end | |
27 | if i == 4 then decal.Texture = bottomF or frontF decal.Name = f end | |
28 | - | ]] |
28 | + | |
29 | if i == 6 then decal.Texture = rightF or frontF decal.Name = f end | |
30 | - | -- Scroll down for changelog... |
30 | + | |
31 | end | |
32 | return part | |
33 | end | |
34 | function makeSquare(position, size, color, transparency, parent) | |
35 | local label = Instance.new("TextLabel", parent) | |
36 | label.Text = "" | |
37 | label.BorderSizePixel = 0 | |
38 | label.BackgroundTransparency = transparency | |
39 | label.Position = position | |
40 | label.Size = size | |
41 | label.BackgroundColor3 = color | |
42 | - | -- Controls: Q to sneak, use the keypad numbers 1-9 to change blocks, |
42 | + | |
43 | - | -- choose a empty slot if you want to remove a block, E to open creative |
43 | + | function putToolBarSlot(position, image) |
44 | - | -- inventory, right-click to destroy a block in your toolbar in creative |
44 | + | |
45 | - | -- inventory, R to make camera face your character's front or back. |
45 | + | |
46 | local gui = playerGui:FindFirstChild("ToolBar") or Instance.new("ScreenGui", playerGui) | |
47 | - | -- You will become steve when you use this script, if you die after |
47 | + | |
48 | - | -- using this script, keep trying to use it or wait 60 seconds |
48 | + | |
49 | - | -- (it doesn't work at first but eventually it will) |
49 | + | |
50 | slot.Size = UDim2.new(0, 32, 0, 32) | |
51 | slot.BackgroundTransparency = 1 | |
52 | slot.ImageTransparency = 0 | |
53 | - | local updateHand = false |
53 | + | |
54 | - | local Changelog = [[ |
54 | + | |
55 | ||
56 | - | Redstone coming soon. (not... sorry) |
56 | + | makeSquare(UDim2.new(0, 0, 0, 0), UDim2.new(0, 32, 0, 32), |
57 | - | Note (Read!): It will be a very long while till this script gets |
57 | + | Color3.new(95/255, 89/255, 76/255), 0, slot) |
58 | - | updated again, i stopped updating this since im focusing more on other things |
58 | + | |
59 | - | like C++ programming and game development, i'm not really that active much |
59 | + | Color3.new(0/255, 0/255, 0/255), 0.5, slot) |
60 | - | in roblox (and if im off im probably programming), so yeah, maybe in a |
60 | + | |
61 | - | million years i'll come back to update the script again (:P). |
61 | + | Color3.new(0/255, 0/255, 0/255), 0.5, slot) |
62 | - | 09/03/2018: |
62 | + | |
63 | - | + Added the heart bar. |
63 | + | |
64 | - | + Added death animation. |
64 | + | |
65 | - | * Your camera now shakes like in minecraft when hurt. |
65 | + | |
66 | - | * Toolbar Selection GUI now is accurate. |
66 | + | |
67 | Color3.new(130/255, 130/255, 130/255), 0, slot) | |
68 | - | 02/03/2018: |
68 | + | |
69 | - | * Fixed a bug with the textures. |
69 | + | |
70 | makeSquare(UDim2.new(0, -4, 0, -2), UDim2.new(0, 2, 0, 38), | |
71 | - | 01/03/2018: |
71 | + | |
72 | - | + Added a global grid. |
72 | + | |
73 | - | + Added something that i'm not sure how to describe. |
73 | + | |
74 | - | * Punching Animation in first person is now more accurate. |
74 | + | |
75 | Color3.new(106/255, 106/255, 106/255), 0, slot) | |
76 | - | 17/02/2018: |
76 | + | |
77 | - | + You can't break your neck anymore (360 head you know) |
77 | + | |
78 | - | + Added this changelog |
78 | + | |
79 | - | - Removed the name tag, since it causes it to get banned on |
79 | + | |
80 | - | some servers for some reason (really voidacity?). |
80 | + | |
81 | - | * Walking animation is now more accurate |
81 | + | |
82 | return x/d | |
83 | - | Note: It's been a while since i don't update the script, but i'll |
83 | + | |
84 | - | get back to updating it. |
84 | + | |
85 | - | |
85 | + | |
86 | - | 05/02/2018: |
86 | + | |
87 | - | + Added gravity to sand and gravel (WARNING: Can be laggy!) |
87 | + | |
88 | return math.abs((Vector3.new(math.abs(v2.X - v1.X), math.abs(v2.Y - v1.Y), math.abs(v2.Z - v1.Z))).Magnitude) | |
89 | - | 04/02/2018: |
89 | + | |
90 | - | + Added creative inventory |
90 | + | |
91 | - | + Added 31 blocks (that's a lot, but not near minecraft's level) |
91 | + | |
92 | - | + Added sprinting (i'll add footsteps and particles later) |
92 | + | |
93 | - | - Removed Herobrine |
93 | + | |
94 | - | * Fixed a bug where the hand dissapears if u look down while sneaking |
94 | + | |
95 | - | * Fixed? (not sure) a bug where if u ran the script you would die |
95 | + | |
96 | function weldTo(part1, part2) | |
97 | - | 01/02/2018: |
97 | + | |
98 | - | + Added the hand that appears on minecraft when ur first person |
98 | + | |
99 | - | + Added a walking animation to the hand |
99 | + | |
100 | - | + Punching animation added to the hand |
100 | + | |
101 | - | + Camera bobbing |
101 | + | |
102 | - | + Sneaking now lowers your camera just like in minecraft |
102 | + | return math.abs(velocity.X) + math.abs(velocity.Z) |
103 | - | + Blocks now have sounds (i chose the ones that are the closest to minecraft sounds) |
103 | + | |
104 | - | + When a block is broken, particles will fall from it |
104 | + | function placeBlock(block, cFPos) |
105 | - | ]] |
105 | + | local blockPlaced = Instance.new("Part", workspace) |
106 | blockPlaced.Material = "Fabric" | |
107 | - | workspace:WaitForChild("Camera"):ClearAllChildren() |
107 | + | blockPlaced.Anchored = true |
108 | - | local RS = game:GetService("RunService").RenderStepped |
108 | + | blockPlaced.Size = block.size |
109 | blockPlaced.CFrame = cFPos | |
110 | putTexture(blockPlaced, block.frontTex, block.backTex, | |
111 | block.topTex, block.bottomTex, block.leftTex, block.rightTex, "Texture") | |
112 | - | local creativeInventory = { |
112 | + | return blockPlaced |
113 | - | { |
113 | + | |
114 | - | name = "Dirt", |
114 | + | |
115 | Dirt = { | |
116 | - | transparency = 0; |
116 | + | |
117 | - | frontTex = "rbxassetid://152569532", |
117 | + | frontTex = "rbxassetid://179655033", |
118 | - | backTex = "rbxassetid://152569532", |
118 | + | backTex = "rbxassetid://179655033", |
119 | - | topTex = "rbxassetid://152569532", |
119 | + | topTex = "rbxassetid://179655033", |
120 | - | bottomTex = "rbxassetid://152569532", |
120 | + | |
121 | - | leftTex = "rbxassetid://152569532", |
121 | + | leftTex = "rbxassetid://179655033", |
122 | - | rightTex = "rbxassetid://152569532", |
122 | + | rightTex = "rbxassetid://179655033" |
123 | - | displayTex = "", |
123 | + | |
124 | - | sound = "rbxassetid://1102186681", |
124 | + | Grass = { |
125 | - | soundVol = 1.25, |
125 | + | |
126 | - | hasGravity = false, |
126 | + | |
127 | - | objectType = "Block" |
127 | + | |
128 | topTex = "rbxassetid://96430265", | |
129 | - | { |
129 | + | |
130 | - | name = "Grass", |
130 | + | |
131 | rightTex = "rbxassetid://96430337" | |
132 | - | transparency = 0; |
132 | + | |
133 | Stone = { | |
134 | size = Vector3.new(2.6, 2.6, 2.6), | |
135 | frontTex = "rbxassetid://75880927", | |
136 | backTex = "rbxassetid://75880927", | |
137 | topTex = "rbxassetid://75880927", | |
138 | - | rightTex = "rbxassetid://96430337", |
138 | + | |
139 | - | displayTex = "", |
139 | + | |
140 | - | sound = "rbxassetid://1102186681", |
140 | + | rightTex = "rbxassetid://75880927" |
141 | - | soundVol = 1.25, |
141 | + | |
142 | - | hasGravity = false, |
142 | + | Diamond_Ore = { |
143 | - | objectType = "Block" |
143 | + | |
144 | frontTex = "rbxassetid://57928490", | |
145 | - | { |
145 | + | |
146 | - | name = "Sand", |
146 | + | |
147 | bottomTex = "rbxassetid://57928490", | |
148 | - | transparency = 0; |
148 | + | |
149 | - | frontTex = "rbxassetid://347007448", |
149 | + | rightTex = "rbxassetid://57928490" |
150 | - | backTex = "rbxassetid://347007448", |
150 | + | |
151 | - | topTex = "rbxassetid://347007448", |
151 | + | Diamond_Block = { |
152 | - | bottomTex = "rbxassetid://347007448", |
152 | + | |
153 | - | leftTex = "rbxassetid://347007448", |
153 | + | |
154 | - | rightTex = "rbxassetid://347007448", |
154 | + | |
155 | - | displayTex = "", |
155 | + | |
156 | - | sound = "rbxassetid://1102186681", |
156 | + | |
157 | - | soundVol = 1.25, |
157 | + | |
158 | - | hasGravity = true, |
158 | + | rightTex = "rbxassetid://56749955" |
159 | - | objectType = "Block" |
159 | + | |
160 | Wood_Planks = { | |
161 | - | { |
161 | + | |
162 | - | name = "Gravel", |
162 | + | |
163 | backTex = "rbxassetid://346201871", | |
164 | - | transparency = 0; |
164 | + | |
165 | - | frontTex = "rbxassetid://151701568", |
165 | + | |
166 | - | backTex = "rbxassetid://151701568", |
166 | + | |
167 | - | topTex = "rbxassetid://151701568", |
167 | + | rightTex = "rbxassetid://346201871" |
168 | - | bottomTex = "rbxassetid://151701568", |
168 | + | |
169 | - | leftTex = "rbxassetid://151701568", |
169 | + | Oak_Log = { |
170 | - | rightTex = "rbxassetid://151701568", |
170 | + | |
171 | - | displayTex = "", |
171 | + | frontTex = "rbxassetid://310831812", |
172 | - | sound = "rbxassetid://1102186681", |
172 | + | backTex = "rbxassetid://310831812", |
173 | - | soundVol = 1.25, |
173 | + | |
174 | - | hasGravity = true, |
174 | + | |
175 | - | objectType = "Block" |
175 | + | leftTex = "rbxassetid://310831812", |
176 | rightTex = "rbxassetid://310831812" | |
177 | - | { |
177 | + | |
178 | - | name = "Stone", |
178 | + | |
179 | if player then | |
180 | - | transparency = 0; |
180 | + | |
181 | if char then | |
182 | for _,cM in pairs(char:GetChildren()) do | |
183 | if cM.ClassName == "CharacterMesh" then cM:Destroy() end | |
184 | end | |
185 | ||
186 | - | rightTex = "rbxassetid://75880927", |
186 | + | |
187 | - | displayTex = "", |
187 | + | |
188 | - | sound = "rbxassetid://1016978163", |
188 | + | |
189 | - | soundVol = 2, |
189 | + | |
190 | - | hasGravity = false, |
190 | + | makeSquare(UDim2.new(0.5, -166, 1, -111), UDim2.new(0, 364, 0, 44), |
191 | - | objectType = "Block" |
191 | + | |
192 | ||
193 | - | { |
193 | + | local blocks = {"Dirt", "Grass", "Stone", "Diamond_Ore", "Diamond_Block", "Wood_Planks", "Oak_Log"} |
194 | - | name = "Diamond Ore", |
194 | + | |
195 | if toolBar[blocks[i]] ~= nil then | |
196 | - | transparency = 0; |
196 | + | putToolBarSlot(UDim2.new(0.5, -160 + ((i-1)*40), 1, -105), toolBar[blocks[i]].frontTex) |
197 | else | |
198 | putToolBarSlot(UDim2.new(0.5, -160 + ((i-1)*40), 1, -105), "") | |
199 | end | |
200 | end | |
201 | ||
202 | - | rightTex = "rbxassetid://57928490", |
202 | + | |
203 | - | displayTex = "", |
203 | + | |
204 | - | sound = "rbxassetid://1016978163", |
204 | + | |
205 | - | soundVol = 2, |
205 | + | |
206 | - | hasGravity = false, |
206 | + | |
207 | - | objectType = "Block" |
207 | + | |
208 | local rLeg = char:WaitForChild("Right Leg") | |
209 | - | { |
209 | + | |
210 | - | name = "Diamond Block", |
210 | + | |
211 | putTexture(head, "rbxassetid://38738031", "rbxassetid://36047330", | |
212 | - | transparency = 0; |
212 | + | |
213 | "rbxassetid://36047323", "rbxassetid://36047315", "Decal") | |
214 | head:WaitForChild("Mesh"):Destroy() | |
215 | head:WaitForChild("face"):Destroy() | |
216 | ||
217 | torso.Size = Vector3.new(1.3, 1.95, 0.65) | |
218 | - | rightTex = "rbxassetid://56749955", |
218 | + | |
219 | - | displayTex = "", |
219 | + | |
220 | - | sound = "rbxassetid://1016978163", |
220 | + | |
221 | - | soundVol = 2, |
221 | + | |
222 | - | hasGravity = false, |
222 | + | |
223 | - | objectType = "Block" |
223 | + | |
224 | "rbxassetid://38934613", "rbxassetid://38934568", | |
225 | - | { |
225 | + | |
226 | - | name = "Emerald Block", |
226 | + | |
227 | rArm.Size = Vector3.new(0.65, 1.95, 0.65) | |
228 | - | transparency = 0; |
228 | + | |
229 | - | frontTex = "rbxassetid://152410853", |
229 | + | |
230 | - | backTex = "rbxassetid://152410853", |
230 | + | |
231 | - | topTex = "rbxassetid://152410853", |
231 | + | |
232 | - | bottomTex = "rbxassetid://152410853", |
232 | + | |
233 | - | leftTex = "rbxassetid://152410853", |
233 | + | |
234 | - | rightTex = "rbxassetid://152410853", |
234 | + | |
235 | - | displayTex = "", |
235 | + | |
236 | - | sound = "rbxassetid://1016978163", |
236 | + | |
237 | - | soundVol = 2, |
237 | + | |
238 | - | hasGravity = false, |
238 | + | |
239 | - | objectType = "Block" |
239 | + | |
240 | "rbxassetid://38936242", "rbxassetid://38936255", "Decal") | |
241 | - | { |
241 | + | |
242 | - | name = "Emerald Ore", |
242 | + | |
243 | char.Animate:Remove() | |
244 | - | transparency = 0; |
244 | + | |
245 | - | frontTex = "rbxassetid://152410868", |
245 | + | |
246 | - | backTex = "rbxassetid://152410868", |
246 | + | |
247 | - | topTex = "rbxassetid://152410868", |
247 | + | |
248 | - | bottomTex = "rbxassetid://152410868", |
248 | + | |
249 | - | leftTex = "rbxassetid://152410868", |
249 | + | |
250 | - | rightTex = "rbxassetid://152410868", |
250 | + | |
251 | - | displayTex = "", |
251 | + | |
252 | - | sound = "rbxassetid://1016978163", |
252 | + | |
253 | - | soundVol = 2, |
253 | + | |
254 | - | hasGravity = false, |
254 | + | |
255 | - | objectType = "Block" |
255 | + | |
256 | local camPart = Instance.new("Part", camera) | |
257 | - | { |
257 | + | |
258 | - | name = "Obsidian", |
258 | + | |
259 | camPart.Transparency = 1 | |
260 | - | transparency = 0; |
260 | + | |
261 | - | frontTex = "rbxassetid://112560322", |
261 | + | --[[local cameraHand = Instance.new("Part", camera) |
262 | - | backTex = "rbxassetid://112560322", |
262 | + | |
263 | - | topTex = "rbxassetid://112560322", |
263 | + | |
264 | - | bottomTex = "rbxassetid://112560322", |
264 | + | |
265 | - | leftTex = "rbxassetid://112560322", |
265 | + | |
266 | - | rightTex = "rbxassetid://112560322", |
266 | + | |
267 | - | displayTex = "", |
267 | + | |
268 | - | sound = "rbxassetid://1016978163", |
268 | + | |
269 | - | soundVol = 2, |
269 | + | |
270 | - | hasGravity = false, |
270 | + | local cameraHandWeld = Instance.new("Motor6D", camPart) |
271 | - | objectType = "Block" |
271 | + | cameraHandWeld.Part0 = camPart |
272 | cameraHandWeld.Part1 = cameraHand | |
273 | - | { |
273 | + | cameraHandWeld.C0 = CFrame.new(5, 0, 0) |
274 | - | name = "Gold Block", |
274 | + | ]]-- |
275 | ||
276 | - | transparency = 0; |
276 | + | |
277 | - | frontTex = "rbxassetid://152572128", |
277 | + | humanoid.HipHeight = 0.3 |
278 | - | backTex = "rbxassetid://152572128", |
278 | + | |
279 | - | topTex = "rbxassetid://152572128", |
279 | + | local rootJoint = Instance.new("Motor6D", torso) |
280 | - | bottomTex = "rbxassetid://152572128", |
280 | + | |
281 | - | leftTex = "rbxassetid://152572128", |
281 | + | |
282 | - | rightTex = "rbxassetid://152572128", |
282 | + | |
283 | - | displayTex = "", |
283 | + | |
284 | - | sound = "rbxassetid://1016978163", |
284 | + | |
285 | - | soundVol = 2, |
285 | + | local neck = Instance.new("Motor6D", torso) |
286 | - | hasGravity = false, |
286 | + | |
287 | - | objectType = "Block" |
287 | + | |
288 | neck.Part1 = torso | |
289 | - | { |
289 | + | |
290 | - | name = "Gold Ore", |
290 | + | local lS = Instance.new("Motor6D", torso) |
291 | lS.Name = "Left Shoulder" | |
292 | - | transparency = 0; |
292 | + | |
293 | - | frontTex = "rbxassetid://152572121", |
293 | + | |
294 | - | backTex = "rbxassetid://152572121", |
294 | + | |
295 | - | topTex = "rbxassetid://152572121", |
295 | + | |
296 | - | bottomTex = "rbxassetid://152572121", |
296 | + | |
297 | - | leftTex = "rbxassetid://152572121", |
297 | + | local rS = Instance.new("Motor6D", torso) |
298 | - | rightTex = "rbxassetid://152572121", |
298 | + | |
299 | - | displayTex = "", |
299 | + | |
300 | - | sound = "rbxassetid://1016978163", |
300 | + | |
301 | - | soundVol = 2, |
301 | + | |
302 | - | hasGravity = false, |
302 | + | |
303 | - | objectType = "Block" |
303 | + | |
304 | local lH = Instance.new("Motor6D", torso) | |
305 | - | { |
305 | + | |
306 | - | name = "Iron Block", |
306 | + | |
307 | lH.Part1 = torso | |
308 | - | transparency = 0; |
308 | + | |
309 | - | frontTex = "rbxassetid://152572134", |
309 | + | |
310 | - | backTex = "rbxassetid://152572134", |
310 | + | |
311 | - | topTex = "rbxassetid://152572134", |
311 | + | local rH = Instance.new("Motor6D", torso) |
312 | - | bottomTex = "rbxassetid://152572134", |
312 | + | |
313 | - | leftTex = "rbxassetid://152572134", |
313 | + | |
314 | - | rightTex = "rbxassetid://152572134", |
314 | + | |
315 | - | displayTex = "", |
315 | + | |
316 | - | sound = "rbxassetid://1016978163", |
316 | + | |
317 | - | soundVol = 2, |
317 | + | |
318 | - | hasGravity = false, |
318 | + | |
319 | - | objectType = "Block" |
319 | + | |
320 | local hit = Instance.new("Part", char) | |
321 | - | { |
321 | + | |
322 | - | name = "Iron Ore", |
322 | + | |
323 | hit.Material = "SmoothPlastic" | |
324 | - | transparency = 0; |
324 | + | |
325 | - | frontTex = "rbxassetid://132879562", |
325 | + | |
326 | - | backTex = "rbxassetid://132879562", |
326 | + | |
327 | - | topTex = "rbxassetid://132879562", |
327 | + | |
328 | - | bottomTex = "rbxassetid://132879562", |
328 | + | |
329 | - | leftTex = "rbxassetid://132879562", |
329 | + | |
330 | - | rightTex = "rbxassetid://132879562", |
330 | + | |
331 | - | displayTex = "", |
331 | + | |
332 | - | sound = "rbxassetid://1016978163", |
332 | + | |
333 | - | soundVol = 2, |
333 | + | |
334 | - | hasGravity = false, |
334 | + | |
335 | - | objectType = "Block" |
335 | + | |
336 | ||
337 | - | { |
337 | + | |
338 | - | name = "Redstone Block", |
338 | + | |
339 | local sneaking = 0 | |
340 | - | transparency = 0; |
340 | + | |
341 | - | frontTex = "rbxassetid://136260219", |
341 | + | local RS = game:GetService("RunService").RenderStepped |
342 | - | backTex = "rbxassetid://136260219", |
342 | + | |
343 | - | topTex = "rbxassetid://136260219", |
343 | + | |
344 | - | bottomTex = "rbxassetid://136260219", |
344 | + | |
345 | - | leftTex = "rbxassetid://136260219", |
345 | + | |
346 | - | rightTex = "rbxassetid://136260219", |
346 | + | |
347 | - | sound = "rbxassetid://1016978163", |
347 | + | |
348 | - | soundVol = 2, |
348 | + | |
349 | - | hasGravity = false, |
349 | + | local punchRotZ = 0 |
350 | - | objectType = "Block" |
350 | + | |
351 | local punching = 0 | |
352 | - | { |
352 | + | |
353 | - | name = "Redstone Ore", |
353 | + | |
354 | local itemOnHand = nil | |
355 | - | transparency = 0; |
355 | + | |
356 | - | frontTex = "rbxassetid://152572209", |
356 | + | |
357 | - | backTex = "rbxassetid://152572209", |
357 | + | |
358 | - | topTex = "rbxassetid://152572209", |
358 | + | |
359 | - | bottomTex = "rbxassetid://152572209", |
359 | + | |
360 | - | leftTex = "rbxassetid://152572209", |
360 | + | |
361 | - | rightTex = "rbxassetid://152572209", |
361 | + | |
362 | - | displayTex = "", |
362 | + | |
363 | - | sound = "rbxassetid://1016978163", |
363 | + | |
364 | - | soundVol = 2, |
364 | + | |
365 | - | hasGravity = false, |
365 | + | |
366 | - | objectType = "Block" |
366 | + | |
367 | local sound = Instance.new("Sound", char) | |
368 | - | { |
368 | + | |
369 | - | name = "Coal Block", |
369 | + | |
370 | sound.SoundId = "rbxassetid://535690488" | |
371 | - | transparency = 0; |
371 | + | |
372 | - | frontTex = "rbxassetid://152527418", |
372 | + | |
373 | - | backTex = "rbxassetid://152527418", |
373 | + | |
374 | - | topTex = "rbxassetid://152527418", |
374 | + | |
375 | - | bottomTex = "rbxassetid://152527418", |
375 | + | |
376 | - | leftTex = "rbxassetid://152527418", |
376 | + | |
377 | - | rightTex = "rbxassetid://152527418", |
377 | + | |
378 | - | displayTex = "", |
378 | + | |
379 | - | sound = "rbxassetid://1016978163", |
379 | + | |
380 | - | soundVol = 2, |
380 | + | |
381 | - | hasGravity = false, |
381 | + | |
382 | - | objectType = "Block" |
382 | + | |
383 | p.Velocity = Vector3.new(p.Velocity.X + (head.CFrame.lookVector.X * 18), p.Velocity.Y + (head.CFrame.lookVector.Y * 18) + 8, p.Velocity.Z + (head.CFrame.lookVector.Z * 18)) | |
384 | - | { |
384 | + | |
385 | - | name = "Coal Ore", |
385 | + | |
386 | return | |
387 | - | transparency = 0; |
387 | + | |
388 | - | frontTex = "rbxassetid://152572101", |
388 | + | |
389 | - | backTex = "rbxassetid://152572101", |
389 | + | |
390 | - | topTex = "rbxassetid://152572101", |
390 | + | |
391 | - | bottomTex = "rbxassetid://152572101", |
391 | + | |
392 | - | leftTex = "rbxassetid://152572101", |
392 | + | |
393 | - | rightTex = "rbxassetid://152572101", |
393 | + | |
394 | - | displayTex = "", |
394 | + | |
395 | - | sound = "rbxassetid://1016978163", |
395 | + | |
396 | - | soundVol = 2, |
396 | + | |
397 | - | hasGravity = false, |
397 | + | |
398 | - | objectType = "Block" |
398 | + | |
399 | y = Mouse.Hit.p.Y | |
400 | - | { |
400 | + | |
401 | - | name = "Bedrock", |
401 | + | |
402 | -- local x = round(math.abs(mouseX)/2.6)*2.6 | |
403 | - | transparency = 0; |
403 | + | |
404 | - | frontTex = "rbxassetid://75881126", |
404 | + | |
405 | - | backTex = "rbxassetid://75881126", |
405 | + | |
406 | - | topTex = "rbxassetid://75881126", |
406 | + | |
407 | - | bottomTex = "rbxassetid://75881126", |
407 | + | |
408 | - | leftTex = "rbxassetid://75881126", |
408 | + | if selectedBlock == 0 then |
409 | - | rightTex = "rbxassetid://75881126", |
409 | + | local blk = placeBlock(toolBar.Dirt, CFrame.new(x, y, z)) |
410 | - | displayTex = "", |
410 | + | |
411 | - | sound = "rbxassetid://1016978163", |
411 | + | |
412 | - | soundVol = 2, |
412 | + | |
413 | - | hasGravity = false, |
413 | + | |
414 | - | objectType = "Block" |
414 | + | elseif selectedBlock == 1 then |
415 | local blk = placeBlock(toolBar.Grass, CFrame.new(x, y, z)) | |
416 | - | { |
416 | + | |
417 | - | name = "Cobblestone", |
417 | + | |
418 | blk:WaitForChild(f).StudsPerTileV = 2.6 | |
419 | - | transparency = 0; |
419 | + | |
420 | - | frontTex = "rbxassetid://152572105", |
420 | + | elseif selectedBlock == 2 then |
421 | - | backTex = "rbxassetid://152572105", |
421 | + | local blk = placeBlock(toolBar.Stone, CFrame.new(x, y, z)) |
422 | - | topTex = "rbxassetid://152572105", |
422 | + | |
423 | - | bottomTex = "rbxassetid://152572105", |
423 | + | |
424 | - | leftTex = "rbxassetid://152572105", |
424 | + | |
425 | - | rightTex = "rbxassetid://152572105", |
425 | + | |
426 | - | displayTex = "", |
426 | + | elseif selectedBlock == 3 then |
427 | - | sound = "rbxassetid://1016978163", |
427 | + | local blk = placeBlock(toolBar.Diamond_Ore, CFrame.new(x, y, z)) |
428 | - | soundVol = 2, |
428 | + | |
429 | - | hasGravity = false, |
429 | + | |
430 | - | objectType = "Block" |
430 | + | |
431 | end | |
432 | - | { |
432 | + | elseif selectedBlock == 4 then |
433 | - | name = "Mossy Stone Brick", |
433 | + | local blk = placeBlock(toolBar.Diamond_Block, CFrame.new(x, y, z)) |
434 | for _,f in pairs(facesToResize) do | |
435 | - | transparency = 0; |
435 | + | |
436 | - | frontTex = "rbxassetid://61826751", |
436 | + | |
437 | - | backTex = "rbxassetid://61826751", |
437 | + | |
438 | - | topTex = "rbxassetid://61826751", |
438 | + | elseif selectedBlock == 5 then |
439 | - | bottomTex = "rbxassetid://61826751", |
439 | + | local blk = placeBlock(toolBar.Wood_Planks, CFrame.new(x, y, z)) |
440 | - | leftTex = "rbxassetid://61826751", |
440 | + | |
441 | - | rightTex = "rbxassetid://61826751", |
441 | + | |
442 | - | displayTex = "", |
442 | + | |
443 | - | sound = "rbxassetid://1016978163", |
443 | + | |
444 | - | soundVol = 2, |
444 | + | elseif selectedBlock == 6 then |
445 | - | hasGravity = false, |
445 | + | local blk = placeBlock(toolBar.Oak_Log, CFrame.new(x, y, z)) |
446 | - | objectType = "Block" |
446 | + | |
447 | blk:WaitForChild(f).StudsPerTileU = 2.6 | |
448 | - | { |
448 | + | |
449 | - | name = "Cracked Stone Brick", |
449 | + | |
450 | elseif selectedBlock == 7 or selectedBlock == 8 then | |
451 | - | transparency = 0; |
451 | + | if Mouse.Target.Size.X <= 10 and Mouse.Target.Size.Y <= 10 and Mouse.Target.Size.Z <= 10 then |
452 | - | frontTex = "rbxassetid://151802087", |
452 | + | Mouse.Target.Parent = nil |
453 | - | backTex = "rbxassetid://151802087", |
453 | + | |
454 | - | topTex = "rbxassetid://151802087", |
454 | + | |
455 | - | bottomTex = "rbxassetid://151802087", |
455 | + | |
456 | - | leftTex = "rbxassetid://151802087", |
456 | + | |
457 | - | rightTex = "rbxassetid://151802087", |
457 | + | |
458 | - | displayTex = "", |
458 | + | |
459 | - | sound = "rbxassetid://1016978163", |
459 | + | |
460 | - | soundVol = 2, |
460 | + | |
461 | - | hasGravity = false, |
461 | + | |
462 | - | objectType = "Block" |
462 | + | |
463 | selectLabel.Size = UDim2.new(0, 32, 0, 32) | |
464 | - | { |
464 | + | |
465 | - | name = "Chiseled Stone Brick", |
465 | + | selectLabel.BackgroundTransparency = 0.5 |
466 | selectLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
467 | - | transparency = 0; |
467 | + | |
468 | - | frontTex = "rbxassetid://151802074", |
468 | + | |
469 | - | backTex = "rbxassetid://151802074", |
469 | + | |
470 | - | topTex = "rbxassetid://151802074", |
470 | + | |
471 | - | bottomTex = "rbxassetid://151802074", |
471 | + | |
472 | - | leftTex = "rbxassetid://151802074", |
472 | + | if key == "q" then |
473 | - | rightTex = "rbxassetid://151802074", |
473 | + | |
474 | - | displayTex = "", |
474 | + | |
475 | - | sound = "rbxassetid://1016978163", |
475 | + | |
476 | - | soundVol = 2, |
476 | + | |
477 | - | hasGravity = false, |
477 | + | |
478 | - | objectType = "Block" |
478 | + | print("Sneaking...") |
479 | end | |
480 | - | { |
480 | + | if key == "8" then |
481 | - | name = "Stone Brick", |
481 | + | selectedBlock = 7 |
482 | itemOnHand = nil | |
483 | - | transparency = 0; |
483 | + | for _,d in pairs(handItem:GetChildren()) do |
484 | - | frontTex = "rbxassetid://61826773", |
484 | + | d:Destroy() |
485 | - | backTex = "rbxassetid://61826773", |
485 | + | |
486 | - | topTex = "rbxassetid://61826773", |
486 | + | if hasItemOnHand == 1 then hi = 1 end |
487 | - | bottomTex = "rbxassetid://61826773", |
487 | + | |
488 | - | leftTex = "rbxassetid://61826773", |
488 | + | if key == "9" then |
489 | - | rightTex = "rbxassetid://61826773", |
489 | + | selectedBlock = 8 |
490 | - | displayTex = "", |
490 | + | itemOnHand = nil |
491 | - | sound = "rbxassetid://1016978163", |
491 | + | for _,d in pairs(handItem:GetChildren()) do |
492 | - | soundVol = 2, |
492 | + | d:Destroy() |
493 | - | hasGravity = false, |
493 | + | |
494 | - | objectType = "Block" |
494 | + | if hasItemOnHand == 1 then hi = 1 end |
495 | end | |
496 | - | { |
496 | + | if key == "1" then |
497 | - | name = "Nether Brick", |
497 | + | selectedBlock = 0 |
498 | itemOnHand = toolBar.Dirt | |
499 | - | transparency = 0; |
499 | + | for _,d in pairs(handItem:GetChildren()) do |
500 | - | frontTex = "rbxassetid://151802104", |
500 | + | d:Destroy() |
501 | - | backTex = "rbxassetid://151802104", |
501 | + | |
502 | - | topTex = "rbxassetid://151802104", |
502 | + | |
503 | - | bottomTex = "rbxassetid://151802104", |
503 | + | |
504 | - | leftTex = "rbxassetid://151802104", |
504 | + | |
505 | - | rightTex = "rbxassetid://151802104", |
505 | + | |
506 | - | displayTex = "", |
506 | + | |
507 | - | sound = "rbxassetid://1016978163", |
507 | + | |
508 | - | soundVol = 2, |
508 | + | |
509 | - | hasGravity = false, |
509 | + | |
510 | - | objectType = "Block" |
510 | + | if key == "2" then |
511 | selectedBlock = 1 | |
512 | - | { |
512 | + | itemOnHand = toolBar.Grass |
513 | - | name = "Granite", |
513 | + | for _,d in pairs(handItem:GetChildren()) do |
514 | d:Destroy() | |
515 | - | transparency = 0; |
515 | + | |
516 | - | frontTex = "rbxassetid://151776467", |
516 | + | |
517 | - | backTex = "rbxassetid://151776467", |
517 | + | |
518 | - | topTex = "rbxassetid://151776467", |
518 | + | |
519 | - | bottomTex = "rbxassetid://151776467", |
519 | + | |
520 | - | leftTex = "rbxassetid://151776467", |
520 | + | |
521 | - | rightTex = "rbxassetid://151776467", |
521 | + | |
522 | - | displayTex = "", |
522 | + | |
523 | - | sound = "rbxassetid://1016978163", |
523 | + | |
524 | - | soundVol = 2, |
524 | + | if key == "3" then |
525 | - | hasGravity = false, |
525 | + | selectedBlock = 2 |
526 | - | objectType = "Block" |
526 | + | itemOnHand = toolBar.Stone |
527 | for _,d in pairs(handItem:GetChildren()) do | |
528 | - | { |
528 | + | d:Destroy() |
529 | - | name = "Diorite", |
529 | + | |
530 | putTexture(handItem, itemOnHand.frontTex, itemOnHand.backTex, | |
531 | - | transparency = 0; |
531 | + | |
532 | - | frontTex = "rbxassetid://151776452", |
532 | + | |
533 | - | backTex = "rbxassetid://151776452", |
533 | + | |
534 | - | topTex = "rbxassetid://151776452", |
534 | + | |
535 | - | bottomTex = "rbxassetid://151776452", |
535 | + | |
536 | - | leftTex = "rbxassetid://151776452", |
536 | + | |
537 | - | rightTex = "rbxassetid://151776452", |
537 | + | |
538 | - | sound = "rbxassetid://1016978163", |
538 | + | if key == "4" then |
539 | - | soundVol = 2, |
539 | + | selectedBlock = 3 |
540 | - | hasGravity = false, |
540 | + | itemOnHand = toolBar.Diamond_Ore |
541 | - | objectType = "Block" |
541 | + | for _,d in pairs(handItem:GetChildren()) do |
542 | d:Destroy() | |
543 | - | { |
543 | + | |
544 | - | name = "Andesite", |
544 | + | |
545 | itemOnHand.topTex, itemOnHand.bottomTex, | |
546 | - | transparency = 0; |
546 | + | |
547 | - | frontTex = "rbxassetid://151776422", |
547 | + | |
548 | - | backTex = "rbxassetid://151776422", |
548 | + | |
549 | - | topTex = "rbxassetid://151776422", |
549 | + | |
550 | - | bottomTex = "rbxassetid://151776422", |
550 | + | |
551 | - | leftTex = "rbxassetid://151776422", |
551 | + | |
552 | - | rightTex = "rbxassetid://151776422", |
552 | + | if key == "5" then |
553 | - | displayTex = "", |
553 | + | selectedBlock = 4 |
554 | - | sound = "rbxassetid://1016978163", |
554 | + | itemOnHand = toolBar.Diamond_Block |
555 | - | soundVol = 2, |
555 | + | for _,d in pairs(handItem:GetChildren()) do |
556 | - | hasGravity = false, |
556 | + | d:Destroy() |
557 | - | objectType = "Block" |
557 | + | |
558 | putTexture(handItem, itemOnHand.frontTex, itemOnHand.backTex, | |
559 | - | { |
559 | + | |
560 | - | name = "Polished Granite", |
560 | + | |
561 | for _,f in pairs(facesToResize) do | |
562 | - | transparency = 0; |
562 | + | |
563 | - | frontTex = "rbxassetid://151776506", |
563 | + | |
564 | - | backTex = "rbxassetid://151776506", |
564 | + | |
565 | - | topTex = "rbxassetid://151776506", |
565 | + | |
566 | - | bottomTex = "rbxassetid://151776506", |
566 | + | if key == "6" then |
567 | - | leftTex = "rbxassetid://151776506", |
567 | + | selectedBlock = 5 |
568 | - | rightTex = "rbxassetid://151776506", |
568 | + | itemOnHand = toolBar.Wood_Planks |
569 | - | displayTex = "", |
569 | + | for _,d in pairs(handItem:GetChildren()) do |
570 | - | sound = "rbxassetid://1016978163", |
570 | + | d:Destroy() |
571 | - | soundVol = 2, |
571 | + | |
572 | - | hasGravity = false, |
572 | + | |
573 | - | objectType = "Block" |
573 | + | |
574 | itemOnHand.leftTex, itemOnHand.rightTex, "Texture") | |
575 | - | { |
575 | + | |
576 | - | name = "Polished Diorite", |
576 | + | |
577 | handItem:WaitForChild(f).StudsPerTileV = 0.52 | |
578 | - | transparency = 0; |
578 | + | |
579 | - | frontTex = "rbxassetid://151776533", |
579 | + | |
580 | - | backTex = "rbxassetid://151776533", |
580 | + | if key == "7" then |
581 | - | topTex = "rbxassetid://151776533", |
581 | + | selectedBlock = 6 |
582 | - | bottomTex = "rbxassetid://151776533", |
582 | + | itemOnHand = toolBar.Oak_Log |
583 | - | leftTex = "rbxassetid://151776533", |
583 | + | for _,d in pairs(handItem:GetChildren()) do |
584 | - | rightTex = "rbxassetid://151776533", |
584 | + | d:Destroy() |
585 | - | displayTex = "", |
585 | + | |
586 | - | sound = "rbxassetid://1016978163", |
586 | + | |
587 | - | soundVol = 2, |
587 | + | |
588 | - | hasGravity = false, |
588 | + | |
589 | - | objectType = "Block" |
589 | + | |
590 | handItem:WaitForChild(f).StudsPerTileU = 0.52 | |
591 | - | { |
591 | + | |
592 | - | name = "Polished Andesite", |
592 | + | |
593 | end | |
594 | - | transparency = 0; |
594 | + | if (key == "0" or key == "1" or key == "2" |
595 | - | frontTex = "rbxassetid://151776506", |
595 | + | or key == "3" or key == "4" or key == "5" |
596 | - | backTex = "rbxassetid://151776506", |
596 | + | or key == "6" or key == "7") and hasItemOnHand == 0 then hi = 1 end |
597 | - | topTex = "rbxassetid://151776506", |
597 | + | |
598 | - | bottomTex = "rbxassetid://151776506", |
598 | + | |
599 | - | leftTex = "rbxassetid://151776506", |
599 | + | |
600 | - | rightTex = "rbxassetid://151776506", |
600 | + | |
601 | - | displayTex = "", |
601 | + | if key == "q" then |
602 | - | sound = "rbxassetid://1016978163", |
602 | + | |
603 | - | soundVol = 2, |
603 | + | |
604 | - | hasGravity = false, |
604 | + | |
605 | - | objectType = "Block" |
605 | + | |
606 | rH.C0 = CFrame.new(0, 0.975, 0) * CFrame.Angles(0, 0, 0) | |
607 | - | { |
607 | + | print("Stopped sneaking...") |
608 | - | name = "Brick Block", |
608 | + | |
609 | end) | |
610 | - | transparency = 0; |
610 | + | |
611 | - | frontTex = "rbxassetid://59389191", |
611 | + | |
612 | - | backTex = "rbxassetid://59389191", |
612 | + | |
613 | - | topTex = "rbxassetid://59389191", |
613 | + | |
614 | - | bottomTex = "rbxassetid://59389191", |
614 | + | handItem.Transparency = 0 |
615 | - | leftTex = "rbxassetid://59389191", |
615 | + | |
616 | - | rightTex = "rbxassetid://59389191", |
616 | + | |
617 | - | displayTex = "", |
617 | + | |
618 | - | sound = "rbxassetid://1016978163", |
618 | + | |
619 | - | soundVol = 2, |
619 | + | |
620 | - | hasGravity = false, |
620 | + | |
621 | - | objectType = "Block" |
621 | + | |
622 | end | |
623 | - | { |
623 | + | |
624 | - | name = "Packed Ice", |
624 | + | |
625 | for _,p in pairs(char:GetChildren()) do | |
626 | - | transparency = 0; |
626 | + | |
627 | - | frontTex = "rbxassetid://152528023", |
627 | + | |
628 | - | backTex = "rbxassetid://152528023", |
628 | + | |
629 | - | topTex = "rbxassetid://152528023", |
629 | + | |
630 | - | bottomTex = "rbxassetid://152528023", |
630 | + | |
631 | - | leftTex = "rbxassetid://152528023", |
631 | + | |
632 | - | rightTex = "rbxassetid://152528023", |
632 | + | |
633 | - | displayTex = "", |
633 | + | |
634 | - | sound = "rbxassetid://1016978163", |
634 | + | |
635 | - | soundVol = 2, |
635 | + | |
636 | - | hasGravity = false, |
636 | + | |
637 | - | objectType = "Block" |
637 | + | |
638 | end | |
639 | - | { |
639 | + | |
640 | - | name = "Ice Block", |
640 | + | |
641 | end | |
642 | - | transparency = 1; |
642 | + | |
643 | - | frontTex = "rbxassetid://118555586", |
643 | + | camPart.CFrame = camera.CFrame |
644 | - | backTex = "rbxassetid://118555586", |
644 | + | neck.C1 = CFrame.new(0, 0.975, 0) * CFrame.fromEulerAnglesXYZ(math.rad(sneaking*45), math.rad(camPart.Orientation.Y - torso.Orientation.Y), 0) |
645 | - | topTex = "rbxassetid://118555586", |
645 | + | neck.C0 = CFrame.new(0, -0.65, 0) * CFrame.Angles(-math.rad(camPart.Orientation.X - torso.Orientation.X - (sneaking*45)), 0, 0) |
646 | - | bottomTex = "rbxassetid://118555586", |
646 | + | |
647 | - | leftTex = "rbxassetid://118555586", |
647 | + | |
648 | - | rightTex = "rbxassetid://118555586", |
648 | + | |
649 | - | displayTex = "", |
649 | + | |
650 | - | sound = "rbxassetid://1016978163", |
650 | + | |
651 | - | soundVol = 2, |
651 | + | |
652 | - | hasGravity = false, |
652 | + | |
653 | - | objectType = "Block" |
653 | + | walkAnim = walkAnim + (increaseWalkAnim/(10+(sneaking*20))) |
654 | else | |
655 | - | { |
655 | + | |
656 | - | name = "Netherrack", |
656 | + | |
657 | ||
658 | - | transparency = 0; |
658 | + | |
659 | - | frontTex = "rbxassetid://151802119", |
659 | + | |
660 | - | backTex = "rbxassetid://151802119", |
660 | + | lH.C0 = lH.C0:lerp(CFrame.new(0, 0.975, 0) * CFrame.Angles(-math.rad(sneaking*45) + math.rad(damageTime*1.5) + math.rad(walkAnim*getMagnitudeXZ(torso.Velocity)*5/(1+sneaking)), 0, 0), 0.1) |
661 | - | topTex = "rbxassetid://151802119", |
661 | + | rH.C0 = rH.C0:lerp(CFrame.new(0, 0.975, 0) * CFrame.Angles(math.rad(sneaking*45) + math.rad(damageTime*1.5) + math.rad(walkAnim*getMagnitudeXZ(torso.Velocity)*5/(1+sneaking)), 0, 0), 0.1) |
662 | - | bottomTex = "rbxassetid://151802119", |
662 | + | |
663 | - | leftTex = "rbxassetid://151802119", |
663 | + | |
664 | - | rightTex = "rbxassetid://151802119", |
664 | + | |
665 | - | displayTex = "", |
665 | + | |
666 | - | sound = "rbxassetid://1016978163", |
666 | + | |
667 | - | soundVol = 2, |
667 | + | |
668 | - | hasGravity = false, |
668 | + | |
669 | - | objectType = "Block" |
669 | + | |
670 | --humRootPart.CFrame = humRootPart.CFrame * CFrame.Angles(0, math.rad(45 + head.Orientation.Y), 0) | |
671 | - | { |
671 | + | |
672 | - | name = "End Stone", |
672 | + | |
673 | ||
674 | - | transparency = 0; |
674 | + | |
675 | - | frontTex = "rbxassetid://151802091", |
675 | + | |
676 | - | backTex = "rbxassetid://151802091", |
676 | + | |
677 | - | topTex = "rbxassetid://151802091", |
677 | + | lS.C0 = lS.C0:lerp(CFrame.new(-0.325, 0.975, 0) * CFrame.Angles(idleAnimRotX/20 + math.rad(-hasItemOnHand*10) + math.rad(punchRotX) + math.rad(damageTime*1.5) + math.rad(walkAnim*getMagnitudeXZ(torso.Velocity)*5/(1+sneaking)), 0, math.rad(punchRotZ) + idleAnimRotZ/20), 0.025+(math.min(1, getMagnitudeXZ(torso.Velocity))/12) + divide(punchSpeed, 6) + hi) |
678 | - | bottomTex = "rbxassetid://151802091", |
678 | + | rS.C0 = rS.C0:lerp(CFrame.new(-0.325, 0.975, 0) * CFrame.Angles(idleAnimRotX/20 + math.rad(damageTime*1.5) + math.rad(walkAnim*getMagnitudeXZ(torso.Velocity)*5/(1+sneaking)), 0, idleAnimRotZ/20), 0.025+(math.min(1, getMagnitudeXZ(torso.Velocity))/12)) |
679 | - | leftTex = "rbxassetid://151802091", |
679 | + | |
680 | - | rightTex = "rbxassetid://151802091", |
680 | + | |
681 | - | displayTex = "", |
681 | + | print("steve uses punch!!") |
682 | - | sound = "rbxassetid://1016978163", |
682 | + | |
683 | - | soundVol = 2, |
683 | + | |
684 | - | hasGravity = false, |
684 | + | |
685 | - | objectType = "Block" |
685 | + | |
686 | punchRotY = -8 | |
687 | - | { |
687 | + | |
688 | - | name = "Glass Block", |
688 | + | wait(0.075) |
689 | punchSpeed = 1 | |
690 | - | transparency = 1; |
690 | + | |
691 | - | frontTex = "rbxassetid://152239003", |
691 | + | |
692 | - | backTex = "rbxassetid://152239003", |
692 | + | |
693 | - | topTex = "rbxassetid://152239003", |
693 | + | wait(0.075) |
694 | - | bottomTex = "rbxassetid://152239003", |
694 | + | |
695 | - | leftTex = "rbxassetid://152239003", |
695 | + | |
696 | - | rightTex = "rbxassetid://152239003", |
696 | + | |
697 | - | displayTex = "", |
697 | + | wait(0.075) |
698 | - | sound = "rbxassetid://1016978163", |
698 | + | |
699 | - | soundVol = 2, |
699 | + | |
700 | - | hasGravity = false, |
700 | + | |
701 | - | objectType = "Block" |
701 | + | |
702 | punchEnded = 1 | |
703 | - | { |
703 | + | wait(0.06) |
704 | - | name = "Glowstone", |
704 | + | |
705 | end) | |
706 | - | transparency = 0; |
706 | + | |
707 | - | frontTex = "rbxassetid://54790811", |
707 | + | |
708 | - | backTex = "rbxassetid://54790811", |
708 | + | |
709 | - | topTex = "rbxassetid://54790811", |
709 | + | |
710 | - | bottomTex = "rbxassetid://54790811", |
710 | + | |
711 | - | leftTex = "rbxassetid://54790811", |
711 | + | |
712 | - | rightTex = "rbxassetid://54790811", |
712 | + | |
713 | - | displayTex = "", |
713 | + | |
714 | - | sound = "rbxassetid://1016978163", |
714 | + | |
715 | - | soundVol = 2, |
715 | + | |
716 | - | hasGravity = false, |
716 | + | |
717 | - | objectType = "Block" |
717 | + | |
718 | elseif times == 2 then | |
719 | - | { |
719 | + | |
720 | - | name = "Bookshelf", |
720 | + | |
721 | idleAnimRotZ = -1 | |
722 | - | transparency = 0; |
722 | + | |
723 | - | frontTex = "rbxassetid://118554092", |
723 | + | |
724 | - | backTex = "rbxassetid://118554092", |
724 | + | |
725 | idleAnimRotZ = -0.75 | |
726 | --idleAnimRotX = 0.75 | |
727 | - | leftTex = "rbxassetid://118554092", |
727 | + | |
728 | - | rightTex = "rbxassetid://118554092", |
728 | + | |
729 | - | displayTex = "", |
729 | + | |
730 | - | sound = "rbxassetid://507863457", |
730 | + | |
731 | - | soundVol = 2, |
731 | + | |
732 | - | hasGravity = false, |
732 | + | |
733 | - | objectType = "Block" |
733 | + | |
734 | elseif times == 5 then | |
735 | - | { |
735 | + | |
736 | - | name = "Oak Wood Planks", |
736 | + | |
737 | idleAnimRotZ = 0.75 | |
738 | - | transparency = 0; |
738 | + | |
739 | times = times + 1 | |
740 | idleAnimRotX = 0 | |
741 | idleAnimRotZ = 1 | |
742 | elseif times == 7 then | |
743 | times = 0 | |
744 | - | rightTex = "rbxassetid://346201871", |
744 | + | |
745 | - | displayTex = "", |
745 | + | |
746 | - | sound = "rbxassetid://507863457", |
746 | + | |
747 | - | soundVol = 2, |
747 | + | |
748 | - | hasGravity = false, |
748 | + | |
749 | - | objectType = "Block" |
749 | + | |
750 | end | |
751 | - | { |
751 | + | |
752 | - | name = "Oak Log", |
752 | + |