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

How to get a value out of a module script?

Asked by
hokyboy 270 Moderation Voter
3 years ago
Edited 3 years ago

Question Was Edited Because I Did not explain well

so what i want to is create a value in a main script that stores if a player can attack. Then i want a module script to check if a player can and activates a variblethen that varible should be send back to the main script

A script explained version

Module.CheckIfCanAttack(CanAttack)

if CanAttack then
--Attack
end

Module script

function Module.CheckIfCanAttack(CanAttack)
CanAttack = True
end
0
Please explain more Avian2WasDeleted 0 — 3y
0
Edited the question hope this helps! hokyboy 270 — 3y
0
Since its a function, Cant You Try To Return the "CanAttack" ? Minecrafter09031031 16 — 3y

Answer this question