I'm thinking of game.ServerStorage.Sentry:Clone().Parent = game.Workspace.Engineer.Torso.Position but it isn't working.
If anyone can help me complete this script it would be greatly appreciated.
So this is the one that works with a model:
workspace.DescendantAdded:Connect(function(descendant) if descendant.Name=="Engineer" then game.ServerStorage.Sentry:Clone().Parent = descendant.Torso end descendant.Torso.Sentry.PrimaryPart.CFrame = CFrame.new(thing.Torso.CFrame.X+5,thing.Torso.CFrame.Y,thing.Torso.CFrame.Z) end)
This will look for an engineer if one was added, but if it already exists, then you can just have the script be:
local thing = workspace:FindFirstChild("Engineer") game.ServerStorage.Sentry:Clone().Parent = thing.Torso thing.Torso.Sentry.PrimaryPart.CFrame = CFrame.new(thing.Torso.CFrame.X+5,thing.Torso.CFrame.Y,thing.Torso.CFrame.Z)
Just change the CFrame.new(x,y,z) to whatever makes it go in front of your model
And this is the one that works with a single part:
workspace.DescendantAdded:Connect(function(descendant) if descendant.Name=="Engineer" then game.ServerStorage.Sentry:Clone().Parent = descendant.Torso end descendant.Torso.Sentry.CFrame = CFrame.new(thing.Torso.CFrame.X+5,thing.Torso.CFrame.Y,thing.Torso.CFrame.Z) end)
This will look for an engineer if one was added, but if it already exists, then you can just have the script be:
local thing = workspace:FindFirstChild("Engineer") game.ServerStorage.Sentry:Clone().Parent = thing.Torso thing.Torso.Sentry.CFrame = CFrame.new(thing.Torso.CFrame.X+5,thing.Torso.CFrame.Y,thing.Torso.CFrame.Z)
Just change the CFrame.new(x,y,z) to whatever makes it go in front of your model