Here is my code for the part:
local orgPos = script.Parent.CFrame local InRound = game.ReplicatedStorage.InRound local BlueTake = game.ReplicatedStorage.Bluetake --Here is the bool value I'm trying to change local debounce = false function onTouch(hit) if not debounce then debounce = true print(hit.Parent) local plr = game.Players:FindFirstChild(hit.Parent.Name) local blue = game:GetService("Teams")["Bloo"] if plr and plr.Team == blue then script.Parent.CFrame = game.Workspace.Dump.CFrame plr:FindFirstChild("leaderstats") wait(1) plr.leaderstats.Flags.Value += 1 print("true") end if InRound.Value then print("checked") BlueTake.Value = true --Here's what I did end debounce = false end end script.Parent.Touched:Connect(onTouch) InRound.Changed:Connect(function() if not InRound.Value then script.Parent.CFrame = orgPos end end)
Edit: Sorry if I wasn't clear, I'm posting this question because the script didn't change the value and I don't know why.
Of course. a script can adjust everything everywhere. except things in the local client :)
part.Touched:Connect(function(x1) if x1.Parent.Humanoid then BlueTake.Value = true end end)
Thats all.
Oh also, almost forgot, you can use _G to make strings visible across all the scripts. script1
_G.x1 = 'string'
script2:
print(_G.x1)
Output:
'string'