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.
01 | v.MouseButton 1 Click: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 |