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: New to building classes with physical parts...

Previous Thread :: Next Thread 
lexielane is online. lexielane
Joined: 25 Feb 2014
Total Posts: 314
10 Jul 2017 01:43 PM
https://past ebin . co m/hd2YR0mJ
Report Abuse
lexielane is online. lexielane
Joined: 25 Feb 2014
Total Posts: 314
10 Jul 2017 01:51 PM
Even if I remove the module script and dig into it in a server script, the forks still don't raise right. I just want it to raise by 1 Y stud when raising (e), and lower by 1 Y stud when lowering (r).

local rightFork = workspace.RightFork;
local leftFork = workspace.LeftFork;

local function onForksRaised(player)
rightFork.Position = Vector3.new(rightFork.Position.X, 1, rightFork.Position.Y);
leftFork.Position = Vector3.new(leftFork.Position.X, 1, leftFork.Position.Y);
end;
game.ReplicatedStorage.RemoteEvents.RaiseForks.OnServerEvent:Connect(onForksRaised)

local function onForksLowered(player)
rightFork.Position = Vector3.new(rightFork.Position.X, -1, rightFork.Position.Y);
leftFork.Position = Vector3.new(leftFork.Position.X, -1, leftFork.Position.Y);
end;
game.ReplicatedStorage.RemoteEvents.LowerForks.OnServerEvent:Connect(onForksLowered)
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