hi, i was working at a VR project and i use HapticService to make Controlers Vibrate when they die, the problem is i always get this error:
23:42:48.842 - Unable to cast token to token
the script:
game.ReplicatedStorage.VRRemotes.VibrateMotors.OnClientEvent:Connect(function()
for _,Item in next,AllMotors do
if HapticService:IsVibrationSupported(Item) == true then
HapticService:SetMotor(Item,Item,0.8)
delay(0.8,function()
HapticService:SetMotor(Item,Item,0.8)
end)
end
end
end)
the rror line: 8, if HapticService:IsVibrationSupported(Item) == true then