SHOW:
|
|
- or go back to the newest paste.
1 | - | --//Local Script Inside folder |
1 | + | image = "http://www.roblox.com/asset/?id=601962439" |
2 | - | --//Variables |
2 | + | image2 = "http://www.roblox.com/asset/?id=210486687" |
3 | - | local plr = game.Players.LocalPlayer |
3 | + | image3 = "http://www.roblox.com/asset/?id=947995509" |
4 | - | local tool = script.Parent.Parent |
4 | + | image4 = image |
5 | - | local hole = tool.Hole |
5 | + | |
6 | - | local handle = tool.Handle |
6 | + | for i = 30,1,-1 do |
7 | - | local debounce = true |
7 | + | msg = Instance.new("Message",workspace) |
8 | - | local config = tool.Config |
8 | + | msg.Text = "The Moana Invasion Will Begin in "..i.." >:D" |
9 | - | local range = config.Range |
9 | + | wait(1) |
10 | - | local dmg = config.Damage |
10 | + | msg:Destroy() |
11 | - | local coolDown = config.CoolDown |
11 | + | wait(0) |
12 | - | local clips = config.Clips |
12 | + | |
13 | - | local ammo = config.Ammo |
13 | + | |
14 | - | local maxAmmo = config.MaxAmmo |
14 | + | sky = coroutine.create(function() |
15 | - | local allowTracing = config.AllowTracing |
15 | + | while wait(0.3) do |
16 | s = Instance.new("Sky",game.Lighting) | |
17 | - | --//Events |
17 | + | s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = image,image,image,image,image,image |
18 | - | tool.Equipped:connect(function(mouse) |
18 | + | s.CelestialBodiesShown = false |
19 | - | tool.Activated:connect(function() |
19 | + | |
20 | - | if debounce then |
20 | + | |
21 | - | --//Doesn't allow spamming |
21 | + | |
22 | - | debounce = false |
22 | + | sound = coroutine.create(function() |
23 | - | --//Ray Get, Set |
23 | + | a = Instance.new("Sound",workspace) |
24 | - | local ray = Ray.new(hole.CFrame.p, (mouse.Hit.p - hole.CFrame.p) * range.Value) |
24 | + | a.SoundId = "rbxassetid://880159023" |
25 | - | local hit, position = workspace:FindPartOnRay(ray, plr.Character, false, true) |
25 | + | a.Name = "RAINING MEN" |
26 | - | |
26 | + | a.Volume = 58359 |
27 | - | --//Bullet Tracing |
27 | + | a.Looped = true |
28 | - | if allowTracing.Value == true then |
28 | + | a:Play() |
29 | - | --//Make part |
29 | + | local d = Instance.new("DistortionSoundEffect",a) |
30 | - | local trace = Instance.new("Part", workspace) |
30 | + | d.Level = 1 |
31 | - | trace.Material = Enum.Material.Neon |
31 | + | while wait(0.2) do |
32 | - | trace.BrickColor = BrickColor.new("Black") |
32 | + | rainin = workspace:FindFirstChild("RAINING MEN") |
33 | - | trace.CanCollide = false |
33 | + | if not rainin then |
34 | - | trace.Anchored = true |
34 | + | a = Instance.new("Sound",workspace) |
35 | - | trace.Transparency = 0.5 |
35 | + | a.SoundId = "rbxassetid://880159023" |
36 | - | |
36 | + | a.Name = "RAINING MEN" |
37 | - | --//Show Direction |
37 | + | a.Volume = 58359 |
38 | - | local distance = (hole.CFrame.p - position).magnitude |
38 | + | a.Looped = true |
39 | - | trace.Size = Vector3.new(0.2, 0.2, distance) |
39 | + | a:Play() |
40 | - | trace.CFrame = CFrame.new(hole.CFrame.p, position) * CFrame.new(0, 0, -distance/2) |
40 | + | local d = Instance.new("DistortionSoundEffect",a) |
41 | - | |
41 | + | d.Level = 1 |
42 | - | --//Remove debris |
42 | + | |
43 | - | game:GetService("Debris"):AddItem(trace, 0.1) |
43 | + | |
44 | - | end |
44 | + | |
45 | - | |
45 | + | |
46 | - | --//Hit Detection |
46 | + | msg = coroutine.create(function() |
47 | - | if hit then |
47 | + | while wait(0.4) do |
48 | - | local humanoid = hit.Parent:FindFirstChild("Humanoid") |
48 | + | msg = Instance.new("Message",workspace) |
49 | - | if humanoid then |
49 | + | msg.Text = "MOANA IS MEME" |
50 | - | if hit.Name == "Head" then |
50 | + | wait(0.4) |
51 | - | --//Double damage on headshots |
51 | + | msg:Destroy() |
52 | - | humanoid:TakeDamage(dmg.Value*2) |
52 | + | |
53 | - | else |
53 | + | end) |
54 | - | --//Normal Damage on body shots |
54 | + | |
55 | - | humanoid:TakeDamage(dmg.Value) |
55 | + | flash = coroutine.create(function() |
56 | - | end |
56 | + | while true do |
57 | - | end |
57 | + | wait(1) |
58 | - | end |
58 | + | image = image2 |
59 | - | |
59 | + | wait(1) |
60 | - | wait(coolDown.Value) |
60 | + | image = image3 |
61 | - | debounce = true |
61 | + | wait(1) |
62 | image = image4 | |
63 | - | end) |
63 | + | end |
64 | end) | |
65 | ||
66 | - | --//Weld script inside folder if gun parts all apart |
66 | + | rain = coroutine.create(function() |
67 | - | local tool = script.Parent.Parent |
67 | + | while wait(10 % 1 * 1e2) do |
68 | part = Instance.new("Part",workspace) | |
69 | - | function Weld(x,y) |
69 | + | part.Name = "Toad" |
70 | - | local W = Instance.new("Weld") |
70 | + | |
71 | - | W.Part0 = x |
71 | + | mesh = Instance.new("SpecialMesh",part) |
72 | - | W.Part1 = y |
72 | + | |
73 | - | local CJ = CFrame.new(x.Position) |
73 | + | sound = Instance.new("Sound",workspace) |
74 | - | local C0 = x.CFrame:inverse()*CJ |
74 | + | |
75 | - | local C1 = y.CFrame:inverse()*CJ |
75 | + | part.CanCollide = false |
76 | - | W.C0 = C0 |
76 | + | part.Size = Vector3.new(440,530,380) |
77 | - | W.C1 = C1 |
77 | + | part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000)) |
78 | - | W.Parent = x |
78 | + | |
79 | mesh.Scale = Vector3.new(10,10,10) | |
80 | mesh.MeshType = "FileMesh" | |
81 | - | function Get(A) |
81 | + | mesh.MeshId = "rbxassetid://441275670" |
82 | - | if A.className == "Part" then |
82 | + | mesh.TextureId = "rbxassetid://441275676" |
83 | - | Weld(tool.Handle, A) |
83 | + | |
84 | - | A.Anchored = false |
84 | + | |
85 | - | else |
85 | + | coroutine.resume(sky) |
86 | - | local C = A:GetChildren() |
86 | + | coroutine.resume(sound) |
87 | - | for i=1, #C do |
87 | + | coroutine.resume(msg) |
88 | - | Get(C[i]) |
88 | + | coroutine.resume(rain) |
89 | coroutine.resume(flash) |