I have a script and I don’t know what’s wrong I’m kinda new and have seen it on youtube but it seems as it works for everyone else but not me this is the script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class water : MonoBehaviour
{
Transform floorlevel;
BoxCollider c;
void Start()
{
floorlevel = transform.GetChild(0)
c = GetComponent();
I have tried to do but have not been working I don't see the problem nither did my friend the script it seems to work for others how tried it and a lot of people commented that it helped my no one seems to have my problem when I when others have the same problem they forgot to add ; but I haven't it just marks the c and says the error it's one of my first games I do w my friends and we do not find the problem we want the player to swim so any tips are Wellcome and have water to swim in