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