change

Changes the property of a type to the given value

modules.change(parent: Instance, type: string, property: string, value: any)

Parameters

  • parent: The Parent that you want to change stuff on

  • type: The type you want to change (e.g BasePart)

  • property: The property you wanna change (e.g Material)

  • value: The value you wanna change it to (e.g ForceField)


Example

local char = game:GetService("Players").LocalPlayer.Character
-- example forcefield script

modules.change(char,"BasePart","Material","ForceField")

Last updated