SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Shooting Stars script by mr steal yo bork, idea by "Deyztro" | |
3 | Press on someone to transform them into a meme :) | |
4 | --]] | |
5 | - | explode = false -- if u want them to explode or not |
5 | + | explode = true -- if u want them to explode or not |
6 | local countdown = 7 -- seconds before the explosion if u have it on | |
7 | plr = game.Players.LocalPlayer | |
8 | char = plr.Character | |
9 | hum = char.Humanoid | |
10 | tool = Instance.new("HopperBin", plr.Backpack) | |
11 | tool.Name = "Shoot em" | |
12 | mouse = plr:GetMouse() | |
13 | flyspeed = 20 | |
14 | ||
15 | ||
16 | tool.Selected:connect(function() | |
17 | mouse.Button1Down:connect(function() | |
18 | if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then | |
19 | local torso = mouse.Target.Parent:FindFirstChild("Torso") | |
20 | local thum = torso.Parent:FindFirstChild("Humanoid") | |
21 | if thum ~= hum then | |
22 | ||
23 | local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart") | |
24 | local bv = Instance.new("BodyVelocity") | |
25 | bv.MaxForce = Vector3.new(1e8,1e8,1e8) | |
26 | bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed) | |
27 | bv.Parent = torso | |
28 | ||
29 | local pe = Instance.new("ParticleEmitter", torso) | |
30 | - | pe.Texture = "rbxassetid://32629323" |
30 | + | pe.Texture = "rbxassetid://319908966" |
31 | - | pe.Size = NumberSequence.new(0.5) |
31 | + | pe.Size = NumberSequence.new(10) |
32 | pe.Lifetime = NumberRange.new(5,10) | |
33 | pe.Rate = 50 | |
34 | pe.VelocitySpread = 45 | |
35 | pe.Speed = NumberRange.new(10) | |
36 | ||
37 | local stars = Instance.new("Sound", torso) | |
38 | - | stars.Volume = 1 |
38 | + | stars.Volume = 5000 |
39 | - | stars.SoundId = "rbxassetid://447492777" |
39 | + | stars.SoundId = "rbxassetid://243501843" |
40 | stars.TimePosition = 23.5 | |
41 | stars:Play() | |
42 | if explode == true then | |
43 | local ex = Instance.new("Sound", torso) | |
44 | - | ex.Volume = 1 |
44 | + | ex.Volume = 7000 |
45 | - | ex.SoundId = "rbxassetid://138186576" |
45 | + | ex.SoundId = "rbxassetid://531023877" |
46 | ex.TimePosition = 23.5 | |
47 | ex:Play() | |
48 | for i = 1,countdown do | |
49 | tool.Name = "Exploding in " .. countdown - i .. "." | |
50 | - | wait(1) |
50 | + | wait(1) |
51 | ||
52 | end | |
53 | tool.Name = "Shoot em // by mr steal yo bork" | |
54 | local explosion = Instance.new("Explosion", torso) | |
55 | - | ex.TimePosition = 0.4 |
55 | + | |
56 | ex.TimePosition = 23.5 | |
57 | ex:Play() | |
58 | stars:Stop() | |
59 | torso.Parent:BreakJoints() | |
60 | pe:Destroy() | |
61 | char.Humanoid.MaxHealth = math.huge | |
62 | wait() | |
63 | char.Humanoid.Health = math.huge | |
64 | - | end) |
64 | + | |
65 | end | |
66 | end | |
67 | end) | |
68 | end) | |
69 | shirt = Instance.new("Shirt", char) | |
70 | shirt.Name = "Shirt" | |
71 | pants = Instance.new("Pants", char) | |
72 | pants.Name = "Pants" | |
73 | char.Shirt:Remove() | |
74 | char.Pants:Remove() | |
75 | for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v.Handle:Remove() end end | |
76 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=134969732" | |
77 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=112675727" | |
78 | char.Head.face.Texture = "rbxassetid://288287250" |