Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/server/RagrollOnDeath.server.luau

This file was deleted.

4 changes: 4 additions & 0 deletions src/server/SeatPrompt.server.luau
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ local CollectionService = game:GetService("CollectionService")
local tag: string = script:GetAttribute("SeatTagName") :: string or "Seat"
local objectText: string = script:GetAttribute("ObjectText") :: string or "Seat"
local actionText: string = script:GetAttribute("ActionText") :: string or "Sit"
local maxActivationDistance: number = script:GetAttribute("MaxActivationDistance") :: number or 5
local maxIndicatorDistance: number = script:GetAttribute("MaxIndicatorDistance") :: number or 10
local holdDuration: number = script:GetAttribute("HoldDuration") :: number or 0
local requiresLineOfSight: boolean = script:GetAttribute("RequiresLineOfSight") :: boolean or false
local disableSeatTouch: boolean = script:GetAttribute("DisableSeatTouch") :: boolean or true
Expand All @@ -30,6 +32,8 @@ local function onInstanceAdded(object: Instance): ()
seatPrompt.Name = "SeatProximityPrompt"
seatPrompt.ObjectText = objectText
seatPrompt.ActionText = actionText
seatPrompt.MaxActivationDistance = maxActivationDistance
seatPrompt.MaxIndicatorDistance = maxIndicatorDistance
seatPrompt.HoldDuration = holdDuration
seatPrompt.RequiresLineOfSight = requiresLineOfSight
seatPrompt.Parent = object
Expand Down