Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to fix/simplify this Placement System Script? [closed]

Asked by 7 years ago

Me and my friend have worked together on this placement system script for a while now as a school project.

I need to make this code shorter and more efficient/clean.

The whole code is here:

01wait()
02local rs = game:WaitForChild("ReplicatedStorage")
03local base = game.Workspace.GrassTop
04local placeablePart = rs:WaitForChild("PlaceableObjects")
05local Menu = game.Players.LocalPlayer.PlayerGui.PlacementSystem.ObjectMenu.ObjectList
06local CurrentlyPlacing = false
07local rotation = 0
08local canPlace = false
09 
10local first = true
11 
12local player = game.Players.LocalPlayer
13local mouse = player:GetMouse()
14local runService = game:GetService("RunService")
15 
View all 98 lines...
1
Is there anything actually broken in this code? I'm happy to look over it for you but it's gonna be on the backburner if there are no actual bugs to fix. adark 5487 — 7y
0
Since there is no indication that this code isn't functioning, i'm going to moderate. +1 to omit rep loss. Goulstem 8144 — 7y

Closed as Primarily Opinion-Based by adark and Goulstem

This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.

Why was this question closed?