Hi everyone! I’m trying to make a Marble-Player like some games already known, making it going in all directions, jump and gain velocity
The problem is that i have no idea of how to do it, i have already visited a lot of topics like this and got only scripts on scripts that didn’t work or just got problems.
I know that you must Weld the player and the Marble to make them one inside the other but idk how to do this for good, if anyone knows any good tutorial (i didn’t find any…) or can show me how to do will be really good
You don’t need to create the entire script, just need a good explanation and some example if you want
Ok i’ve tried it and got stuck on the 5th point, when pressing WASD i can see the value of the RemoteEvent change like “0,0,1” , “0,0,-1” and so on but when using a script it always print “NAN, NAN, NAN” or “0,0,0”
NOTE: Green is Script and Blue is Local Script
Basically, when the player moves the local script gives the axis to remote event that has a Vector3 value and then it should be read by the script
Not sure why you are getting the NANS but I just remembered that you shouldn’t need the RemoteEvent system after all. If you parent the marble part to the player’s avatar Model, then its position should be replicated automatically when changed by a LocalScript just like your other body parts. Try doing the BodyMover code in the LocalScript instead and see if that works.
Mhh i’m gettin trouble about this, idk much on how to do, i got only some strange activity like:
I’m in the Marble and can’t move
Put the marble inside the player >>> Nothing
Put the marble outside >>> Nothing
Put it again inside >>> I can move without rotation (even using BodyForce) but it starts moving or just wait like 20 sec and it starts moving without rotation
wait(5)
local Player = game.Players.LocalPlayer.Character.HumanoidRootPart
workspace.Marble.Parent = Player.Parent
while true do
test = (game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Unit)
print(test)
workspace.Axis.Value = test
Player.Parent.Marble.BodyForce.Force = test * workspace.Gravity
wait(.5)
end
Local Script 2 (Marble Start)
print("TEST1")
wait(.1)
game.Players.LocalPlayer.Character.Humanoid.Animator:Destroy()
game.Players.LocalPlayer.Character.Animate:Destroy()
wait(.5)
local Marble = workspace.Marble
local Wedge = workspace.Wedge
local Player = game.Players.LocalPlayer.Character.HumanoidRootPart
local weld = Instance.new("Weld", Marble)
weld.Part0 = Marble
weld.Part1 = Player
print("TEST")
Note: Wedge has been used only for weld tests, is actually useless
Try adding humanoid:ChangeState(Enum.HumanoidStateType.Physics) at the start of one of the local scripts. Also I should probably mention, I think you’ll need to parent the marble to the player’s character on the server in order to achieve replication.
Ok so i have searched for a bit but can’t find what i need exactly, i’m trying to use the marble ad Vehicle but still can’t move, if anyone knows please tell