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.

01v.MouseButton1Click:Connect(function()
02    if v:FindFirstChildOfClass("IntValue") then                                                                                     
03        local fireBall = require(game.ReplicatedStorage.Skills.Fireball)
04            for upgrader,data in pairs(fireBall.Settings) do
05                if upgrader == v:FindFirstChildOfClass("IntValue").Name then
06                    data = data + v:FindFirstChildOfClass("IntValue").Value
07                end
08            end
09        end
10    end
11end)

Answer this question