and I'm back again trying to work on my 2d character mover, again avoiding the use of a humanoid because that was made for 3d and really doesn't allow me access to edit individual movement settings, so I'm using body movers or body forces or whatever they all honestly sound the same to me, I'm simply trying to make my character move left and right (starting with right) and moving a pill-shaped colidor (separate from the avatar) balanced with a bodygyro and a camera following it every RunService heartbeat, all in a local script inside starterplayerscripts
properties are changing in the explorer and everything but the colidor object is not moving at all, I even tested the amount of force running the game and editing the property myself and that made the thing fly off as I expected but using the local script (and remote events) it just never worked, I need to know what exactly is going wrong and if there are any hidden properties (which somehow exist in body movers for some reason?)
edit: just made the colidor massless, did absolutely nothing lol
--This script uses Intended_Pun's Useful Functions. Wiki: https://github.com/Klink45/UsefulFunctions/wiki
local uf = require(game.ReplicatedStorage.UsefulFunctions.Module)
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Cam = workspace.CurrentCamera
local PlRoot = workspace.Player.PlrColS
local MForce = workspace.Player.PlrColS.BodyVelocity
local Movementforce = 10000
--[[RunService.Heartbeat:Connect(function()
Cam.CFrame = PlRoot.CFrame + Vector3.new(-25,0,0)
Cam.CFrame = Cam.CFrame * CFrame.Angles(math.rad(-90),0,math.rad(90))
end)]]--
UserInputService.InputBegan:Connect(function(Input,Prosessed)
if not Prosessed then
if Input.KeyCode == Enum.KeyCode.D then
MForce.Velocity = Vector3.new(0,0,Movementforce)
end
end
end)
UserInputService.InputEnded:Connect(function(Input,Prosessed)
if not Prosessed then
if Input.KeyCode == Enum.KeyCode.D then
MForce.Velocity = Vector3.new(0,0,0)
end
end
end)
Cam.CameraType = Enum.CameraType.Scriptable
Cam.CFrame = workspace.STcam.CFrame
Cam.CameraSubject = workspace.Player.PlrColS
