Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class SuckScript : MonoBehaviour
- {
- public StudentScript Student; // For people who dont understant this code, I am gonna show yall
- public float Strength; // The Strengh of it...
- private void Update()
- {
- Strength += Time.deltaTime; // Increase strengh each frame
- base.transform.position = Vector3.MoveTowards(base.transform.position, Student.Yandere.Hips.position + base.transform.up * 0.25f, Time.deltaTime * Strength); // Moving yandere chans hips up and down based on the strengh
- if (Vector3.Distance(base.transform.position, Student.Yandere.Hips.position + base.transform.up * 0.25f) < 1f)
- { // Checking if the distance is less than 0.25 between yan chan and her hips
- base.transform.localScale = Vector3.MoveTowards(base.transform.localScale, Vector3.zero, Time.deltaTime);
- if (base.transform.localScale == Vector3.zero)
- {
- base.transform.parent.parent.parent.gameObject.SetActive(value: false);
- }
- // Changing the scale to an object and setting its parent.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment