generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Can someone give me an example script?

Previous Thread :: Next Thread 
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
23 Dec 2014 01:55 PM
I need an example script of my player doing an animation with an animation I made.

My animation: http://www.roblox.com/AnimationTest-2-item?id=195542809

I will grant the player 50R$ IF the script works. Yes; I'm THAT DESPERATE to KNOW ANIMATIONS.
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
23 Dec 2014 02:00 PM
plr = game.Players.LocalPlayer
repeat wait() until plr.Character.Humanoid
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=195542809"
local animTrack = plr.Character.Humanoid:LoadAnimation(animation)
animTrack:Play()
Report Abuse
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
23 Dec 2014 02:03 PM
Is this in a local script? Does it go in the Workspace or somewhere else?
Report Abuse
iProfitRobux is not online. iProfitRobux
Joined: 30 Nov 2014
Total Posts: 247
23 Dec 2014 02:07 PM
Its Local

LocalPlayer can only be used Locally.

LocalScript can only be in Backpack or PlayerGui
Report Abuse
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
23 Dec 2014 02:09 PM
Thank you @iProfitRobux and @Funse! I shall now pay you both with R$. Make a T-Shirt that's worth $50 and I'll buy it. Thanks for helping me!
Report Abuse
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
23 Dec 2014 02:10 PM
Send me a PM to your T-shirts when their pended :D
Report Abuse
iProfitRobux is not online. iProfitRobux
Joined: 30 Nov 2014
Total Posts: 247
23 Dec 2014 02:10 PM
I already have too many ROBUX, I'm good Lol
Report Abuse
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
23 Dec 2014 02:11 PM
Oh ok. Well, thanks for helping me though! :)
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
23 Dec 2014 02:14 PM
Can you buy me a vip server?
x.x
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image