Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get this model to spawn correctly?

Asked by 6 years ago

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))
0
`Model.PrimaryPart.CFrame = CFrame`? TheeDeathCaster 2368 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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)
Ad

Answer this question