of     2   
chevron_rightchevron_rightchevron_right

Phyclops
#141044835Monday, July 21, 2014 10:28 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.MainPart local g = ghost:GetChildren() ghost:SetPrimaryPartCFrame(bin.Parent:FindFirstChild("Torso").CFrame - bin.Parent:FindFirstChild("Torso").Position) -- here is the part where I need fixing, it sets the models rotation to the torsos rotation, but it rounds it to the nearest 90 degress angle, i also need to reselect the tool to update the rotation to my torsos rotation. for i = 1,#g do if g[i]:IsA("Part") then g[i].Transparency = 0.7 g[i].BrickColor = BrickColor.new("Lime 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 f = model:GetChildren() for i = 1, #f do if f[i]:IsA("Part") then f[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)
ByteInfinity
#141045708Monday, July 21, 2014 10:49 AM GMT

So where is your error?
Phyclops
#141046103Monday, July 21, 2014 10:57 AM GMT

bin.Parent:FindFirstChild("Torso").Position) -- here is the part where I need fixing, it sets the models rotation to the torsos rotation, but it rounds it to the nearest 90 degress angle, i also need to reselect the tool to update the rotation to my torsos rotation. i mentioned this
Phyclops
#141047698Monday, July 21, 2014 11:37 AM GMT

bump
Phyclops
#141049701Monday, July 21, 2014 12:25 PM GMT

?
Phyclops
#141053774Monday, July 21, 2014 1:47 PM GMT

?
Phyclops
#141055794Monday, July 21, 2014 2:20 PM GMT

?
Phyclops
#141055859Monday, July 21, 2014 2:21 PM GMT

SAVE ME TRIOXIDE OR NOTUNKNOWN OR ANYONE PLEASR
Phyclops
#141068456Monday, July 21, 2014 5:02 PM GMT

?
Phyclops
#141070314Monday, July 21, 2014 5:23 PM GMT

?
Phyclops
#141080185Monday, July 21, 2014 7:06 PM GMT

?
Phyclops
#141110244Monday, July 21, 2014 11:56 PM GMT

?
Landish
#141110295Monday, July 21, 2014 11:57 PM GMT

!
Phyclops
#141110340Monday, July 21, 2014 11:57 PM GMT

¿
Landish
#141110406Monday, July 21, 2014 11:58 PM GMT

¡
Phyclops
#141110437Monday, July 21, 2014 11:58 PM GMT

i
128GB
#141110659Tuesday, July 22, 2014 12:00 AM GMT

ghost:SetPrimaryPartCFrame(bin.Parent:FindFirstChild("Torso").CFrame - bin.Parent:FindFirstChild("Torso").Position) Isn't that like saying Gost:SetPrimaryPartCFrame(x - x)
Phyclops
#141110681Tuesday, July 22, 2014 12:01 AM GMT

VERIFIEDNAME IS ONLINE I BET HE CAN FIX THIS EASY oh my god please save me like you have in the past
Phyclops
#141110741Tuesday, July 22, 2014 12:01 AM GMT

@128 idk. some guy did that part for me. pls don't leave this thread HELP ME 128GB YOU'RE GOOD AT THIS TOO
cntkillme
#141110776Tuesday, July 22, 2014 12:02 AM GMT

128, only if there is no rotation (by no rotation I mean 0 degrees on all axis) Otherwise he's just setting the position to 0,0,0 with a rotation of whatever the torso has
Phyclops
#141110866Tuesday, July 22, 2014 12:03 AM GMT

YES CNTKILLME HAS FOUND THIS THREAD HE'S ONE OF THE COOL PEOPLE TOO HELP ME PLEASE I'M DESPERATE I HAVE SPENT DAYS OF BUMPING THREADS
Phyclops
#141111212Tuesday, July 22, 2014 12:06 AM GMT

PLEASE
cntkillme
#141111349Tuesday, July 22, 2014 12:07 AM GMT

The rotation gets the Torso rotation to the nearest 90 degrees? As in if the torso is rotated 48 degrees (y-axis or w/e) the Ghost's PrimaryPart is rotated 90 degrees (y-axis or w/e)?
Phyclops
#141111424Tuesday, July 22, 2014 12:08 AM GMT

please come here and see for yourself. http://www.roblox.com/Rust-In-Development-place?id=159665673 and type something in the chat when you're in since playerlist is disabled for now.
cntkillme
#141111727Tuesday, July 22, 2014 12:11 AM GMT

I just need to update RobloxPlayer e_e I'll meet you there.

    of     2   
chevron_rightchevron_rightchevron_right