Hello! My problem is that when I do in the module
--Module
local PositionModule = {}
PositionModule.BasicShop = {
[1] = CFrame.new(28.9639988, 1.69099998, 9.8030014, 0, 0, -1, 0, 1, 0, 1, 0, 0),
[2] = CFrame.new(28.9639988, 1.69099998, 14.7910004, 0, 0, -1, 0, 1, 0, 1, 0, 0),
[3] = CFrame.new(28.9639988, 1.69099998, 19.661, 0, 0, -1, 0, 1, 0, 1, 0, 0)
}
return PositionModule
that is, it create a table within a table in it it just stops working a local script
--local script
local RS = game:WaitForChild("ReplicatedStorage")
local ButtonL = script.Parent.L
local ButtonR = script.Parent.R
local Curret = script.Parent.Curret
local ShopForNow = script.Parent.ShopPicked
local Player = game.Players.LocalPlayer
local Camera = game.Workspace.CurrentCamera
local PosTable = require(RS.Modules.BasePose)
ButtonL.MouseButton1Click:Connect(function()
if Curret.Value == 1 then
Camera.CameraType = Enum.CameraType.Scriptable
Curret.Value = math.max(1,#PosTable)
Camera.CFrame = PosTable[ShopForNow.Value][Curret.Value]
else
Curret.Value -= 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = PosTable[ShopForNow.Value][Curret.Value]
end
end)
ButtonR.MouseButton1Click:Connect(function()
if Curret.Value == math.max(1,#PosTable) then
Camera.CameraType = Enum.CameraType.Scriptable
Curret.Value = 1
Camera.CFrame = PosTable[ShopForNow.Value][Curret.Value]
else
Curret.Value += 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = PosTable[ShopForNow.Value][Curret.Value]
end
end)
(sorry for the watermark, the video has become a little more than 10mb)
Where is the problem?