If you need the answer as well, check it out in the answers section, 2nd one.
I think HumanoidStateType will do it.
https://developer.roblox.com/en-us/api-reference/enum/HumanoidStateType
Here is an example:
local Player = game.Players.LocalPlayer local Character = Player.Character local Humanoid = Character:WaitForChild("Humanoid") Humanoid.StateChanged:Connect(function(Old, New) if New == Enum.HumanoidStateType.Swimming then -- If the character is in the water print("Character is swimming") else -- If the character is not in the water print("Character is not swimming") end end)
Never mind, i fixed it.
For the people that came here for answers as well:
Don't use platform stand, if you do you would need to add fake limbs to collide with the map, instead use Enum.HumanoidStateType.Physics.
This will make the characters parts collide and will let you float on water.