hi, basically there is a fishbowl with a fish inside, at the center of it. the fishbowl moves as the player does (the player is invisible and inside the fishbowl, but not welded to the fish, which is welded to the fishbowl). i was wondering if there was any way to make the fish face the direction the fishbowl is following. i don’t know if i was clear, let me know. thank you ^^
this is the fishbowl server script:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local HRP = char:WaitForChild("HumanoidRootPart")
local bowl = game.ReplicatedStorage.Bowl
local marble = bowl:Clone()
marble.Parent = char
local Velocity = Instance.new("BodyAngularVelocity")
Velocity.Parent = marble
local Hum = char:WaitForChild("Humanoid")
local Weld = Instance.new("Weld")
Weld.Parent = marble
Weld.Part0 = HRP
Weld.Part1 = marble
Hum.PlatformStand = true
while true do
wait()
marble.BodyAngularVelocity.AngularVelocity = Vector3.new(char.Humanoid.MoveDirection.z * 8,0,char.Humanoid.MoveDirection.x * -8)
marble.BodyAngularVelocity.MaxTorque = Vector3.new(10000,10000,10000)
if char.Humanoid.MoveDirection == Vector3.new(0,0,0) then
marble.BodyAngularVelocity.MaxTorque = Vector3.new(0,0,0)
end
end
end)
end)