of     1   

RPD777
#221233524Thursday, July 13, 2017 8:04 PM GMT

I have made a sandwich that is in your backpack that you can hold and eat. When it is in my hand, the rotation is in such a way that the sandwich is vertical, not flat. However when you eat the sandwich I want the rotation to be in a horizontal/flat position, the way you would normally eat a sandwich. I am trying to change the figures of the matrix but I don't know which ones to change. Any help would be greatly appreciated. -----------------------------------Script below---------------------------------------- local Tool = script.Parent; enabled = true function onActivated() if not enabled then return end enabled = false Tool.GripForward = Vector3.new(0,-.759,-.651) Tool.GripPos = Vector3.new(1.5,-.5,.3) Tool.GripRight = Vector3.new(1,0,0) Tool.GripUp = Vector3.new(0,.651,-.759) Tool.Handle.Sound1:Play() wait(3) local h = Tool.Parent:FindFirstChild("Humanoid") if (h ~= nil) then if (h.MaxHealth > h.Health + 5) then h.Health = h.Health + 5 else h.Health = h.MaxHealth end end Tool.GripForward = Vector3.new(0,0,-1) Tool.GripPos = Vector3.new(0,0,0) Tool.GripRight = Vector3.new(1,0,0) Tool.GripUp = Vector3.new(0,1,0) enabled = true end function onEquipped() Tool.Handle.Sound2:play() end script.Parent.Activated:connect(onActivated) script.Parent.Equipped:connect(onEquipped)
Mescalyne
#221233739Thursday, July 13, 2017 8:06 PM GMT

CFrame.new() comes in many flavors so you can just create a CFrame and steal the LookVectors and positions if I remember correctly. That's how I'd correctly point a tool.
SlimeMan22
#221233986Thursday, July 13, 2017 8:08 PM GMT

oof, you needed some tidying up there: pastebin/e0n2veTf NULL > NIL
Mescalyne
#221234496Thursday, July 13, 2017 8:12 PM GMT

Oh, and, nevermind, you can just set the Grip property of the tool by supplying a CFrame. Shouldn't be too hard.

    of     1