Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I am trying to replace roblox's infinte runner run animation it wont work?

this is the code to destroy the animate script and activate the new one

function onPlayerRespawned(newPlayer)
	while true do
		if newPlayer.Character:findFirstChild("Animate")~=nil then break end
		wait()
	end
	newPlayer.Character.Animate.Disabled = false
	local c = script.Animate_:Clone()
	c.Parent = newPlayer.Character
	c.Disabled = false
	newPlayer.Character.Animate.Disabled = true
end
	newPlayer.Character.Animate_.Disabled = false
end

function onPlayerEntered(newPlayer)
	newPlayer.Changed:connect(function (property)
		if (property == "Character") then
			onPlayerRespawned(newPlayer)
		end
	end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)

the animate script is from this link ungroup it in studio to get script http://www.roblox.com/Animate-script-for-scripting-helpers-item?id=269571496

3 comments

0

put it in a code block.

0

okk

0

also i cant do the animate script one

1 answer

✓ Accepted answer

Well use this script in the Infinite Runner Its the configurations scripts This is the simple one for walking or sliding animations.

local Configurations = {}

Configurations.TileSize = 88
Configurations.MaxMapSize = 100
Configurations.PointsPerPickup = 50
Configurations.WalkAnimation = 'rbxassetid://252557606' -- your walking animations	
Configurations.SlideAnimation = 'rbxassetid://167999808'
Configurations.StrafeSpeed = .15
Configurations.WalkSpeed = 90

Configurations.TileChance = {
	Straight = 40,
	Obstacle = 30,
	Left = 10,
	Right = 10,
	TJunction = 10
}

Configurations.TuturialDisplayTime = {}
Configurations.TuturialDisplayTime[4] = "Jump"
Configurations.TuturialDisplayTime[10] = "Turn"
Configurations.TuturialDisplayTime[18] = "Slide"
Configurations.TuturialDisplayTime[25] = "Strafe"
Configurations.TuturialDisplayTime[31] = "End"

Configurations.TutorialLayout = {
	"Straight", "Straight", "Straight", 
	"Straight", "Straight", "Jump",
	"Straight", "Straight", "Jump",
	"Straight", "Straight", "Left",
	"Straight", "Straight", "Right",
	"Straight", "Right",
	"Straight", "Straight", "Slide",
	"Straight", "Straight", "Slide", "Straight",
    "Straight", "Straight", "StrafeLeft",
	"Straight", "Straight", "StrafeRight", 
	"Straight", "Straight", "Straight", "Straight"
}

return Configurations

2 comments

0

Yes

0

Thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.