Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I get this model to spawn correctly?

I have a model that I am cloning where a rocket lands. However it doesn't spawn how I want it too, instead it spawns on top of parts as if it's colliding.

https://gyazo.com/364b98909d3ae478b0273f208728cc60

Any ideas? I want the dummy inside the cage.


		local blockexplode = game.Workspace["Electric cage2"]:Clone()
		blockexplode.Parent = game.Workspace	
		local rockpos = Rocket.Position
		local x,y,z = rockpos.x, rockpos.y, rockpos.z
		blockexplode:MoveTo(Vector3.new(x,y - 10, z))	

1 comment

0

Model.PrimaryPart.CFrame = CFrame?

1 answer


blockexplode.Part.Touched:connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		
		hit.Parent.HumanoidRootPart.CFrame=cagepart.CFrame
--make a cage part in the model for where you want the dummy to go, and when the cage --touches the dummy it should put the player hit into the cage part
	
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.