View difference between Paste ID: RCTPBPGW and mn95a5kz
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
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://188291833"
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 pa = Instance.new("ParticleEmitter", torso)
38
		pa.Texture = "rbxassetid://31972844"
39
		pa.Size = NumberSequence.new(10)
40
		pa.Lifetime = NumberRange.new(5,10)
41
		pa.Rate = 50
42
		pa.VelocitySpread = 45
43
		pa.Speed = NumberRange.new(10)
44
		
45
		local stars = Instance.new("Sound", torso)
46
		stars.Volume = 100
47
		stars.SoundId = "rbxassetid://185617544"
48
		stars:Play()
49
        local clock = Instance.new("Sound", torso)
50
		clock.Volume = 100
51
		clock.SoundId = "rbxassetid://185617544"
52
		clock:Play()
53
		if explode == true then
54
		local ex = Instance.new("Sound", torso)
55
		ex.Volume = 1
56
		ex.SoundId = "rbxassetid://138186576"
57
		ex.TimePosition = 23.5
58
		ex:Play()
59
		for i = 1,countdown do
60
		tool.Name = "Exploding in " .. countdown - i .. "."
61
		wait(1) 
62
		end
63
		tool.Name = "Chenning Stars"
64
		local explosion = Instance.new("Explosion", torso)
65
		explosion.Position = torso.Position
66
		ex.TimePosition = 0.4
67
		ex:Play()
68
		stars:Stop()
69
		torso.Parent:BreakJoints()
70
		pe:Destroy()
71
		end
72
		end
73
		end
74
	end)
75
end)