© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2mo ago•
23 replies
Gooberda1

✅ What did I do wrong? (fixed)

vs codebeginnerunity
I got this after writing this script

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class cubemoverscript : MonoBehaviour
{
    public float speed = 5f;
    
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        (transform.Translate(Vector3.forward * speed * Time.deltaTime));
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class cubemoverscript : MonoBehaviour
{
    public float speed = 5f;
    
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        (transform.Translate(Vector3.forward * speed * Time.deltaTime));
    }
}
Screenshot_2025-12-19_160235.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ What did I do wrong with this task formation?
C#CC# / help
3y ago
✅ I don't understand what I did wrong(list)
C#CC# / help
3y ago
✅ please help idk what to do or what i did
C#CC# / help
3y ago