Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Module Script Table does'nt update when I do it from a local script? -[SOLVED BY ME]--

Asked by 4 years ago
Edited 4 years ago

So currently I am trying to create a skill tree, but for some reason whenever I try to change for example a the damage value and print it, the change doesnt appear on the module script when I print it there, but it does when I print it from the local script I changed it from.

v.MouseButton1Click:Connect(function()
    if v:FindFirstChildOfClass("IntValue") then                                                                                      
        local fireBall = require(game.ReplicatedStorage.Skills.Fireball)
            for upgrader,data in pairs(fireBall.Settings) do
                if upgrader == v:FindFirstChildOfClass("IntValue").Name then
                    data = data + v:FindFirstChildOfClass("IntValue").Value 
                end
            end
        end
    end
end)

Answer this question