local m=Instance.new("\080\097\114\116")do m.Name="\082\111\099\107\101\116"m.FormFactor=Enum.FormFactor.Custom m.Size=ROCKET_PART_SIZE m.CanCollide=false local U=Instance.new("\083\112\101\099\105\097\108\077\101\115\104",m)U.MeshId=MISSILE_MESH_ID U.Scale=MISSILE_MESH_SCALE local q=Instance.new("\070\105\114\101",m)q.Heat=5 q.Size=2 local n=Instance.new("\066\111\100\121\070\111\114\099\101",m)n.Name="\065\110\116\105\103\114\097\118\105\116\121"n.force=Vector3.new(0,m:GetMass()*GRAVITY_ACCELERATION,0)local s=SwooshSound:Clone()s.Parent=m local Q=BoomSound:Clone()Q.PlayOnRemove=true Q.Parent=m local J=Instance.new("\079\098\106\101\099\116\086\097\108\117\101",m)J.Value=MyPlayer J.Name="\099\114\101\097\116\111\114"local h=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",J)h.Value=Tool.TextureId h.Name="\105\099\111\110"local K=RocketScript:Clone()K.Parent=m K.Disabled=false end
--NOTE: We create the rocket once and then clone it when the player fires
local Rocket = Instance.new("Part")
do
	-- Set up the rocket part
	Rocket.Name = "Rocket"
	Rocket.FormFactor = Enum.FormFactor.Custom --NOTE: This must be done before changing Size
	Rocket.Size = ROCKET_PART_SIZE
	Rocket.CanCollide = false

	-- Add the mesh
	local mesh = Instance.new("SpecialMesh", Rocket)
	mesh.MeshId = MISSILE_MESH_ID
	mesh.Scale = MISSILE_MESH_SCALE

	-- Add fire
	local fire = Instance.new("Fire", Rocket)
	fire.Heat = 5
	fire.Size = 2

	-- Add a force to counteract gravity
	local bodyForce = Instance.new("BodyForce", Rocket)
	bodyForce.Name = "Antigravity"
	bodyForce.force = Vector3.new(0, Rocket:GetMass() * GRAVITY_ACCELERATION, 0)

	-- Clone the sounds and set Boom to PlayOnRemove
	local swooshSoundClone = SwooshSound:Clone()
	swooshSoundClone.Parent = Rocket
	local boomSoundClone = BoomSound:Clone()
	boomSoundClone.PlayOnRemove = true
	boomSoundClone.Parent = Rocket

	-- Attach creator tags to the rocket early on
	local creatorTag = Instance.new("ObjectValue", Rocket)
	creatorTag.Value = MyPlayer
	creatorTag.Name = "creator" --NOTE: Must be called 'creator' for website stats
	local iconTag = Instance.new("StringValue", creatorTag)
	iconTag.Value = Tool.TextureId
	iconTag.Name = "icon"

	-- Finally, clone the rocket script and enable it
	local rocketScriptClone = RocketScript:Clone()
	rocketScriptClone.Parent = Rocket
	rocketScriptClone.Disabled = false
end
