local F=Instance.new("\080\097\114\116")do F.Name="\082\111\099\107\101\116"F.FormFactor=Enum.FormFactor.Custom F.Size=ROCKET_PART_SIZE F.CanCollide=false local y=Instance.new("\083\112\101\099\105\097\108\077\101\115\104",F)y.MeshId=MISSILE_MESH_ID y.Scale=MISSILE_MESH_SCALE local t=Instance.new("\070\105\114\101",F)t.Heat=100 t.Size=200 if ROCKET_TRAIL==true then local y=script.TrailEffect.TrailEffect:Clone()y.Enabled=true y.Parent=F end local n=Instance.new("\066\111\100\121\070\111\114\099\101",F)n.Name="\065\110\116\105\103\114\097\118\105\116\121"n.Force=Vector3.new(0,F:GetMass()*GRAVITY_ACCELERATION,0)local j=SwooshSound:Clone()j.Parent=F local M=BoomSound:Clone()M.PlayOnRemove=true M.Parent=F local a=Instance.new("\079\098\106\101\099\116\086\097\108\117\101",F)a.Value=MyPlayer a.Name="\099\114\101\097\116\111\114"local R=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",a)R.Value=Tool.TextureId R.Name="\105\099\111\110"local i=RocketScript:Clone()i.Parent=F 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 = 100
	fire.Size = 200

	-- Add smoke
	if ROCKET_TRAIL == true then
		local trail = script.TrailEffect.TrailEffect:Clone()
		trail.Enabled = true
		trail.Parent = Rocket
	end
	
	-- 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
