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
 

Re: Why doesn't my lerping work..?

Previous Thread :: Next Thread 
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
17 Mar 2015 05:57 PM
Its in a module script...
val, -- value it changes
steps, -- number of steps it takes, smooth/not smooth
t, -- time it takes
y, -- target value
x -- starting value (optional)

-- module
function F.WholeLerp(val,steps,t,y,x)
local org=x or val
for i=1,steps do
val=(org+(y-org)*(i/steps))
wait(t/steps)
end
end


--local script
F.WholeLerp(fakeMouse.Rotation,5,.2,0)
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
17 Mar 2015 05:59 PM
You can't reference primitive types, only "copy" them. You need to set fakeMouse's property, it won't update automatically.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
17 Mar 2015 06:00 PM
Than how would I accomplish this?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
17 Mar 2015 06:01 PM
Could I do this?



local stng='Rotation'

item[stng]= 10
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
17 Mar 2015 06:22 PM
what is lerping?
Report Abuse
kert109 is not online. kert109
Joined: 31 Dec 2009
Total Posts: 681
17 Mar 2015 06:29 PM
Lerp = Linear Interpolation.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
17 Mar 2015 06:39 PM
omg such hard words :O
*brain explodes*
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
17 Mar 2015 06:47 PM
Still want some help here :/
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