Okay let me check the setup, maybe that may work.
Still not working and I tested it with a print script as well, no output.
local player = players.LocalPlayer
script.Parent.Touched:Connect(function(hit)
local character = hit:FindFirstAncestorOfClass("Model")
local CameraShakeScript = character:FindFirstChild("CameraShakeScript")
CameraShakeScript.Disabled = false
end)
print("Hello world!")
and the ServerScript
I got this output error
Well yes, elapsedTime is a global, however the way he was implementing it was useless, which led to my assumption that there was some different intended use. elapsedTime() will always (or atleast in all reasonable scenarios) be greater than 0, so the check of if elapsedTime() > nextFire then
has no real meaning what-so-ever. Moreover, I had assumed there was some improperly defined variable of “elapsedTime” he had somewhere else in the script leading to the original issue.
Also, on the topic of him referencing StarterPlayer, I hadn’t addressed this seeing as in an earlier reply, OP claimed he had already implemented this change in his script as suggested in Post 4 by pro_developer213.