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 with script, lookvector.

Previous Thread :: Next Thread 
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
29 Oct 2017 06:05 PM
game.ReplicatedStorage.spawn.OnServerEvent:connect(function(plr, cartype)
if basically if u got the car == true then
if workspace:findFirstChild('Car_'..plr.Name..'') then
workspace['Car_'..plr.Name..'']:Destroy()
else
local car = game.ServerStorage[cartype]:Clone()
car.Name = ('Car_'..plr.Name..'')
car.Parent = game.Workspace
car:SetPrimaryPartCFrame(CFrame.new(plr.Character.Head.Position) + Vector3.new(-2,0,0) * CFrame.Angles(plr.Character.HumanoidRootPart.CFrame.lookVector))
end
else
plr:Kick("Kicked for: Attempting to spawn '"..cartype.."' without owning it.")
end
end)


scripter is as scripter does
Report Abuse
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
29 Oct 2017 06:36 PM
B


scripter is as scripter does
Report Abuse
DuckD0nald is not online. DuckD0nald
Joined: 21 Aug 2008
Total Posts: 9870
29 Oct 2017 06:37 PM
what are you trying to do


Report Abuse
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
29 Oct 2017 06:56 PM
Spawn a car infront of the player facing the same way as the player.


scripter is as scripter does
Report Abuse
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
29 Oct 2017 07:03 PM
B


scripter is as scripter does
Report Abuse
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
29 Oct 2017 07:19 PM
B2


scripter is as scripter does
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