Change part size through remote event?

I cant seem to alter the size of parts through remote events, the size always changes to 0.0001, 0.0001. 0.0001 instead of what i desired.

Any help would be appreciated
example:

game.ReplicatedStorage.BigBangAttack.OnServerEvent:Connect(function(player, cframe)

local character = player.Character

local sfx = Instance.new("Part")
sfx.Parent = character.HumanoidRootPart
sfx.Position = character.HumanoidRootPart.Position
sfx.CanCollide =false
sfx.Size = Vector3.new("5.077, 5.232, 5.181")

end

vector3.new takes in numbers not strings so just do Vector3.new(5.077, 5.232, 5.181) by removing the quotations from the vector3.new

3 Likes
game.ReplicatedStorage.BigBangAttack.OnServerEvent:Connect(function(player, cframe)

local character = player.Character
local sfx = Instance.new("Part")
sfx.Parent = character.HumanoidRootPart
sfx.Position = character.HumanoidRootPart.Position
sfx.CanCollide =false
sfx.Size = Vector3.new(5.077, 5.232, 5.181)

end
1 Like