local c=Instance.new("\080\097\114\116")do c.Name="\082\111\099\107\101\116"c.FormFactor=Enum.FormFactor.Custom c.Size=ROCKET_PART_SIZE c.CanCollide=false local u=Instance.new("\083\112\101\099\105\097\108\077\101\115\104",c)u.MeshId=MISSILE_MESH_ID u.Scale=MISSILE_MESH_SCALE local p=Instance.new("\070\105\114\101",c)p.Heat=5 p.Size=2 local K=Instance.new("\066\111\100\121\070\111\114\099\101",c)K.Name="\065\110\116\105\103\114\097\118\105\116\121"K.force=Vector3.new(0,c:GetMass()*GRAVITY_ACCELERATION,0)local C=SwooshSound:Clone()C.Parent=c local L=BoomSound:Clone()L.PlayOnRemove=true L.Parent=c local Y=Instance.new("\079\098\106\101\099\116\086\097\108\117\101",c)Y.Value=MyPlayer Y.Name="\099\114\101\097\116\111\114"local X=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",Y)X.Value=Tool.TextureId X.Name="\105\099\111\110"local i=RocketScript:Clone()i.Parent=c i.Disabled=false end

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
