Город МОСКОВСКИЙ
00:04:07

How To Make A No-Gravity Part In Roblox Studio (How To Script #2)

Аватар
Гейминговые Искусства
Просмотры:
88
Дата загрузки:
30.10.2023 06:56
Длительность:
00:04:07
Категория:
Технологии и интернет

Описание

Episode 2 of How To Script by TCKM. Like for more, and comment about what other scripts you may want to see.



I include the script below, but if you'd like some advice on how to use this script and what to look out for, I advise that you watch the entirety of the video. Nonetheless, thanks for watching!

A bit of important info that I forgot to mention, make sure that the part that you put this script is isn't anchored. If you miss this step the part will not move.


local part = script.Parent
local downForce = -part:GetMass()*workspace.Gravity
local force = -downForce
local bodyForce = Instance.new("BodyForce")
bodyForce.Force = Vector3.new(0,force,0)
bodyForce.Parent = part

Рекомендуемые видео