it just wont work for some reason it wont print or anything
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Value = Character:WaitForChild("IsSlowed")
local SlowData = game.ReplicatedStorage.SlowData
--it works all up until value changed
Value.Changed:Connect(function(NewValue)
print(NewValue)
end)
And the script is located in starter character scripts
Okay so manually changing it works but the script just wont change the walkspeed. It will print whats past the walkspeed and the new value but it just wont slow the person
I changed the script some I put a remote event in instead and it just wont fire it
local Player = game.Players.LocalPlayer
local Character = script.Parent
local Value = Character:WaitForChild("IsSlowed")
local Humanoid = Character:WaitForChild("Humanoid")
local SlowData = game.ReplicatedStorage.StuckEnemy
Value.Changed:Connect(function(NewValue)
print(NewValue)
if NewValue == true then
SlowData:FireServer(NewValue)
print('hi')
else
warn("Test")
SlowData:FireServer(NewValue)
end
end)