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: Help

Previous Thread :: Next Thread 
Tycooons is not online. Tycooons
Joined: 13 Aug 2014
Total Posts: 5871
18 Apr 2015 04:49 AM
In my bowling game I am making, I have an invisible speed booster.

You have a tool that puts you inside a marble that you can roll in.
The tool puts the marble (A single brick) inside the player's character called "Marble".
How would I make it so when you touch the brick, you are boosted towards the direction the marble is facing.
This is what I have so far, but it doesn't work:

part = script.Parent

function touched (hit)
if hit.Parent:FindFirstChild("Humanoid") then
local marble = hit.Parent:FindFirstChild("Marble")
if marble then
print(marble.Velocity)
marble.Velocity = marble.CFrame.lookVector*300
end
end
end

part.Touched:connect(touched)


Umad bro?
Report Abuse
Tycooons is not online. Tycooons
Joined: 13 Aug 2014
Total Posts: 5871
18 Apr 2015 05:08 AM
iioioiooi
Umad bro?
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
18 Apr 2015 05:13 AM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent:FindFirstChild("Marble") then
local marble = hit.Parent.Marble
print(marble.Velocity)
marble.Velocity = marble.CFrame.lookVector * 300
end
end
end)
Report Abuse
Tycooons is not online. Tycooons
Joined: 13 Aug 2014
Total Posts: 5871
18 Apr 2015 05:49 AM

That script just pushes it to the right...,
Report Abuse
Tycooons is not online. Tycooons
Joined: 13 Aug 2014
Total Posts: 5871
18 Apr 2015 06:05 AM


Umad bro?
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