RSS

Build A Boat For Treasure Script !!top!! Today

return treasure end

function PlayerModule:movePlayer(player, userInput) -- Calculate the movement direction based on user input local direction = Vector3.new(userInput.Forward.X, 0, userInput.Forward.Z) build a boat for treasure script

-- Position the treasure in the game world treasure.CFrame = CFrame.new(math.random(-100, 100), 10, math.random(-100, 100)) build a boat for treasure script

-- Loop through components and add them to the boat for _, component in pairs(components) do local part = Instance.new("Part") part.Name = component.name part.Size = component.size part.Material = component.material part.Parent = boat build a boat for treasure script

local BoatModule = {}

-- PlayerModule.lua

function BoatModule:moveBoat(boat, userInput) -- Calculate the force to apply based on user input local force = Vector3.new(userInput.Forward.X, 0, userInput.Forward.Z)