|
| 31 Jul 2017 09:09 PM |
Im trying to make a script that creates a object(road) on where the mouse, i tried a few things but this is what i got so far.
local Road = game.ServerStorage.Road:Clone() Road.Parent = game.Workspace while true do playerMouse = game.Players.LocalPlayer:GetMouse() local x = playerMouse.Hit.X local y = playerMouse.Hit.Y local z = playerMouse.Hit.Z Road:MoveTo(Vector3.new(x,y,z)) playerMouse.TargetFilter = Road playerMouse.Button1Down:connect(function(Hit) Road:Clone() Road:MoveTo(playerMouse) end) wait() end |
|
|
| Report Abuse |
|
|
Curite
|
  |
| Joined: 28 Jan 2014 |
| Total Posts: 60 |
|
|
| 31 Jul 2017 09:11 PM |
| fuck |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2017 09:17 PM |
| surprised they don't account for the zero-width non-joiner |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jul 2017 09:27 PM |
@Fsxfighter
Looks like you're creating a new clone of the Road after every wait(), which will probably cause your script to choke from working too hard. Do you want the Road to be placed only when the player clicks? |
|
|
| Report Abuse |
|
|