Giving out my bike system

How can I use normal R15 Roblox characters instead of the custom one? I want this to be a bike in a game you can get onto and off whenever you want. disabling the character script throws errors and I can’t find any other way in any of the scripts to do this

5 Likes

Sorry to join along on this after a while, But is it possible to make the tricks server sided so other plays can see your tricks etc?

how to remove the character and put the character of the player?

4 Likes

How do i make mobile support for this system?

1 Like

I’m having issues converting the bike system to R15 (the players character) :frowning: if anyone knows a way let me know!!1

1 Like

is there a way to ditch the custom character and move back to Roblox character?

3 Likes

Wild ): obby but your on a bike and bike of hell used this and make hundreds of millions.

More tricks:

360:
local TRICK = {}

function TRICK.Create(self, character, char, bike)
local trick = {
Start = tick();
Length = 0.7;
}

function trick.UpdateBike(self)
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 2)
	local lerp	= -math.abs(2*alpha - 1)^4 + 1

	local offset	= bike.Frame.CFrame:toObjectSpace(bike.Forks.CFrame)

	bike.Frame.CFrame	= bike.Frame.CFrame:Lerp(bike.Frame.CFrame * CFrame.Angles(0, -alpha * math.pi * -2, 0), lerp)
	bike.Forks.CFrame	= bike.Frame.CFrame * offset
	
	bike.Frame.CFrame	= bike.Frame.CFrame:Lerp(bike.Frame.CFrame * CFrame.new(0, 0.4, 0) * CFrame.Angles(math.pi / 15, 0, 0), lerp)
	bike.Forks.CFrame	= bike.Frame.CFrame * offset
end

function trick.UpdateChar(self)

end

return trick

end

return TRICK

Tbog:

local TRICK = {}

function TRICK.Create(self, character, char, bike)
local trick = {
Start = tick();
Length = 0.8;
}

function trick.UpdateBike(self)
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 1)
	local lerp	= -math.abs(2*alpha - 1)^2 + 1

	local offset	= bike.Frame.CFrame:toObjectSpace(bike.Forks.CFrame)

	bike.Forks.CFrame	= bike.Forks.CFrame:Lerp(bike.Forks.CFrame * CFrame.Angles(0, -alpha * math.pi * 1, 0), lerp)
	
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 2)
	local lerp	= -math.abs(2*alpha - 1)^4 + 1

	local offset	= bike.Frame.CFrame:toObjectSpace(bike.Forks.CFrame)

	bike.Frame.CFrame	= bike.Frame.CFrame:Lerp(bike.Frame.CFrame * CFrame.new(0, 0.3, -1.5) * CFrame.Angles(math.pi / -10, 0, 0), lerp)
	bike.Forks.CFrame	= bike.Frame.CFrame * offset
end

function trick.UpdateChar(self)
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 1)
	local lerp	= -math.abs(2*alpha - 1)^2 + 1

	char.RightHand.CFrame	= char.RightHand.CFrame:Lerp(bike.Frame.CFrame * CFrame.new(2 - lerp, 2, -2 + lerp * 2) * CFrame.Angles(math.pi / 4, 0, 0), lerp)
	char.LeftHand.CFrame	= char.LeftHand.CFrame:Lerp(bike.Seat.CFrame * CFrame.new(-0.6 + lerp, 0, 0.7 - lerp) * CFrame.Angles(math.pi / 4, 0, 0), lerp)
end

return trick

end

return TRICK

truck driver with opposite bar:
local TRICK = {}

function TRICK.Create(self, character, char, bike)
local trick = {
Start = tick();
Length = 0.7;
}

function trick.UpdateBike(self)
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 2)
	local lerp	= -math.abs(2*alpha - 1)^4 + 1

	local offset	= bike.Frame.CFrame:toObjectSpace(bike.Forks.CFrame)

	bike.Frame.CFrame	= bike.Frame.CFrame:Lerp(bike.Frame.CFrame * CFrame.Angles(0, -alpha * math.pi * -2, 0), lerp)
	bike.Forks.CFrame	= bike.Frame.CFrame * offset
	
	local offset	= bike.Frame.CFrame:toObjectSpace(bike.Forks.CFrame)

	bike.Forks.CFrame	= bike.Forks.CFrame:Lerp(bike.Forks.CFrame * CFrame.Angles(0, -alpha * math.pi * -2, 0), lerp)
	
end

function trick.UpdateChar(self)
	local alpha	= math.clamp((tick() - self.Start) / self.Length, 0, 1)
	local lerp	= -math.abs(2*alpha - 1)^2 + 1

	char.RightHand.CFrame	= char.RightHand.CFrame:Lerp(bike.Frame.CFrame * CFrame.new(2 - lerp, 2, -2 + lerp * 2) * CFrame.Angles(math.pi / 4, 0, 0), lerp)
	char.LeftHand.CFrame	= char.LeftHand.CFrame:Lerp(bike.Frame.CFrame * CFrame.new(-2 + lerp, 2, -2 - lerp) * CFrame.Angles(math.pi / 4, 0, 0), lerp)
end

return trick

end

return TRICK

1 Like