of     2   
chevron_rightchevron_rightchevron_right

Phyclops
#140998913Monday, July 21, 2014 12:04 AM GMT

local bin = script.Parent local shelter = game.ReplicatedStorage.Shelter local amt = bin:FindFirstChild("Amount") local ghost = nil function makeGhost() ghost = shelter:clone() ghost.Parent = game.Workspace.CurrentCamera ghost:MakeJoints() ghost.PrimaryPart=ghost.Primary local g = ghost:GetChildren() ghost:SetPrimaryPartCFrame(CFrame.Angles(bin.Parent.Torso.CFrame)) -- ERROR LINE for i = 1,#g do if g[i]:IsA("Part") then g[i].Transparency = 0.7 g[i].BrickColor = BrickColor.new("Bright green") g[i].CanCollide = false end end end function onButton1Down(mouse) ghost:Destroy() local model = shelter:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.Hit.p) local g = model:GetChildren() for i = 1, #g do if g[i]:IsA("Part") then g[i].Anchored = true end end amt.Value = amt.Value - 1 if amt.Value == 0 then bin:Destroy() if ghost then ghost:Destroy() ghost = nil end end makeGhost() end bin.Equipped:connect(function(mouse) makeGhost() mouse.Move:connect(function() if ghost then mouse.TargetFilter = ghost ghost:MoveTo(mouse.Hit.p) end end) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end) bin.Unequipped:connect(function() if ghost then ghost:Destroy() end end)
Notunknown99
#140999532Monday, July 21, 2014 12:11 AM GMT

CFrame.Angles(bin.Parent.Torso.CFrame) bin.Parent.Torso.CFrame - bin.Parent.Torso.Position
Phyclops
#140999779Monday, July 21, 2014 12:14 AM GMT

Notunk, ?
Phyclops
#141000292Monday, July 21, 2014 12:19 AM GMT

NOO HE WENT OFFLINE oh my god please someone i need help on this
SenseiWarrior
#141000377Monday, July 21, 2014 12:19 AM GMT

bin.Parent.Torso.CFrame.p
Phyclops
#141000667Monday, July 21, 2014 12:23 AM GMT

SAVE ME SENSEI YOU ARE MY ONLY HOPE 01:22:11.555 - Players.Player1.Backpack.Geo.Spawner:13: bad argument #3 to 'Angles' (number expected, got no value) ONCE AGAIN
Phyclops
#141000928Monday, July 21, 2014 12:26 AM GMT

NO PLEASE DON'T IGNORE THIS THREAD NO PLEASE
SenseiWarrior
#141001017Monday, July 21, 2014 12:27 AM GMT

Are you trying to rotate the model?
Phyclops
#141001049Monday, July 21, 2014 12:27 AM GMT

Well, I'm trying to make it so the model is facing the same direction as my torso.
Casualist
#141001059Monday, July 21, 2014 12:27 AM GMT

Replace the line that errors with this: ghost:SetPrimaryPartCFrame(bin.Parent.Torso.CFrame - bin.Parent.Torso.CFrame.p) -- ERROR LINE
Phyclops
#141001413Monday, July 21, 2014 12:32 AM GMT

@Casu https://twitter.com/RokinRonan/status/491017522909827073/photo/1 I tried it and this happens. The model is upside down and at an angle.
Notunknown99
#141001795Monday, July 21, 2014 12:36 AM GMT

The line with the error, replace CFrame.Angles(bin.Parent.Torso.CFrame) with bin.Parent.Torso.CFrame - bin.Parent.Torso.Position
Phyclops
#141001800Monday, July 21, 2014 12:36 AM GMT

SAVE ME SENSEI OR WHOEVER
Phyclops
#141001902Monday, July 21, 2014 12:37 AM GMT

@notunknown did the same thing as in the previous screenshot i posted
Notunknown99
#141002012Monday, July 21, 2014 12:38 AM GMT

Set the primary part to something not rotated :)
Phyclops
#141002323Monday, July 21, 2014 12:41 AM GMT

Ah, no longer tilted, you are genius omg but it is still not facing my torso position instead, it changes the rotation every time i place a new shelter :/
Notunknown99
#141002457Monday, July 21, 2014 12:43 AM GMT

Create a part called "MainPart" and use that as the PrimaryPart.
Phyclops
#141002767Monday, July 21, 2014 12:46 AM GMT

Just did it, but what difference should that make? It made no difference. Would you like me to link you to a place where you can see what it does for yourself?
Phyclops
#141003186Monday, July 21, 2014 12:51 AM GMT

oh. now he's offline damnit DASJCASDASD
SenseiWarrior
#141003637Monday, July 21, 2014 12:56 AM GMT

What are you trying to do
Phyclops
#141003841Monday, July 21, 2014 12:59 AM GMT

Basically, I want it like this: http://youtu.be/NvQJvYAm92Y?t=2m22s You see how the model is always in front of his character when he's placing it? Like that.
Phyclops
#141004265Monday, July 21, 2014 1:03 AM GMT

anyone
Notunknown99
#141004334Monday, July 21, 2014 1:04 AM GMT

What do you set the primary part to?
Phyclops
#141004648Monday, July 21, 2014 1:07 AM GMT

uploaded screenshot https://twitter.com/RokinRonan/status/491026556257828864/photo/1 invisible brick in center of model
Phyclops
#141005183Monday, July 21, 2014 1:12 AM GMT

this is the part where the thread becomes inactive

    of     2   
chevron_rightchevron_rightchevron_right