SHOW:
|
|
- or go back to the newest paste.
1 | - | print("RAN") |
1 | + | print("RAN a") |
2 | local player = game.Players.LocalPlayer | |
3 | local c = player.Character | |
4 | local mouse = player:GetMouse() | |
5 | ||
6 | p = Instance.new("ForceField") | |
7 | p.Parent = c | |
8 | p.Visible = false | |
9 | ||
10 | for i,v in pairs(c:GetChildren()) do | |
11 | if v.ClassName == ("Part") then | |
12 | v.Transparency = 1 | |
13 | end | |
14 | if v.ClassName == ("Accessory") then | |
15 | v:Destroy() | |
16 | end | |
17 | v:Destroy() | |
18 | end | |
19 | ||
20 | if c:FindFirstChild("Head") ~= nil then | |
21 | if c.Head:FindFirstChild("face") ~= nil then | |
22 | c.Head.face:Destroy() | |
23 | end | |
24 | end | |
25 | ||
26 | moveup = 0 | |
27 | movedown = 0 | |
28 | ||
29 | moveforward = 0 | |
30 | movebackward = 0 | |
31 | ||
32 | moveleft = 0 | |
33 | moveright = 0 | |
34 | ||
35 | local character = Instance.new("Model") | |
36 | character.Parent = game.Workspace | |
37 | ||
38 | script.Parent = character | |
39 | ||
40 | core = nil | |
41 | ||
42 | coreframe = nil | |
43 | ||
44 | ||
45 | --GUI | |
46 | ||
47 | local screengui = Instance.new("ScreenGui") | |
48 | - | core1.Transparency = 0.5 |
48 | + | screengui.Parent = player.PlayerGui |
49 | ||
50 | local frame = Instance.new("Frame") | |
51 | frame.Parent = screengui | |
52 | frame.Size = UDim2.new(1, 0, 1, 0) | |
53 | frame.BackgroundTransparency = 1 | |
54 | ||
55 | local SubmitMessageButton = Instance.new("TextButton") | |
56 | SubmitMessageButton.Parent = frame | |
57 | SubmitMessageButton.Position = UDim2.new(0, 0, 0.5, 0) | |
58 | SubmitMessageButton.Size = UDim2.new(0.05, 0, 0.03, 0) | |
59 | - | head.Transparency = 0.5 |
59 | + | SubmitMessageButton.Text = ("Submit Message") |
60 | ||
61 | local TypeMessageBox = Instance.new("TextBox") | |
62 | TypeMessageBox.Parent = frame | |
63 | TypeMessageBox.Position = UDim2.new(0, 0, 0.47, 0) | |
64 | TypeMessageBox.Size = UDim2.new(0.1, 0, 0.03, 0) | |
65 | ||
66 | function SubmitMessage() | |
67 | - | larm.Transparency = 0.5 |
67 | + | local bill = Instance.new("BillboardGui") |
68 | bill.Parent = core | |
69 | bill.Adornee = core | |
70 | bill.StudsOffset = Vector3.new(0, 3, 0) | |
71 | ||
72 | local Message = Instance.new("TextLabel") | |
73 | Message.Parent = bill | |
74 | Message.BackgroundTransparency = 1 | |
75 | - | rarm.Transparency = 0.5 |
75 | + | Message.Text = TypeMessageBox.Text |
76 | Message.TextColor3 = Color3.fromRGB(255,255,255) | |
77 | Message.TextStrokeTransparency = 0 | |
78 | end | |
79 | ||
80 | SubmitMessageButton.MouseButton1Down:Connect(SubmitMessage) | |
81 | ||
82 | --Generate Character | |
83 | - | lleg.Transparency = 0.5 |
83 | + | |
84 | local core1 = Instance.new("Part") | |
85 | core1.Parent = character | |
86 | core1.Material = ("Neon") | |
87 | core1.Size = Vector3.new(2,2,1) | |
88 | core1.Transparency = 0.3 | |
89 | core1.Anchored = true | |
90 | core1.CanCollide = false | |
91 | - | rleg.Transparency = 0.5 |
91 | + | |
92 | ||
93 | game.Workspace.Camera.CameraSubject = core | |
94 | ||
95 | - | for i,v in pairs(character:GetChildren()) do |
95 | + | |
96 | head.Parent = character | |
97 | - | v.Color = Color3.fromRGB(255,255,255) |
97 | + | |
98 | - | v.Material = ("Glass") |
98 | + | |
99 | head.Transparency = 0.3 | |
100 | head.Anchored = true | |
101 | head.CanCollide = false | |
102 | ||
103 | local larm = Instance.new("Part") | |
104 | larm.Parent = character | |
105 | larm.Material = ("Neon") | |
106 | larm.Size = Vector3.new(1,2,1) | |
107 | larm.Transparency = 0.3 | |
108 | larm.Anchored = true | |
109 | larm.CanCollide = false | |
110 | ||
111 | local rarm = Instance.new("Part") | |
112 | rarm.Parent = character | |
113 | rarm.Material = ("Neon") | |
114 | rarm.Size = Vector3.new(1,2,1) | |
115 | rarm.Transparency = 0.3 | |
116 | rarm.Anchored = true | |
117 | rarm.CanCollide = false | |
118 | ||
119 | local lleg = Instance.new("Part") | |
120 | lleg.Parent = character | |
121 | lleg.Material = ("Neon") | |
122 | lleg.Size = Vector3.new(1,2,1) | |
123 | lleg.Transparency = 0.3 | |
124 | lleg.Anchored = true | |
125 | lleg.CanCollide = false | |
126 | ||
127 | local rleg = Instance.new("Part") | |
128 | rleg.Parent = character | |
129 | rleg.Material = ("Neon") | |
130 | rleg.Size = Vector3.new(1,2,1) | |
131 | rleg.Transparency = 0.3 | |
132 | rleg.Anchored = true | |
133 | rleg.CanCollide = false | |
134 | ||
135 | local mouth = Instance.new("Part") | |
136 | mouth.Parent = character | |
137 | mouth.Material = ("Glass") | |
138 | mouth.Color = Color3.fromRGB(0, 0, 0) | |
139 | mouth.Size = Vector3.new(1.95,0.1,0.05) | |
140 | mouth.Transparency = 0 | |
141 | mouth.Anchored = true | |
142 | mouth.CanCollide = false | |
143 | ||
144 | --Generate Room | |
145 | ||
146 | local RoomHolder = Instance.new("Model") | |
147 | RoomHolder.Parent = game.Workspace | |
148 | ||
149 | local Room1 = Instance.new("Part") | |
150 | Room1.Parent = RoomHolder | |
151 | Room1.Position = Vector3.new(20000,20000,20000) | |
152 | Room1.Size = Vector3.new(200,1,200) | |
153 | Room1.Color = Color3.fromRGB(0, 0, 0) | |
154 | Room1.Material = ("Neon") | |
155 | Room1.Anchored = true | |
156 | ||
157 | local Room2 = Instance.new("Part") | |
158 | Room2.Parent = RoomHolder | |
159 | Room2.Position = Vector3.new(20000,20100,20000) | |
160 | Room2.Size = Vector3.new(200,1,200) | |
161 | Room2.Color = Color3.fromRGB(0, 0, 0) | |
162 | Room2.Material = ("Neon") | |
163 | Room2.Anchored = true | |
164 | ||
165 | local Room3 = Instance.new("Part") | |
166 | Room3.Parent = RoomHolder | |
167 | Room3.Position = Vector3.new(19900,20000,20000) | |
168 | Room3.Size = Vector3.new(1,200,200) | |
169 | Room3.Color = Color3.fromRGB(0, 0, 0) | |
170 | Room3.Material = ("Neon") | |
171 | Room3.Anchored = true | |
172 | ||
173 | local Room4 = Instance.new("Part") | |
174 | Room4.Parent = RoomHolder | |
175 | Room4.Position = Vector3.new(20100,20000,20000) | |
176 | Room4.Size = Vector3.new(1,200,200) | |
177 | Room4.Color = Color3.fromRGB(0, 0, 0) | |
178 | Room4.Material = ("Neon") | |
179 | Room4.Anchored = true | |
180 | ||
181 | local Room5 = Instance.new("Part") | |
182 | Room5.Parent = RoomHolder | |
183 | Room5.Position = Vector3.new(20000,20000,20100) | |
184 | Room5.Size = Vector3.new(200,200,1) | |
185 | - | if input.KeyCode == Enum.KeyCode.Z then |
185 | + | Room5.Color = Color3.fromRGB(0, 0, 0) |
186 | - | for i,v in pairs(character:GetChildren()) do |
186 | + | Room5.Material = ("Neon") |
187 | - | if v.ClassName == ("Part") then |
187 | + | Room5.Anchored = true |
188 | - | v.Material = ("Neon") |
188 | + | |
189 | local Room6 = Instance.new("Part") | |
190 | Room6.Parent = RoomHolder | |
191 | Room6.Position = Vector3.new(20000,20000,19900) | |
192 | Room6.Size = Vector3.new(200,200,1) | |
193 | Room6.Color = Color3.fromRGB(0, 0, 0) | |
194 | Room6.Material = ("Neon") | |
195 | - | if input.KeyCode == Enum.KeyCode.X then |
195 | + | Room6.Anchored = true |
196 | - | for i,v in pairs(character:GetChildren()) do |
196 | + | |
197 | - | if v.ClassName == ("Part") then |
197 | + | |
198 | - | v.Material = ("Glass") |
198 | + | --Movement |
199 | ||
200 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
201 | if input.KeyCode == Enum.KeyCode.E then | |
202 | moveup = 1 | |
203 | end | |
204 | end) | |
205 | ||
206 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
207 | if input.KeyCode == Enum.KeyCode.E then | |
208 | moveup = 0 | |
209 | end | |
210 | - | core1.Transparency = 0.5 |
210 | + | |
211 | ||
212 | ||
213 | ||
214 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
215 | if input.KeyCode == Enum.KeyCode.Q then | |
216 | movedown = 1 | |
217 | - | head = Instance.new("Part") |
217 | + | |
218 | end) | |
219 | ||
220 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
221 | - | head.Transparency = 0.5 |
221 | + | |
222 | movedown = 0 | |
223 | end | |
224 | end) | |
225 | - | larm = Instance.new("Part") |
225 | + | |
226 | ||
227 | ||
228 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
229 | - | larm.Transparency = 0.5 |
229 | + | |
230 | moveforward = 1 | |
231 | end | |
232 | end) | |
233 | - | rarm = Instance.new("Part") |
233 | + | |
234 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
235 | if input.KeyCode == Enum.KeyCode.W then | |
236 | moveforward = 0 | |
237 | - | rarm.Transparency = 0.5 |
237 | + | |
238 | end) | |
239 | ||
240 | ||
241 | - | lleg = Instance.new("Part") |
241 | + | |
242 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
243 | if input.KeyCode == Enum.KeyCode.S then | |
244 | movebackward = 1 | |
245 | - | lleg.Transparency = 0.5 |
245 | + | |
246 | end) | |
247 | ||
248 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
249 | - | rleg = Instance.new("Part") |
249 | + | |
250 | movebackward = 0 | |
251 | end | |
252 | end) | |
253 | - | rleg.Transparency = 0.5 |
253 | + | |
254 | ||
255 | ||
256 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
257 | if input.KeyCode == Enum.KeyCode.A then | |
258 | moveleft = 1 | |
259 | end | |
260 | end) | |
261 | ||
262 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
263 | if input.KeyCode == Enum.KeyCode.A then | |
264 | moveleft = 0 | |
265 | end | |
266 | end) | |
267 | ||
268 | ||
269 | ||
270 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
271 | if input.KeyCode == Enum.KeyCode.D then | |
272 | moveright = 1 | |
273 | end | |
274 | end) | |
275 | ||
276 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
277 | if input.KeyCode == Enum.KeyCode.D then | |
278 | moveright = 0 | |
279 | end | |
280 | end) | |
281 | ||
282 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
283 | if input.KeyCode == Enum.KeyCode.P then | |
284 | core.Position = Vector3.new(20000, 20000, 20000) | |
285 | end | |
286 | end) | |
287 | ||
288 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
289 | if input.KeyCode == Enum.KeyCode.M then | |
290 | mouth.Size = Vector3.new(1000, 1000, 1000) | |
291 | end | |
292 | end) | |
293 | ||
294 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
295 | if input.KeyCode == Enum.KeyCode.R then | |
296 | local core1 = Instance.new("Part") | |
297 | core1.Parent = character | |
298 | core1.Material = ("Neon") | |
299 | core1.Size = Vector3.new(2,2,1) | |
300 | core1.Transparency = 0.3 | |
301 | core1.Anchored = true | |
302 | core1.CanCollide = false | |
303 | core = core1 | |
304 | ||
305 | game.Workspace.Camera.CameraSubject = core | |
306 | ||
307 | local head = Instance.new("Part") | |
308 | head.Parent = character | |
309 | head.Material = ("Neon") | |
310 | head.Size = Vector3.new(1,1,1) | |
311 | head.Transparency = 0.3 | |
312 | head.Anchored = true | |
313 | head.CanCollide = false | |
314 | ||
315 | local larm = Instance.new("Part") | |
316 | larm.Parent = character | |
317 | larm.Material = ("Neon") | |
318 | larm.Size = Vector3.new(1,2,1) | |
319 | larm.Transparency = 0.3 | |
320 | larm.Anchored = true | |
321 | larm.CanCollide = false | |
322 | ||
323 | local rarm = Instance.new("Part") | |
324 | rarm.Parent = character | |
325 | rarm.Material = ("Neon") | |
326 | rarm.Size = Vector3.new(1,2,1) | |
327 | rarm.Transparency = 0.3 | |
328 | rarm.Anchored = true | |
329 | rarm.CanCollide = false | |
330 | ||
331 | local lleg = Instance.new("Part") | |
332 | lleg.Parent = character | |
333 | lleg.Material = ("Neon") | |
334 | lleg.Size = Vector3.new(1,2,1) | |
335 | lleg.Transparency = 0.3 | |
336 | lleg.Anchored = true | |
337 | lleg.CanCollide = false | |
338 | ||
339 | local rleg = Instance.new("Part") | |
340 | rleg.Parent = character | |
341 | rleg.Material = ("Neon") | |
342 | rleg.Size = Vector3.new(1,2,1) | |
343 | rleg.Transparency = 0.3 | |
344 | rleg.Anchored = true | |
345 | rleg.CanCollide = false | |
346 | ||
347 | local mouth = Instance.new("Part") | |
348 | mouth.Parent = character | |
349 | mouth.Material = ("Glass") | |
350 | mouth.Color = Color3.fromRGB(0, 0, 0) | |
351 | mouth.Size = Vector3.new(1.95,0.1,0.05) | |
352 | mouth.Transparency = 0 | |
353 | mouth.Anchored = true | |
354 | mouth.CanCollide = true | |
355 | end | |
356 | end) | |
357 | ||
358 | --Eat | |
359 | ||
360 | function EatObject(Object) | |
361 | print(1) | |
362 | if Object.ClassName ~= ("Terrain") then | |
363 | if Object.Parent:FindFirstChild("Torso") ~= nil then | |
364 | local p = Instance.new("Part") | |
365 | p.Position = Vector3.new(20000,20010,20000) | |
366 | Object.Parent.Torso.CFrame = p.CFrame | |
367 | p:Destroy() | |
368 | else | |
369 | Object.Position = Vector3.new(20000,20010,20000) | |
370 | end | |
371 | end | |
372 | end | |
373 | ||
374 | mouth.Touched:Connect(EatObject) | |
375 | ||
376 | function closemouth(Object) | |
377 | mouth.Size = Vector3.new(1.95, Object.Size.Y, 0.05) | |
378 | for i = 1, Object.Size.Y * 10 do | |
379 | wait(0.1) | |
380 | mouth.Size = Vector3.new(1.95, i / 10 , 0.05) | |
381 | end | |
382 | ||
383 | end | |
384 | ||
385 | ||
386 | while true do | |
387 | wait(0.01) | |
388 | if core == nil or core.Parent == nil then | |
389 | local core2 = Instance.new("Part") | |
390 | core2.Parent = character | |
391 | core2.Material = ("Neon") | |
392 | core2.Size = Vector3.new(3,3,3) | |
393 | core2.Transparency = 0.5 | |
394 | core2.Anchored = true | |
395 | core2.Shape = ("Ball") | |
396 | core = core2 | |
397 | game.Workspace.Camera.CameraSubject = core | |
398 | end | |
399 | if core.Parent ~= character then | |
400 | core.Parent = character | |
401 | end | |
402 | if moveup == 1 then | |
403 | core.CFrame = core.CFrame + core.CFrame.upVector | |
404 | end | |
405 | if movedown == 1 then | |
406 | core.CFrame = core.CFrame - core.CFrame.upVector | |
407 | end | |
408 | ||
409 | if moveforward == 1 then | |
410 | core.CFrame = core.CFrame + core.CFrame.lookVector | |
411 | end | |
412 | if movebackward == 1 then | |
413 | core.CFrame = core.CFrame - core.CFrame.lookVector | |
414 | end | |
415 | if moveright == 1 then | |
416 | core.CFrame = core.CFrame + core.CFrame.rightVector | |
417 | end | |
418 | if moveleft == 1 then | |
419 | core.CFrame = core.CFrame - core.CFrame.rightVector | |
420 | end | |
421 | ||
422 | co = core.Position | |
423 | core.CFrame = mouse.Hit | |
424 | core.Position = co | |
425 | ||
426 | head.CFrame = core.CFrame + (core.CFrame.upVector * 1.5) | |
427 | ||
428 | rarm.CFrame = core.CFrame + (core.CFrame.rightVector * 1.5) | |
429 | larm.CFrame = core.CFrame - (core.CFrame.rightVector * 1.5) | |
430 | ||
431 | rleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) + (core.CFrame.rightVector * 0.5) | |
432 | lleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) - (core.CFrame.rightVector * 0.5) | |
433 | ||
434 | mouth.CFrame = core.CFrame + (core.CFrame.lookVector * -0.6) | |
435 | ||
436 | if RoomHolder == nil or Room1 == nil or Room2 == nil or Room3 == nil or Room4 == nil or Room5 == nil or Room6 == nil then | |
437 | if RoomHolder ~= nil then | |
438 | RoomHolder:Destroy() | |
439 | end | |
440 | ||
441 | local RoomHolder = Instance.new("Model") | |
442 | RoomHolder.Parent = game.Workspace | |
443 | ||
444 | local Room1 = Instance.new("Part") | |
445 | Room1.Parent = RoomHolder | |
446 | Room1.Position = Vector3.new(20000,20000,20000) | |
447 | Room1.Size = Vector3.new(200,1,200) | |
448 | Room1.Color = Color3.fromRGB(0, 0, 0) | |
449 | Room1.Material = ("Neon") | |
450 | Room1.Anchored = true | |
451 | ||
452 | local Room2 = Instance.new("Part") | |
453 | Room2.Parent = RoomHolder | |
454 | Room2.Position = Vector3.new(20000,20100,20000) | |
455 | Room2.Size = Vector3.new(200,1,200) | |
456 | Room2.Color = Color3.fromRGB(0, 0, 0) | |
457 | Room2.Material = ("Neon") | |
458 | Room2.Anchored = true | |
459 | ||
460 | local Room3 = Instance.new("Part") | |
461 | Room3.Parent = RoomHolder | |
462 | Room3.Position = Vector3.new(19900,20000,20000) | |
463 | Room3.Size = Vector3.new(1,200,200) | |
464 | Room3.Color = Color3.fromRGB(0, 0, 0) | |
465 | Room3.Material = ("Neon") | |
466 | Room3.Anchored = true | |
467 | ||
468 | local Room4 = Instance.new("Part") | |
469 | Room4.Parent = RoomHolder | |
470 | Room4.Position = Vector3.new(20100,20000,20000) | |
471 | Room4.Size = Vector3.new(1,200,200) | |
472 | Room4.Color = Color3.fromRGB(0, 0, 0) | |
473 | Room4.Material = ("Neon") | |
474 | Room4.Anchored = true | |
475 | ||
476 | local Room5 = Instance.new("Part") | |
477 | Room5.Parent = RoomHolder | |
478 | Room5.Position = Vector3.new(20000,20000,20100) | |
479 | Room5.Size = Vector3.new(200,200,1) | |
480 | Room5.Color = Color3.fromRGB(0, 0, 0) | |
481 | Room5.Material = ("Neon") | |
482 | Room5.Anchored = true | |
483 | ||
484 | local Room6 = Instance.new("Part") | |
485 | Room6.Parent = RoomHolder | |
486 | Room6.Position = Vector3.new(20000,20000,19900) | |
487 | Room6.Size = Vector3.new(200,200,1) | |
488 | Room6.Color = Color3.fromRGB(0, 0, 0) | |
489 | Room6.Material = ("Neon") | |
490 | Room6.Anchored = true | |
491 | ||
492 | ||
493 | end | |
494 | ||
495 | ||
496 | if core ~= nil then | |
497 | coreframe = core.CFrame | |
498 | end | |
499 | if core == nil then | |
500 | local core1 = Instance.new("Part") | |
501 | core1.Parent = character | |
502 | core1.Material = ("Neon") | |
503 | core1.Size = Vector3.new(2,2,1) | |
504 | core1.Transparency = 0.5 | |
505 | core1.Anchored = true | |
506 | core1.CanCollide = false | |
507 | core1.CFrame = coreframe | |
508 | core = core1 | |
509 | end | |
510 | if c:FindFirstChild("ForceField") == nil then | |
511 | p = Instance.new("ForceField") | |
512 | p.Parent = c | |
513 | p.Visible = false | |
514 | end | |
515 | --c.Humanoid.MaxHealth = math.huge | |
516 | --c.Humanoid.Health = math.huge | |
517 | end |