Weird Glitch In My Game

Hello friends. I have this game, and it has a very annoying glitch in my game. Whenever a player walks up to a brick, the brick becomes semi-transparent and the player is able to see through the brick. I am starting to think this is because of some script in the Chassis kit I used for the vehicles :confused: Someone help! This is ruining my game. More evidence after the game link…

And here is a file of one of the cars that is messed up. Weird Chassis THing.rbxm (106.1 KB)

And the camera for the cars are also messed up, because you can see through the entire car, and the camera in the car is broken as well. If you can dissect the car code and see what is wrong, I would be ever so grateful :slight_smile: Or play the game and test it to see if you can find what is wrong. I was looking through the code for the car, and the only thing I could find that messed with transparency was this little bit.

	    	arm.Size=Vector3.new(_Tune.AxleSize,_Tune.AxleSize,_Tune.AxleSize)
	arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
	arm.CustomPhysicalProperties = PhysicalProperties.new(_Tune.AxleDensity,0,0,100,100)
	arm.TopSurface=Enum.SurfaceType.Smooth
	arm.BottomSurface=Enum.SurfaceType.Smooth
	arm.Transparency=1

And in the update log I found something that may be referring to the problem

[5/23/17 : Build 6.43S] - STUFF

76

[Added Tune Values]

77

-Added WBVisible to set weight brick visibility

78

79

[Independent Camera Handling]

80

-Separated camera handling from Drive script

81

-Mouse camera is now handled by a plugin

82

-Custom camera plugin support is now easier

83

84

[Stock Plugins Update]

85

-Added Dynamic Friction as a stock plugin

86

-Dynamic friction can be tuned within the Simulated script

87

-Updated default sound plugin

88

-Added mouse-steer camera plugin

89
1 Like

This might be what is causing the problem. It is a camera control plugin :confused:

local car = script.Parent.Car.Value

10

local cam = workspace.CurrentCamera

11

local RS = game:GetService(“RunService”)

12

13

car.DriveSeat.ChildRemoved:connect(function(child)

14

if child.Name==“SeatWeld” then

15

RS:UnbindFromRenderStep(“MCam”)

16

cam.CameraType = Enum.CameraType.Custom

17

end

18

end)

19

20

script.Parent.Values.MouseSteerOn.Changed:connect(function(property)

21

if script.Parent.Values.MouseSteerOn.Value then

22

RS:BindToRenderStep(“MCam”,Enum.RenderPriority.Camera.Value,function()

23

cam.CameraType = Enum.CameraType.Scriptable

24

local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500)

25

local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed2),0)-(car.DriveSeat.CFrame.lookVector17)+(car.DriveSeat.Velocity.Unit*-7*pspeed)

26

cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position)

27

end)

28

else

29

RS:UnbindFromRenderStep(“MCam”)

30

cam.CameraType = Enum.CameraType.Custom

31

end

32

end)

1 Like