Hello!
I’ve been working on a game w/ teamcreate (and LiveEditing), where, I was trying to update a script, but it did not work, although I was just trying to put a print(“”) there. The script worked, and still works, but it doesn’t update, and instead still behaves like it did previously, before the update. Such issue also occured to me while updating a different script.
We’ve tried to close our studios, then reopen them again. Checked if we all could open the script and see the same updates (We did, in fact, see them). And also publishing, and checking it out.
Script, if even necessary
Things with ‘–A’ after them do not work, as they’re the ‘updated’ ver
Change = false
local Poctav = false
local Ramv = false
local IdleAnimation = script.Idle
local Pocta = hum:LoadAnimation(script.Pocta)
local PoctaR = hum:LoadAnimation(script.PoctaR)
local Ram = hum:LoadAnimation(script.Ram)
local RamR = hum:LoadAnimation(script.RamR)
local Idle = hum:LoadAnimation(IdleAnimation)
local function PlayAnim(anim)
warn(anim) --A
if Change then return end
Change = true
Idle:Stop()--A
task.wait(1)--A
print("DELAY")--A
if anim == "Pocta" then
Pocta:AdjustSpeed(1)
if Poctav == true then
Pocta:Stop()
PoctaR:Play()
PoctaR.AnimationPlayed:Wait()
Poctav = false
Change = false
task.wait(1)--A
print("DELAY")--A
Idle:Play()--A
return
end
Pocta:Play()
task.wait(Pocta.Length-.1)
Pocta:AdjustSpeed(0)
Poctav = true
Change = false
return
end
if anim == "Ram" then
Ram:AdjustSpeed(1)
if Ramv == true then
Ram:Stop()
RamR:Play()
RamR.AnimationPlayed:Wait()
Ramv = false
Change = false
task.wait(1)--A
print("DELAY")--A
Idle:Play()--A
return
end
Ram:Play()
task.wait(Ram.Length-.1)
Ram:AdjustSpeed(0)
Ramv = true
Change = false
return
end
end
uis.InputBegan:Connect(function(input, processed)
print(input.KeyCode, processed)
if processed then return end
if input.KeyCode == Enum.KeyCode.G then
PlayAnim("Pocta")
end
if input.KeyCode == Enum.KeyCode.H then
PlayAnim("Ram")
end
end)
In the other occurence, I literally just put a line into --, and it still ran the line.
Thanks you in advance