|
| 26 Jul 2015 07:53 PM |
This script isn't working for Back flipping when jumping
game.Players.PlayerAdded:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225" end) |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 26 Jul 2015 07:56 PM |
connect to JumpRequest() event on UserInputService.
The setup you have sets it to do a backflip when the player enters not when they press space.
|
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 07:59 PM |
| Where do I find UserInputService? |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 26 Jul 2015 08:00 PM |
http://wiki.roblox.com/index.php?title=UserInputService
http://wiki.roblox.com/index.php?title=API:Class/UserInputService/JumpRequest
Use it in a local script. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:08 PM |
| Where do I put the script at? Also kinda confused on how to do this since I'm not a LUA coder. I only code in Visual Basic |
|
|
| Report Abuse |
|
|
| |
|
Sharpy033
|
  |
| Joined: 02 Jul 2008 |
| Total Posts: 3851 |
|
|
| 26 Jul 2015 08:22 PM |
| faze if you attempted to make a back flip script then you should know what hes talking about |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:24 PM |
| I've found the script in Toolbox and I'm temping to fix it myself but have failed many times so I'm asking for help. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:33 PM |
| So you dont know how to code, and you want us to fix a broken free model? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:35 PM |
| I guess you could say that. Since I've failed multiple times yes. |
|
|
| Report Abuse |
|
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 08:41 PM |
game.Players.PlayerAdded:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225" end)
the problem with this script, (if it even works on the first time, but it looks like it would) is that it only changes the AnimationId of FallAnim every time they join the game. so it would only work once. you need to do it when they respawn too.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local animScript = char:WaitForChild("Animate") print("anim script loaded") local fall = animScript:WaitForChild("fall") print("fall loaded") local fallAnim = fall:WaitForChild("FallAnim") print("fallanim loaded") fallAnim.AnimationId = "rbxassetid://253014225" end) end)
if that doesn't work, tell us what output you get |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:43 PM |
Tried this it didn't work... game.Players.PlayerAdded:GetService("UserInputService").JumpRequest:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225" end)
Also tried this and it didn't work game:GetService("UserInputService").JumpRequest:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225" end) |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 08:46 PM |
| did you not try my script? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:47 PM |
That doesn't work and the output.. Just a auto-save message is there a place I have to place this LocalScript? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 08:47 PM |
also i suggest you read up on .JumpRequest:
http://wiki.roblox.com/index.php?title=API:Class/UserInputService/JumpRequest |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 08:48 PM |
oh dear god, don't tell my you posted my script in a local script
and your local script probably wasn't running either
put my script in a server script, in ServerScriptService |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:51 PM |
Running your script I get...
anim script loaded fall loaded fallanim loaded 20:50:58.777 - httpGet http://www.roblox.com/asset/?id=253014225&serverplaceid=95206881&clientinsert=0 failed. Trying again. Error: HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place). Elapsed time: 0.235005 20:50:59.026 - Content failed for http://www.roblox.com/Asset/?id=253014225&serverplaceid=95206881&clientinsert=0 because HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place) 20:50:59.030 - Content failed because HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place) |
|
|
| Report Abuse |
|
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 09:01 PM |
"HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place)"
that is because you don't own the asset, buddy |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2015 09:03 PM |
| Any suggestions so I can have a animation so when jumping u do a front flip or back flip? |
|
|
| Report Abuse |
|
|