I am trying to get a info from a value to another using bindable events but it wont transefer. heres the scripts. Thank you for your time and feel free to ask questions!
local char = script.Parent
local Humanoid = char:FindFirstChild("Humanoid")
local walkset = script.Value -- value is the name of the Variable
while true do
wait()
if Humanoid then
if Humanoid.FloorMaterial == Enum.Material.Grass or Humanoid.FloorMaterial == Enum.Material.LeafyGrass then
walkset.Value = "rbxassetid://soundid"
print(char.name)
end
if
Humanoid.FloorMaterial == Enum.Material.Concrete or Humanoid.FloorMaterial == Enum.Material.Slate or
Humanoid.FloorMaterial == Enum.Material.Pavement
then
walkset.Value = "rbxassetid://soundid"
end
end
end
script.Value.Changed:Connect(function()
game.ReplicatedStorage.events.sound:Fir(walkset)
end)
and
game.ReplicatedStorage.events.sound.Event:Connect(function(id)
script.Parent = id -- the parent is a string value
end)